> Hi,
> Using Struts 1.3, Tomcat 6.
>
> I have the two following problems:
>
> 1. I have a screen where I enter some text and call a
> struts action to insert it into the database. The action
> calls a DAO to do that.
> When the screen returns, the values I entered in the text
> fields are still there and I want them to clear. I want
> the form to be clean.
> 2. Even after I restart Tomcat and return to this screen
> the values are still there. How can this be? This is a
> brand new request no? So all the forms and even the
> struts servlet should've been instantiated anew no?
>
If that is a session scoped form, the values will stay, unless you reset them.
You can set them blank in the action before showing the view.. or put value=""
in jsp.
<html:text property="mydata" value="" styleClass="myStyle" />
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]