Java JSB Servlets Question and Answers

41. What do you understand by JSP Actions?
  JSP actions are XML tags that direct the server to use existing components or control the behavior of the JSP engine. JSP Actions consist of a typical (XML based) prefix of "jsp" followed by a colon, followed by the action name followed by one or more attribute parameters. There are six JSP Actions are
<jsp:include/>
<jsp:forward/>
<jsp:plugin/>
<jsp:usebean/>
<jsp:setProperty/>
<jsp:getProperty/>
 
Your Name Your Email-ID
Your Answer
42. What do you understand by JSP Translation?
 
  • JSP translators generates standard Java code for a JSP page implementation class.
  • This class is essentially a servlet class wrapped with features for JSP functionality.
 
Your Name Your Email-ID
Your Answer
43. What are the advantages of Cookies over URL rewriting?
 
  • Sessions tracking using Cookies are more secure and fast.
  • Session tracking using Cookies can also be used with other mechanisms of Session Tracking like url rewriting.
  • Cookies are stored at client side, so some clients may disable cookies, so we may not be sure whether the cookies will work or not.
  • In url rewriting large data transfer is required and to the server. So, it leads to network traffic and access may be becomes slow.
 
Your Name Your Email-ID
Your Answer
44. What is the difference between authentication and authorization?
  Authentication is the process the application identifies that you are who. For example when a user logs into an application with a username and password, application checks that the entered credentials against its user data store and responds with success or failure.
Authorization, on the other hand, is when the application checks to see if you are allowed to do something. For instance are you allowed to do delete or modify a resource.
 
Your Name Your Email-ID
Your Answer
123456789101112131415


Page 11 of 15