Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Doubt in JSP taglibs on using the doStartTag() method  RSS feed

 
Rinku Sharma
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi freinds,
I have a doubt on using the doStartTag() method in JSP taglib,s
Tag Handler file(.class file).
Can i return multiple values like we do in beans using the same doStartTag() method or not.
If i have to encapsulate two three different functionality in the same taglib which return different value then is it possible if yes how.
OR is it that for every functiionality i want i will have to write a different Tag Handler file and the corrosponding TLD file(XML format).
Please help me out.
Bye,
Amit
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure what you mean about returning multiple values.
Your doStartTag method can write a whole page worth of HTML if you want.
There is no reason not to have multiple functions selected by attributes that are set by the JSP.
The ultimate reference for JSP is the API file downloadable from java.sun.com.
Bill

------------------
author of:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!