struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Benedict <pbened...@apache.org>
Subject Re: S1 Quirk with html tag
Date Thu, 10 Dec 2009 02:29:31 GMT
Zoran,

> Anyway, my question is that I have two identical forms with identical
> configuration, but one works fine if the form elements don¹t have a name
> attribute and the other doesn¹t.To illustrate one form works with the
> following tag:
> <html:text property="title"/>

This retrieves the property "title" off the Struts form bean.

> But the second form only works when a name attribute is included:
> <html:text name="galleryForm" property="title"/>

This retrieves the property "title" off the bean named "galleryForm".
The default (without @name) is the Struts form bean.

For future reference, add this to your toolbox:
http://struts.apache.org/1.x/struts-taglib/tlddoc/html/tld-summary.html

Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message