This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
Here's one way:

1) In your tag create a scripting variable and assign it the appropriate value. You can create the variable either via the "variable" declaration in the tag TLD, or with a TEI class. See a Custom Tag tutorial for specifics.

2) Be sure to specify that the scope of the variable is after the tag.

3) In your page use an if then else if then construct to switch between the various options based upon the value of the variable.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!