Under Apache Tomcat, how could my JSP files can access Beans under directories other than 'WEB-INF/classes' or 'WEB-INF/lib'?

Pierre Sirolli

You need to append the path of the directory containing the beans to the CLASSPATH variable within the bin/tomcat.bat file.

For instance, if your bean is located within c:classesMyBean.class
modify CLASSPATH as:
set classpath=%classpath%;c:classes

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact