When we deploy an application into a server, to which servlets these JSP will convert into?

Showing Answers 1 - 3 of 3 Answers

shyam

  • Nov 19th, 2007
 

JSP will get converted to a servlet having the same name as that of the jsp. The converted servlet will have all the properties set by the jsp. It will be available in the Work folder of the server program

  Was this answer useful?  Yes

subhas2008

  • Jul 28th, 2008
 

JSP is  converted to a servlet called  translated servlets which contains _JspInit(), _JspService and _JspDestroy() methods.

  Was this answer useful?  Yes

When you deploy an application the JSP's are never converted to servlets until first request. 


When first request comes in, for example my.jsp will be converted to my_jsp.java then my_jsp.class then run lifecycle as servlets.

So when next requests comes, the container will check for latest version of the JSP and if its latest then pass the request to the servlet, otherwise recompile JSP to servlet again.

Cheers

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions