Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Action Form remembering values

 
Brian Quinn
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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()
{
parent.filter.location.href="./Filter.do";
parent.filter.location.reload();
}
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
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your struts-config.xml, what do you have set for the action's scope?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic