struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ali Manji" <>
Subject html:hidden tag not invoking setter on Form bean???
Date Sun, 07 Apr 2002 17:52:49 GMT


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

Ali M. Manji

We increase what we have through scattering it and
experience poverty through hoarding it.
We are enlarged by pressure and shrunk by prosperity.

Chat with friends online, try MSN Messenger:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message