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

i have class files in class folder. but i have no java files. but i want to modify the java files which are related to class files . how ?

5 Answers   TCS,


Why servlet is mostly used?

0 Answers  


Define the life cycle of a servlets.

0 Answers  


What are the exceptions thrown by Servlets?

4 Answers   Amplify Mindware,


Can we use the constructor, instead of init(), to initialize servlet?

0 Answers  






Can we fetch the attributes related to a servlet on a different servlet?

0 Answers  


Why the concept of single thread model interface is used?

0 Answers  


Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!

0 Answers  


What are the different types of servlets?

0 Answers  


What is webservlet?

0 Answers  


What are the drawbacks of cgi?

0 Answers  


What do you mean by web applications? Explain web application directory arrangement?

0 Answers  


Categories