This week's book giveaways are in the AI and JavaScript forums.
We're giving away four copies each of GANs in Action and WebAssembly in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

Doubt in JSP taglibs on using the doStartTag() method

 
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
 
Author and all-around good cowpoke
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:
 
Men call me Jim. Women look past me to this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!