You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/04/07 19:48:30 UTC
DO NOT REPLY [Bug 7817] New: -
html:hidden tag not invoking setter on form bean
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7817>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7817
html:hidden tag not invoking setter on form bean
Summary: html:hidden tag not invoking setter on form bean
Product: Struts
Version: 1.0.2 Final
Platform: Other
OS/Version: Windows NT/2K
Status: NEW
Severity: Major
Priority: Other
Component: Custom Tags
AssignedTo: struts-dev@jakarta.apache.org
ReportedBy: alimanji5@hotmail.com
I am using the html:hidden tag inside my html:form tag yet upon submitting my
form this hidden tag doesn't populate the appropriate form bean field as the
other tags do. That is, the appropriate setter method on my form bean class is
not being invoked?
In my jsp I have the following:
...
<html:form action="dependentAction.action">
<html:hidden name="dependentType" value="child" property="child"/>
...
In my form bean I have the following:
public void setDependentType(String dependentType) {
System.out.println("Setting dependentType to: " +
dependentType);
this.dependentType = dependentType;
} // end setDependentType
The other setters are being called but not this one? Any ideas?
Thanks and regards,
Ali Manji
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>