Well, the audience for this particular site needs everything to be as simple as possible, and that particular page is being used in between questions of surveys that have 50 or more questions, so if someone had JavaScript disabled it would be considerably annoying.
This is the "flow" that I need to have working:
1) Survey page, displaying one
struts item that uses a dynamically generated list (based on the question number stored in a session variable, so I can display progress and such) in Survey.action
2) Clicking the submit button on the question page triggers Forward.action, which increments the question number and writes the previous answer to the database.
3) I need to refresh the Survey.action page, so that it can display the new question. Right now I have Forward.action dispatch to a second page, and then link back to the Survey.action page.
I want step 3 to happen automatically, but I
need the survey page to be refreshed in order to get the new question displayed, and to keep this system flexible for multiple surveys.
If there's no other way that doesn't involve using JavaScript with the link I already am using, I guess I'll have to do that, but I'd really prefer not to. Is there some way I can specify the action definition in struts.xml to forward to an action url instead of just a JSP?