I want to achieve something like this:
// This would finally come from Config class after reading the propoperties file
String classToLoad = "com.hidhaval.layout.pageTemplate"
<jsp:useBean id="PAGE" scope="session" class="<%= classToLoad %>" />
This does not work .. I m using Tomcat 3.2 / jdk1.3
-
useBean : providing class dynamically (1 messages)
- Posted by: Dhaval Shah
- Posted on: April 11 2002 10:51 EDT
Threaded Messages (1)
- useBean : providing class dynamically by Saruman White on April 11 2002 16:55 EDT
-
useBean : providing class dynamically[ Go to top ]
- Posted by: Saruman White
- Posted on: April 11 2002 16:55 EDT
- in response to Dhaval Shah
This field is not runtime, it's supposed to be set on compilation stage. You'll have to use some java scriptlet to achieve needed effect