Could anyone explain why the property tag on <html:hidden> (and all tags
that subclass BaseFieldTag) is required (according to struts-html.tld)? I'm
trying to do the following:

<bean:parameter id="gid" name="gid" />
<html:form action="/myaction">
        <html:hidden name="gid" />
</html:form>

This should explain the problem, but to elaborate, I want to include a
hidden value in my form that comes from a bean other than the ActionForm
bean for the form, i.e. from the parameter itself.

If I change struts-html.told to required=false then the above code writes
this:
<input type="hidden" name="null" value="1">

If I change the above code to:
<html:hidden name="gid" property="gid" />

Then I get an error saying that there's no getGid() property on my gid
bean... which is correct. But the general trend seems to be that property is
optional where the bean can be evaluated as a String.

Am I misunderstanding something?

Matt.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to