JSP 2.0 Test
Assume the custom tag is GLOOP and the prefix is TWONG. Which of the following is the syntax for an empty custom tag?
Assuming the servlet method for handling HTTPGET requests is doGet(HttpServletRequest req, HTTPServletResponse res), how do you get a request parameter in that servlet?
Assuming the tag library is in place and the tag handler is correct, which of the following is the correct way to use a custom tag in a JSP page?
How would you use a bean in a JSP page?
If cookies are turned off on the client, which two methods still work with the session ID?
In which directory do you place any auxiliary JAR files?
In which directory do you place servlet class files?
Read the following code snippet and answer the question based upon it: <taglib> <taglib-uri> http://www.yourcompany.com/you TagLibrary </taglib-uri> <taglib-location> /WEB-INF/your...
Read the following code snippet: 1 <libraryPrefix:handlerName parameterNAme="value"> 2 <%=23*counter %> 3 <b>Congratulations!</b> Which of the following is the correct way to complete the above c...
Suppose you had a servlet that simply returned an error message because that resource was forbidden to that user. Read the following code snippet: 1.public void service(HttpServletRequestrequest, ...
What does the container do with the following code snippet? <!--#include file="somefile.html"-->
What is Template Data?
What is the file name of the WebApp deployment descriptor?
What is the WebApp deployment descriptor element name for the Servlet Context Initialization Parameters?
What output will be sent to the browser by the following code snippet? <!-- Que <%="Reader"%> -->
Which among the following objects is the best choice to share information between pages for a single user?
Which design pattern did technical designers of JSP use to provide centralized dispatching of requests via a controller servlet?
Which design pattern is used to decouple presentation from core data access functionality?
Which design pattern reduces network traffic by acting as a caching proxy of a remote object?
Which interface and method name should be used to acquire a text stream for the response?
Which interface and method name should be used to retrieve HTTP request header information?
Which interface provides access to request scoped attributes?
Which JSP action retrieves the value of a property from a properly declared JavaBean in a JSP page?
Which method in the HttpServlet class corresponds to the HTTPPOST method?
Which method in the HttpServlet class corresponds to the HTTPPUT method?
Which method is called by the servlet container just after the servlet is removed from service?
Which of following interfaces can make a servlet thread safe?
Which of the following are used by Servlet Containers to maintain session information?
Which of the following is a JSP implicit object?
Which of the following is not a JSP implicit object?
Which of the following is the listener interface for servlet context attributes?
Which of the following is the name of the cookie used by Servlet Containers to maintain session information?
Which of the following options is a valid declaration?
Which of the following options is a valid expression?
Which of the following statements are true regarding declaring a servlet instance in a deployment descriptor?
Which of the following statements are true regarding the HTTP GET method?
Which of the following statements are true regarding the structure of a WebArchive file?
Which statement is true regarding a servlet context listener?
Which statement is true regarding ServletContext Initialization Parameters in the deployment descriptor?
Which statements are true regarding ServletContext Init Parameters in the deployment descriptor?
Which two of the following statements are best associated with the HTTPPOST method?
Which two statements among the following apply to redirecting a HTTP request to another URL?
With regard to the destroy lifecycle method, identify the correct statements about its purpose or about how and when it is invoked.
With regard to the service() lifecycle method, identify two correct statements about its purpose or about how and when it is invoked.
With regard to the servlet context listener, which of the following methods is valid?