• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Please help

 
Sandeep Awasthi
Ranch Hand
Posts: 597
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4864
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic