aspose file tools*
The moose likes Struts and the fly likes Please help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Please help" Watch "Please help" New topic
Author

Please help

Sandeep Awasthi
Ranch Hand

Joined: Oct 23, 2003
Posts: 597
Hi all,

I want to set attribute of custom tag with the value of form bean

I am trying to do like this

<app:tag1 attr1="bean:write name="formName" property="property1" />" />

the value going in custom tag is "property1" instead of value in property1.

Please help me.


Thanks Rajesh


Sandeep
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Struts custom tags do not support embedding one custom tag within another. To get around this, you can either:

1-use a scriptlet instead of a <bean:write> tag.

2-Use the EL version of the tag (for example, html-el). These tags are exactly the same as the regular version except that they accept EL expressions as attrubute values.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please help