when the jsp page is translated to servlet?

Answers were Sorted based on User's Feedback



when the jsp page is translated to servlet?..

Answer / mamatha

Whenever the jsp page receives the request for the first
time
Whenever it receives the request jspEngine will check
whether the servlet is generated or not? if yes it will
give the reference to the page otherwise it will generate
new one

Is This Answer Correct ?    22 Yes 0 No

when the jsp page is translated to servlet?..

Answer / gayathri janarthanam

The JSP specification indicates that the translation can happen either during deployment time or when the JSP is requested for the first time...But most of the containers(TOMCAT for eg.,) does lazy loading ie., translates the JSP into servlet when the first request comes in...I have used the term traslation loosely here to mean "translating into servlet.java file and compiling into servlet.class file"...

Is This Answer Correct ?    3 Yes 1 No

when the jsp page is translated to servlet?..

Answer / shaileja

Whenever the jsp page receives the request for the first
time
Whenever it receives the request jspEngine will check
whether the servlet is generated or not? if yes it will
give the reference to the page otherwise it will generate
new one

Is This Answer Correct ?    1 Yes 1 No

when the jsp page is translated to servlet?..

Answer / narendher sharma

In Directive Include .. the jsp page will be translated
into servlet.

Here the Static resources will be generated during
translation time

Is This Answer Correct ?    4 Yes 10 No

when the jsp page is translated to servlet?..

Answer / ravikiran.chd

when we deploy our web application

Is This Answer Correct ?    1 Yes 7 No

Post New Answer

More Servlets Interview Questions

If a servlet is not properly initialized, what exception may be thrown?

0 Answers  


What is the use of java servlet api?

0 Answers  


What is the difference between CGI and Servlet?

0 Answers  


What are Servlets?

0 Answers  


What is http servlet?

0 Answers  






Directive Include and Action Include how both are working in JSP, what is the difference between both?In which suituation we have to choose these elements?

4 Answers   AZTEC,


What are the phases of servlet life cycle?

0 Answers  


Is servlet a framework?

0 Answers  


Is dispatcher servlet a singleton?

0 Answers  


Why do we have servlet wrapper classes?

0 Answers  


How can a servlet be used to generate plain text instead of html?

0 Answers  


What is the need of session tracking in HttpServlet ?

3 Answers  


Categories