You cannot have "." in your form-property names.
This is what the dtd says about form-properyt names
<!-- A "PropName" is the name of a JavaBeans property, and must begin
with a lower case letter and contain only characters that are legal in
a Java identifier.
-->
Thanks,
Kishore Senji.
On Fri, 06 Aug 2004 14:02:40 +0100, Ricardo Gladwell <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I'm having some problems with nested properties in Strust. Struts seems
> to loose property values when specifying nested bean properties in
> an action form. For example, the following fragment is an example of
> attempting to set a value in a view JSP:
>
> <html:text property="webdav.url" value="${config.webdav.url}"/>
>
> When Struts attempts to set the webdav.url nested bean property for,
> example, a DynaActionForm the value is passed as null to the action form
> setter method.
>
> In the documentation it clearly states that "the property attribute for
> the Struts-HTML tags accept simple, nested, and indexed expressions":
>
> http://struts.apache.org/api/org/apache/struts/taglib/html/package-summary.html#package_description
>
> I checked and the property setter method for the DynaActionForm in the
> example I cited is being called and the 'webdav.url' string is being
> passed as the property name but the property value passed is 'null'
> despite the fact that I have entered a value. When I switch to using
> standard, non-nested property name values in the html:text tag the
> values are set correctly.
>
> Is this proper behaviour for Struts or is it some kind of bug?
>
> Kind regards...
>
> -- Ricardo
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]