Java JSB Servlets Question and Answers
13. | What mechanisms are used by a Servlet Container to maintain Session Information? |
---|---|
Servlet Container uses Cookies, URL rewriting and HTTPS protocol information to maintain the session. | |
14. | What is JSP Scriptlet? |
---|---|
JSP Scriptlet is a jsp tag which is used to enclose a java code in the JSP pages.
Scriptlets begins with <% tag and ends with %?> tag. Java code written inside scriptlet executes every time the JSP is invoked. Example: <% // java codes String userName = null; username = request.getParameter ("userName") ; %> |
|
15. | What are the methods of HttpServlet? |
---|---|
The methods of HttpServlet class are
|
|
16. | How does EL search for an attribute? |
---|---|
EL parser searches the attributes in following order:
|
|