when the jsp page is translated to servlet?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
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 ?
Why servlet is mostly used?
Define the life cycle of a servlets.
What are the exceptions thrown by Servlets?
Can we use the constructor, instead of init(), to initialize servlet?
Can we fetch the attributes related to a servlet on a different servlet?
Why the concept of single thread model interface is used?
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!
What are the different types of servlets?
What is webservlet?
What are the drawbacks of cgi?
What do you mean by web applications? Explain web application directory arrangement?