struts-user mailing list archives

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

Hi,

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

http://www.geocities.com/alimanji5
http://home.talkcity.com/CapitolDr/alimanji

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: http://messenger.msn.com


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


Mime
View raw message