You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ZYD <el...@hotmail.com> on 2003/10/29 14:27:16 UTC

Reset button not always working

Dear all,

I have a Reset button on a Jsp page:

<html:reset>
         <bean:message key="button.reset"/>
</html:reset>

It works at first load. But when I forward to this page from other pages, this Reset button does nothing, it does not reset anything.

Does this problem sound familiar to you guys? 

cheers

bruce

Re: Reset button not always working

Posted by st...@daydream.stanford.edu.
The reset should change all values on your jsp page to those matching the 
html page, which would be populated by your ActionForm.

In other words, if you haven't changed any of the values on your web page, 
then the reset would appear to do nothing. Is that the behavior you're 
expecting, or are you expecting it to do something else?

It basically just resolves to the following html in the simplest case:
---
<input type="reset" name="reset" value="Reset">
---

At least that's my understanding.

Regards,
Oscar


On Wed, 29 Oct 2003, ZYD wrote:

> Dear all,
> 
> I have a Reset button on a Jsp page:
> 
> <html:reset>
>          <bean:message key="button.reset"/>
> </html:reset>
> 
> It works at first load. But when I forward to this page from other
> pages, this Reset button does nothing, it does not reset anything.
> 
> Does this problem sound familiar to you guys? 
> 
> cheers
> 
> bruce
> 


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