A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Oct 23, 2003
Feb 20, 2007 04:24:00
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.
Joined: Feb 15, 2005
Feb 20, 2007 09:13:00
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:
subject: Please help
rtexprvalue for html:text value attribute inside logic:iterate
default value of body-content
mapping bean properties question
select tag in struts
Passing a bean property to a custom tag using JSTL
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014