-
-
-
-
-
-
The _________interface provides information to servlets regarding the environment in which they are running.
Skill/Topic: ServletsA) ServletContextExplanation: It also provides standard way for servlets to write events to a log file.
-
When a servlet accepts a call from a client, it receives two objects. What are they?
ServeltRequest: which encapsulates the communication from the client to the server.ServletResponse: which encapsulates the communication from the servlet back to the client.ServletRequest and ServletResponse are interfaces defined by the javax.servlet package.
-
-
-
-
What is the need of taglibraries?
Answer the question.....
-
-
Which of the following statements is true about the GenericServlet. (Multiple choice)
Skill/Topic: ServletsA) GenericServlet is for servlets that might not use HTTP, like for instance FTP service.B) As of only Http is implemented completely in GenericServlet. C) The GenericServlet has a service() method that gets called when a client request is made. D) GenericServlet is called by both incoming requests and the HTTP requests are given to the servlet as they are.
-
The wrapper function like <%! String blanknull(String s) { return (s == null) ? "" : s; } %> then use it inside your JSP form, like <input type="text" name="shoesize" value="<%=blanknull(shoesize)% >" > prevents the word__________ from apperaring in an HTML page.
Skill/Topic: Programming ConstructsA) Null
-
-
-
-
-
What are the steps required in adding a JSP Tag Libraries?
1. Create a TLD file and configure the required class Information.2. Create the Java Implementation Source extending the JSP Tag Lib Class (TagSupport).3. Compile and package it as loosed class file or as a jar under lib folder in Web Archive File for Class loading.4. Place the TLD file under the WEB-INF folder.5. Add reference to the tag library in the web.xml file.
-
JSP Interview Questions
Ans