This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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

JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Please help" Watch "Please help" New topic

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

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.

Consultant, Sima Solutions
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Please help
It's not a secret anymore!