-
-
-
-
-
When do we use JSP include and include directive?
At what situation we use JSP include and include directive
-
-
These ____________ listeners are notified when the Servlet context (i.e., the Web application) is initialized and destroyed/
Skill/Topic: JSP Thread ModelA) Session AttributeB) Servlet context attributeC) Session ListenersD) Servlet context listeners
-
-
-
The response.sendRedirect("……..”); is the response implicit object to redirect the browser to the different resource
Skill/Topic: Programming ConstructsA) TrueB) False
-
-
-
-
-
How do I use comments within a JSP page?
You can use "JSP-style" comments to selectively block out code while debugging or simply to comment your scriptlets. JSP comments are not visible at the client.For example:<%-- the scriptlet is now commented out<%out.println("Hello World");%>--%>You can also use HTML-style comments anywhere within your JSP page. These comments are visible at the client. For example:<!-- (c) 2004 javagalaxy.com...
-
-
-
State true or false -- While using request.getRequestDispatcher(path) we need to give the absolute path of the object
Skill/Topic: Programming ConstructsA) TrueB) FalseExplanation: request.getRequestDispatcher(path): In order to create it we need to give the relative path of the resource, context.getRequestDispatcher(path): In order to create it we need to give the absolute path of the resource.
-
When u try to redirect a page after you already have written something in your page, the error encountered is “Response has already been committed error” or popularly called 402 error.
Skill/Topic: Programming ConstructsA) FalseB) True
-
The error message displayed when the page is not found at the correct location.
Skill/Topic: Programming ConstructsA) 550 B) 440 C) 505 D) 404
JSP Interview Questions
Ans