New User ? Sign Up  |  Sign In  |  Help

Ask
Answer
Analyse
     
Search for questions :
My Profile

anonymous

Open Questions Bookmark and Share

Explain the life-cycle mehtods in JSP?


311 day(s) ago

    Comment(s) (0)
    Report Abuse
   Find Interesting  
   Email to Friends  
   Bookmark  
   Subscribe to Answer Alert  
No comments yet !!!     Be the first to ocmment !!!
Answers (1)

anonymous
THe generated servlet class for a JSP page implements the HttpJspPage interface of the javax.servlet.jsp package. Hte HttpJspPage interface extends the JspPage interface which inturn extends the Servlet interface of the javax.servlet package. the generated servlet class thus implements all the methods of the these three interfaces. The JspPage interface declares only two mehtods - jspInit() and jspDestroy() that must be implemented by all JSP pages regardless of the client-server protocol. However the JSP specification has provided the HttpJspPage interfaec specifically for the JSp pages serving HTTP requests. This interface declares one method _jspService(). The jspInit()- The container calls the jspInit() to initialize te servlet instance.It is called before any other method, and is called only once for a servlet instance.The _jspservice()- The container calls the _jspservice() for each request, passing it the request and the response objects.The jspDestroy()- The container calls this when it decides take the instance out of service. It is the last method called n the servlet instance.

Posted 311 dy ago

( 0 )
( 0 )
    Comment(s) (0)
   Report Abuse
No comments yet !!! Be the first to comment on this answer !!!

Edit your answer. Click save, when done.
Question Title Explain the life-cycle mehtods in JSP?
Your Answer
  |         |                            
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link.
Caption :
Link URL :
( Must starts with "http://" )
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :  
( Image url must always starts with " http:// " )
Width : pixels
( Must not be greater than 450px. Enter 0px for no resize )
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Max Allowed Characters: 5000 Current Character Count: 0
  Your comment on this question
  |         |                            
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link.
Caption :
Link URL :
( Must starts with "http://" )
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :  
( Image url must always starts with " http:// " )
Width : pixels
( Must not be greater than 450px. Enter 0px for no resize )
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Max Allowed Characters: 5000 Current Character Count: 0
  Your comment on this answer
  |         |                            
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link.
Caption :
Link URL :
( Must starts with "http://" )
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :  
( Image url must always starts with " http:// " )
Width : pixels
( Must not be greater than 450px. Enter 0px for no resize )
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Max Allowed Characters: 5000 Current Character Count: 0
Email this question link to friends
You must enter email-address, if name is entered and vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -

Top searches


Time2Ask.com on face book Time2Ask.com on Twitter Time2Shaadi.com Promote your business

© 2008-2011.Time2Ask does not guarantee the accuracy of any Time2Ask.com content.All product names are trademarks of their respective companies.We are not endorsed by or affiliated with any company listed at this site and any other company.