File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 Android Security Essentials Live Lessons this week in the Android 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how struts property value to custom tag
 
Similar Threads
Taglib that translates into a series of other taglib calls
OR condition implementation using logic:equal
Using Scriptlets in Custon Tags
Custom Tag - XML way of coding JSP
custom import tag