You can't use continue in a while loop.
Endless loop because it.next() is missing.
Never print anything because allocation is always null.
Allocation.getValue() Could give nullPointerException.
None of these
You need to delete the ; character
None of them
Forward executes on the server while sendRedirect() executes on the client.
Forward executes on the client while sendRedirect() executes on the server.
The two methods perform identically.
None of these
Unmatched bracket in for statement
Flush attribute must be false
Keyword 'file' should be used instead of 'page' in the action
Actions cannot be used within scriptlet blocks
Cookie class can not take parameters in it's constructor
The request object is used for creating cookies
Although no error will be reported the use of the action means that the response object can't be used to create cookies.
The action must be placed inside the script block
Using the < jsp:readParam /> action
Using the < jsp:getParam /> action
Use the request.getParameter() method
The two methods provide the same functionality, but with different levels of persistence.
The forward method is deprecated as of JSP 1.1 and the include method should be used in order to substitute portions of a dynamic display at runtime.
The include method transfers control to a dynamic resource, while the forward method allows for dynamic substitution of another JPS pages output, returning control to the calling resource.
He forward method transfers control to the designated resource, while the include method invokes the designated resource, substitutes its output dynamically in the display, and returns control to the calling page.
Servlets are built on JSP semantics and all servlets are compiled to JSP pages for runtime usage.
JSP and servlets are unrelated technologies.
Servlets and JSP are competing technologies for handling web requests. Servlets are being superseded by JSP, which is preferred. The two technologies are not useful in combination.
JSPs are built on servlet semantics and all JSPs are compiled to servlets for runtime usage.
Objects with session scope are accessible from pages processing requests that are in the same session as the one in which they were created.
It is not legal to define an object with session scope from within a page that is not session-aware.
All references to the object shall be released after the associated session ends.
References to objects with session scope are stored in the session object associated with the page activation.
Can include dynamically generated output.
Provides benefit of automatic recompilation.
Can be used to incorporate contents from static documents
It offers option of sharing local variables and better run time efficiency
JSP standard directives
JSP standard actions.
Script language declarations, scriplets and expressions.
A portable tag extension mechanism.
JSP page is a text-based document that describes how to process a request to create a response.
JSP page is a text-based document that describes how to process a to response create a request.
JSP page is a xml-based document that describes how to process a request to create a response.
JSP page is a xml-based document that describes how to process a to response create a request.
Objects with application scope are accessible from pages processing requests that are in the same application as they one in which they were created.
All references to the object shall be released when the runtime environment reclaims the ServletContext.
Objects with application scope can be defined (and reached) from pages that are not session-aware
References to objects with application scope are stored in the application object associated with a page activation
A Servlet can handle multiple requests concurrently, and synchronize requests.
Servlet support systems such as online real-time conferencing.
Servlet can forward requests to other servers and Servlet.
Servlet can be used to balance load among several servers that mirror the same content, and to partition a single logical service over xseveral servers, according to task type or organizational boundaries.
< scripting >
< script >
< js >
Call function myFunction
if i==5 then
if i=5 then