File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes how tomcat  container convert   jsp  page.. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » JSP
Reply Bookmark "how tomcat  container convert   jsp  page.." Watch "how tomcat  container convert   jsp  page.." New topic
Author

how tomcat container convert jsp page..

harish goyal
Ranch Hand

Joined: Aug 28, 2005
Posts: 51
when and how tomcat container convert jsp page
into corresponding servlet java code
and its corresponding class
how it works ?
please anyone help me to understand
Chetan Parekh
Ranch Hand

Joined: Sep 16, 2004
Posts: 3636
When you first time make a request for JSP, it will compile it and convert it in to the Servlet.

For the further request for the same JSP, application server will check whether JSP has changed after Servlet generated or not. If it has changed then it will again compile the Servlet, else execute the existing Servlet.

This process involves IO and it consumes time � a tiny amount but if you aggregate, it becomes significant.

In WebLogic you have option where by you turn off this option, and it will not check for the new version of JSP for each request. And whenever you update any JPS, you just have to restart the server.

I guess by turning of this option you can avoid some amount of delay, but don�t expect drastic performance gain by doing this.


My blood is tested +ve for Java.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how tomcat container convert jsp page..
 
Similar Threads
JSP turning into Servlet
how to make dynamic combo box
Spring DM for Web Applications
Compiling JSP page
importing classes into a function