This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes how struts property value to 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 » Frameworks » Struts
Bookmark "how struts property value to custom tag" Watch "how struts property value to custom tag" New topic
Author

how struts property value to custom tag

Vicky Pandya
Ranch Hand

Joined: Dec 16, 2004
Posts: 148
I have custom tag, which has two parameters name param1 and param2
<myTag:compare param1="<bean : write " param2="<bean : write "

Above doesn't seem to work. I believe because it becomes nested tag. is there a way to resolve this without using scriptlet?
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Generally speaking,it does not work to nest one custom tag inside another. If your web container supports JSP 2.0, you could use an EL expression here:

<myTag:compare param1="${param.abc}" param2="${param.def}" />


Merrill
Consultant, Sima Solutions
 
wood burning stoves
 
subject: how struts property value to custom tag
 
Similar Threads
Using Scriptlets in Custon Tags
Custom Tag - XML way of coding JSP
OR condition implementation using logic:equal
custom import tag
Taglib that translates into a series of other taglib calls