Tag: web technology

Questions Related to web technology

JSP technology is extensible

  1. True

  2. False


Correct Option: A

Java Server Pages specification includes

  1. JSP standard directives.

  2. JSP standard actions.

  3. Script language declarations, scriplets and expressions.

  4. A portable tag extension mechanism.


Correct Option: A,B,C,D

The < % return; % > simply aborts the processing of JSP

  1. True

  2. False


Correct Option: A

Which of the following statements is true regarding the scope of ‘page’ in JSP.

  1. Objects with page scope are accessible only within the page where they are created

  2. • References to objects with page scope are stored in the pagecontext object

  3. All references to such an object shall be released after the response is sent back to the client from the JSP page or the request is forwarded somewhere else.

  4. All of the above.


Correct Option: D

AI Explanation

To answer this question, we need to understand the scope of 'page' in JSP.

Option A) Objects with page scope are accessible only within the page where they are created - This option is correct. Objects with page scope in JSP are accessible only within the page where they are created. They cannot be accessed from other JSP pages or servlets.

Option B) References to objects with page scope are stored in the pagecontext object - This option is correct. References to objects with page scope are stored in the pagecontext object. The pagecontext object provides access to various scoped objects, including page scope.

Option C) All references to such an object shall be released after the response is sent back to the client from the JSP page or the request is forwarded somewhere else - This option is correct. All references to objects with page scope should be released after the response is sent back to the client or the request is forwarded to another page. This is to prevent memory leaks and ensure efficient memory usage.

Therefore, the correct answer is D) All of the above. All the statements provided in options A, B, and C are true regarding the scope of 'page' in JSP.

  1. setContentType()

  2. setPrintType()

  3. setWriter()

  4. setContentWriter()


Correct Option: A

The response.sendRedirect("……..”); is the response implicit object to redirect the browser to the different resource

  1. True

  2. False


Correct Option: A

Which of the following can the JSP include action include output from ?

  1. Another JSP

  2. Plain text file

  3. Servlet

  4. CGI Program

  5. All of the above


Correct Option: E
  1. The action can pass parameters to the page which it is including. How does this second page obtain the value of these parameters?
  1. Using the action

  2. Using the action

  3. Use the request.getParameter() method

  4. Use the response.getParameter() method


Correct Option: C
  1. Unmatched bracket in for statement

  2. Flush attribute must be false

  3. Keyword 'file' should be used instead of 'page' in the action

  4. Actions cannot be used within scriptlet blocks


Correct Option: D
  1. a. Two Administration server and one Managed servers

  2. b. One Administration server and optional Managed servers

  3. c. One Administration server and two Managed servers

  4. d. None of the above


Correct Option: B