Hi,
I have a problem with a
JSP I wrote using
Struts. The JSP is a protocol search page offering three uses cases in a single Struts action: searching, deleting, downloading. When the user presses the buttons for downloading and deleting appropriate form fields are filled by a JavaScript function to determine which protocol to download or to delete. These fields are called protocolId and downloadId; the search (submit) button doesn't use JavaScript.
My problem is that after the user chose to download a protocol (the browser opens a download dialo etc...) and then hits the search button the protocolId or downloadId fields are still set (-> no empty
string). This is troublesome because I use the state of protocolId and downloadId to determine what the user did within the action. Like:
So the result is that a download window pops up after the user once chose to download a file and then hits the search button. What puzzles me is that I'd expect the form valid for the current request only, but apparently the IDs are still around. What do I miss here? Do I have to write a reset method in form class?
My Struts configuration: