DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=38223>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=38223 Summary: ConfigurableClasspathWebappLoader Product: Tomcat 5 Version: 5.5.14 Platform: Other OS/Version: other Status: NEW Severity: enhancement Priority: P4 Component: Catalina AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] This is a convenience class, and not at all compliant with the Servlet Spec. By using this WebAppLoader, once can add entries to the Web Application's class path (outside of WEB-INF/classes and WEB-INF/lib). I created this WebAppLoader in response to http://marc.theaimsgroup.com/?l=tomcat-user&m=113682917308106&w=2 The context.xml looks like this: <Context docBase="d:\temp\testing" reloadable="true" > <Loader className="com.thoughtworks.tomcat.loader.ConfigurableClasspathWebappLoader" classpathEntriesFile="d:\\temp\\myclasses.properties" /> </Context> The file myclasses.properties contains entries like this: PathCount=2 Path.1=file:/d:/temp/bin/ Path.2=file:/c:/temp/deleteThis/ Now, classes kept in these two paths can be available to the Web Application. One need not have the classes copied into the WEB-INF/classes folder. So, one might have a JSP that contains lines like this : ========================================================= <% Class clazz = Class.forName("com.thoughtworks.deletable.SomeStuff"); Object anObject = clazz.newInstance(); String value = anObject.toString(); com.thoughtworks.deletable.SomeStuff cyber = new com.thoughtworks.deletable.SomeStuff(); String anotherValue = cyber.toString(); %> The value is <%=value%> <br/> Other values can be interesting too <%=anotherValue%> ========================================================= -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]