This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Action Form remembering values Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Action Form remembering values" Watch "Action Form remembering values" New topic

Action Form remembering values

Brian Quinn
Ranch Hand

Joined: Dec 23, 2003
Posts: 32
I have a filter form that the user clicks values and submits and a table appears. This form has submit and clear buttons. If I hit clear the table empties properly, but the filter remembers the values selected by the user even though I have a javascript function reloading the filter form. Strange thing is , the values are not always rememebered. Sometimes the form is cleared properly, other times it is not . Here is my javascript :
function windowReload()
And the button as an on click = windowsReload for the clear button.
Any idea why the selected values would be remembered by the form ?
David Yutzy
tumbleweed and gunslinger
Ranch Hand

Joined: Jun 29, 2001
Posts: 192
In your struts-config.xml, what do you have set for the action's scope?
It is sorta covered in the JavaRanch Style Guide.
subject: Action Form remembering values
Similar Threads
best approach to send data from a selected row of a table
Avoiding form resubmission
Across JSPs wrong JavaScript Function with the same prototype is getting called
using OGNL
row selection