jQuery in Action, 2nd edition*
The moose likes Servlets and the fly likes Passing values dynamically to a custom tag: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Passing values dynamically to a custom tag:" Watch "Passing values dynamically to a custom tag:" New topic
Author

Passing values dynamically to a custom tag:

Raghav Sam
Ranch Hand

Joined: Apr 12, 2001
Posts: 412
I am not able to pass values dynamically to a custom tag. In the loop below, the value of itemName (and quantity) changes with the loop.

This is the code I tried and the parameter name has the value as <%=itemName%> instead of the actual value of itemName.
What should I do to pass just the value of itemName (and quantity) ?
------------------
Raghav.
[This message has been edited by Raghav Sam (edited October 19, 2001).]


Be who you are and say what you feel, because those who mind don't matter and those who matter don't mind.<br />- Dr. Seuss
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Did you indicate in the tag library descriptor (TLD) that the attribute takes run-time expressions? Eg
- Peter
Raghav Sam
Ranch Hand

Joined: Apr 12, 2001
Posts: 412
Originally posted by Peter den Haan:
[B]Did you indicate in the tag library descriptor (TLD) that the attribute takes run-time expressions? Eg
- Peter[/B]

I just figured it out myself. Thanx anyway...
Raghav.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Passing values dynamically to a custom tag:
 
Similar Threads
Populating a Select List with an Array
how to pass multiple values through hyperlink to a jsp page ?
JSP 2.0 Tag Files - is it possible to pass dynamic-attributes from one to another?
passing script parameters in custom tag
mock question