Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

call back methods  RSS feed

 
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 ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!