wood burning stoves 2.0*
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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how struts property value to custom tag