Java JSB Servlets Question and Answers

29. What is a session?
 
  • A session refers to all the requests that a single client makes to a server.
  • A session is specific to the user and for each user a new session is created to track all the requests from that user.
  • Every user has a separate session and a separate session variable is associated with that session.
  • In case of Web applications the default time out value for session variable is 20 minutes, which can be changed as per the requirement.
 
Your Name Your Email-ID
Your Answer
30. Can you extend JSP Technology?
 
  • JSP technology lets the programmer to extend the jsp to make the programming more easy.
  • JSP can be extended and custom actions and tag libraries can be developed.
 
Your Name Your Email-ID
Your Answer
31. What is JSP Declaration?
 
  • JSP Declaratives are the JSP tags used to declare variables. Declaratives are enclosed in the <% ! %> tag and ends in semi colon.
  • You declare variables and functions in the declaration tag and can use anywhere in the JSP.
 
Your Name Your Email-ID
Your Answer
32. What are JSP Custom tags?
 
  • JSP Custom tags are user defined JSP language element.
  • JSP custom tags are user defined tags that can encapsulate common functionality.
  • For example you can write your own tag to access the database and performing database operations.
  • You can also write custom tag for encapsulating both simple and complex behaviors in an easy to use syntax and greatly the readability of JSP pages.
 
Your Name Your Email-ID
Your Answer
123456789101112131415


Page 8 of 15