Java JSB Servlets Question and Answers

33. Explain the concepts of SSI?
 
  • Server side Includes (SSI) are commands and directives placed in Web pages that are evaluated by the Web server when the Web page is being served. SSI are not supported by all web servers.
  • So before using SSI read the web server documentation for the support.
  • SSI is useful when you want a small part of the page to be dynamically generated rather than loading the whole page again.
 
Your Name Your Email-ID
Your Answer
34. What is EL?
 
  • EL stands expression language. An expression language makes it possible to easily access application data.
  • In the below expression amountofwine variable valued will be rendered.
 
Your Name Your Email-ID
Your Answer
35. What are the implicit EL objects in JSP?
  Following are the implicit EL objects:
  • PageContext: The context for the JSP page. Provides access to various objects for instance.
  • servletContext: The context for the JSP page's servlet and any web components contained in the same application.
  • session: The session object for the client.
  • request: The request triggering the execution of the JSP page.
  • response: The response returned by the JSP Page. See Constructing Responses.
  • param: Maps a request parameter name to a single value.
  • param Values: Maps a request parameter name to an array of values.
  • headerValues: Maps a request header name to an array of values.
  • cookie: Maps a cookie name to a single cookie.
  • initParam: Maps a context initialization parameter name to a single value.
Finally, there are objects that allow access to the various scoped variables described in Using scope Objects.
  • pageScope: Maps page scoped variable names to their values.
  • requestScope: Maps request scoped variable names to their values
  • sessionScope: Maps session scoped variable names to their values
  • applicationScope: Maps application scoped variable names to their values
 
Your Name Your Email-ID
Your Answer
36. How does JSP engines instantiate tag handler classes instances?
 
  • JSP engines will always instantiate a new tag handler instance every time a tag is encountered in a JSP page.
  • A pool of tag instances are maintained and reusing them where possible. When a tag is encountered, the JSP engine will try to find a Tag instance that is not being used and use the same and then release it.
 
Your Name Your Email-ID
Your Answer
123456789101112131415


Page 9 of 15