what is the life cycle of jsp?
Answer / malligontla
THe generated servlet class for a JSP page implements the
HttpJspPage interface of the javax.servlet.jsp package.
HttpJspPage interface extends the JspPage interface which
inturn extends the Servlet interface of the javax.servlet
package. the generated servlet class thus implements all the
methods of the these three interfaces. The JspPage interface
declares only two mehtods - jspInit() and jspDestroy() that
must be implemented by all JSP pages regardless of the
client-server protocol. However the JSP specification has
provided the HttpJspPage interfaec specifically for the JSp
pages serving HTTP requests. This interface declares one
method _jspService().
The jspInit()- The container calls the jspInit() to
initialize te servlet instance.It is called before any other
method, and is called only once for a servlet instance.
The _jspservice()- The container calls the _jspservice() for
each request, passing it the request and the response objects.
The jspDestroy()- The container calls this when it decides
take the instance out of service. It is the last method
called n the servlet instance.
| Is This Answer Correct ? | 10 Yes | 1 No |
how to create Calculator GUI using Gridbaglayout as like as Window Calculator??????????? (Open calculator Go-->Run-->type calc-->Enter)
What are JTA/JTS and how they used by client?
What does module-relative mean?
What is a modular application?
Is it possible to stop the execution of a method before completion in a sessionbean?
Is there a guarantee of uniqueness for entity beans?
Why use a datasource when you can directly specify a connection details? (in a J2EE application)
What is the O/P of the below Code Snippet ? And how does it imply the concept of call-by-value/call-by-reference. (Note : Pls ignore syntx errors) public class One { sop ("Into One--"); } public class Two extends One{ sop ("Into Two--"); } public class Home { One a; Two t; public static void main(argv[]) { sop ("In Home--"); sop(One.a); sop(Two.a); sop(One.t); sop(Two.t); } }
what is singleton class? where it mainly used in the projects?
What is the purpose of the finally clause of a try-catch-finally statement?
What is Connection Pooling?
1 Answers Enteg Technologies, Infosys, Polaris,
What are the different approaches to represent an inheritance hierarchy?