您的位置:寻梦网首页编程乐园Java天地JSP 专辑JSP001 HTML 离线版
Java 天地
JSP001 HTML 离线版
FAQ汇萃 >> Tomcat >> 我的beans 和 servlets 该放在哪里?

由 webmaster 发布于: 2001-01-30 10:43

Lightbulb

Where you place the beans and servlets depends on which "application" it belongs to. Assuming that you are running your JSP pages under the default "examples" application, you should place your servlets under the path

/tomcat/examples/WEB-INF/classes

Your beans should be placed under

/tomcat/examples/WEB-INF/jsp/beans

Both these paths are placed within CLASSPATH by Tomcat's startup script file.



资料来源: JSP001.com