Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

call back methods

 
Naresh Chaurasia
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
what are call back methods in jsp

thnx in advance
 
Darya Akbari
Ranch Hand
Posts: 1855
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The methods you implement and which are called by the container like servlet's init(), etc.

Regards,
Darya
 
Bm Bm
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, let me give you some details.
There are three callback methods in JSP

jspInit() - which you can override (similar to init() of servlet)

jspDestroy() - which also you can override (similar to destroy() of servlet)

_jspService() - This method you must never try to override. This method is created by the container in the generated servlet. And everything you write inside JSP expressions and scriplets goes inside this method.

--------------------------------
Regards,
BM
SCJP (98 %)
SCWCD Preparing...
[ September 20, 2005: Message edited by: The Developer ]
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!