-
What is the difference between GenericServlet and HttpServlet?
GenericServlet is for servlets that might not use HTTP, like for instance FTP service.As of only Http is implemented completely in HttpServlet. The GenericServlet has a service() method that gets called when a client request is made. This means that it gets called by both incoming requests and the HTTP requests are given to the servlet as they are.[qu]What are the differences between GET and POST service...
-
-
-
-
-
-
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 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 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.
-
-
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()
-
JSP Interview Questions
Ans