In your reset() try to initialize the string to null. (Not "" )

Hope this helps.

> ----------
> From:         Anurag Garg[SMTP:[EMAIL PROTECTED]
> Reply To:     Struts Users Mailing List
> Sent:         Thursday, June 12, 2003 11:46 AM
> To:   Struts Users Mailing List
> Subject:      html:hidden and value 
> 
> 
> 
> 
> Hi,
> 
> I am using html:hideen element and specifying the value in the jsp page
> like
> this.
> <html:hidden property="login" value="userName" />
> 
> In my ActionForm I am declaring a variable String login with getter and
> setter methods. In my reset() method I        initialize the string to
> blank
> string "".
> 
> When I print the value of hidden element in my action form it displays a
> blank string "", rather than displaying the value "userName".
> 
> I do not understand where the problem is. Any help will be Great..
> 
> Anurag Garg
> 
> 
> ---------------------------------------------------------------------
> 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]

Reply via email to