By techmag
via techmag.biz
Published: Nov 10 2006 / 07:55
When You deploy the JSP on server the JSP gets transformed into Java servlet. Then this servlet gets compiled at run time And the Java file will be deleted by the server. Incase while debugging if you need the Java servlet class then you need to make changes the JSP engine configuration parameters. Below I have shown setting for two famous servers websphere and tomcat.



Comments
dbaxps replied ago:
I used to work with ant for compiling and
deploying apps to TomCat.
Modify build.xml as required in standard TomCat's deployer folder and issue:
$ ant -f build.xml
$cd build
$ls -CR
Regarding TomCat, view also:
http://librenix.com/?inode=9205
for details if needed.
unchqua replied ago:
Tomcat 3.3, link to which documentation is given in the article, is very old now; current stable Tomcat branch is 5.5. Here's actual link: http://tomcat.apache.org/tomcat-5.5-doc/jasper-howto.html . Additionally, article says that context-related configuration resides in $TOMCAT_HOME/conf/server-name.xml . This is not true now as in latest versions it must be placed in $TOMCAT_HOME/conf/<Engine name>/<Host name>/<Context name>.xml , or, preferrably, in <Your application>.war$META-INF/context.xml .
Weave replied ago:
Correct me if I'm wrong but with Tomcat 5.0+ the generated servlet files are output to the "$TOMCAT_HOME/work/Catalina/[hostname]/[webapp]/org/apache/jsp/" directory by default and no extra configuration is needed.
Voters For This Link (6)
Voters Against This Link (0)