You can try to tell the container not to cache the pages. This way each time
a page is requested the browser it's (should be)  asking the container for
it, so you might get the new values. It has some drawbacks (a Refresh page)
so you should test it to see if it's fit.
If you use the ActionServlet it should look something like this:

<servlet-name>action</servlet-name>
    <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
    <init-param>
        <param-name>nocache</param-name>
            <param-value>true</param-value>
        </init-param>
    <init-param>

HTH
Cezar


-----Original Message-----
From: Koni [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 28, 2003 11:01 AM
To: [EMAIL PROTECTED]
Subject: How to reset a form


I have a form with two select boxes. When I change something in selectbox_1
the selectbox_2 changes also (by javascript). After successful saving the
stuff I return to the same page. Unfortunately this page shows still the
old values!? After pressing reload in the browser, the correct values show
up.

How can I reset a form in my Action? I tryed the method form.reset() but
it still shows the old values.

Any Ideas to show the new values? Has someone similar problems?
Thanks
Koni


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.512 / Virus Database: 309 - Release Date: 8/19/2003


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to