Java JSB Servlets Question and Answers

17. What is JSTL?
 
  • JSTL is also called JSP tag libraries.
  • They are collection of custom actions which can be accessed as JSP tags.
 
Your Name Your Email-ID
Your Answer
18. What are JSP directives?
  JSP directives do not produce any output. They are used to get global values like class declaration, context type etc. Directives have scope for entire JSP file. They start with <%@ and ends with %>. There are three main directives that can be used in JSP:
  • page directive
  • include directive
  • taglib directive
 
Your Name Your Email-ID
Your Answer
19. What is URL rewriting?
 
  • It’s based on the concept of attaching a unique ID (which is generated by the server) in the URL of response from the server.
  • So the server attaches this unique in each URL. When the client sends a requests it sends back this ID with the request also which helps the server to identify the client uniquely.
 
Your Name Your Email-ID
Your Answer
20. Why HTTP protocol called as a stateless protocol?
 
  • A protocol is stateless if it cannot remember difference between one client request and the other.
  • HTTP is a stateless protocol because each request is executed independently without any knowledge of the requests that came before it.
 
Your Name Your Email-ID
Your Answer
123456789101112131415


Page 5 of 15