-
-
The JspPage interface defines the __________ and ____ method which the page writer can use in their pages and are invoked in much the same manner as the ____ and _____ methods of a servlet.
Skill/Topic: JSP Life CycleA) jspInit(), jspDestroy(), init() , destroy()B) init(),jspDestroy(),jspInit(),destroy()C) destroy(),jspDestroy(),jspInit(),init()D) init(),destroy(),jspInit(), jspDestroy()
-
-
-
-
What are the advantages using servlets than using CGI?
Servlets provide a way to generate dynamic documents that is both easier to write and faster to run. It is efficient, convenient, powerful, portable, secure and inexpensive. Servlets also address the problem of doing server-side programming with platform-specific APIs. they are developed with Java Servlet API, a standard Java extension.
-
-
What do you understand by JSP Actions?
JSP actions are XML tags that direct theserver to use existing components or control thebehavior of the JSP engine. JSP Actions consist of atypical (XML-based) prefix of "jsp" followed by acolon, followed by the action name followed by one ormore attribute parameters.There are six JSP Actions:
-
-
-
-
-
-
-
-
-
What is the difference between and response.sendRedirect(url),?
The element forwards the requestobject containing the client request information fromone JSP file to another file. The target file can bean HTML file, another JSP file, or a servlet, as longas it is in the same application context as theforwarding JSP file. sendRedirect sends HTTP temporary redirect response tothe browser, and browser creates a new request to gothe redirected page. The response.sendRedirect...
-
What is the difference between and ?.
Both the tag includes the information from onepage in another. The differences are as follows:: This is like a functioncall from one jsp to another jsp. It is executed ( theincluded page is executed and the generated htmlcontent is included in the content of calling jsp)each time the client page is accessed by the client.This approach is useful to for modularizing the webapplication. If the included...
-
-
JSP Interview Questions
Ans