Originally posted by Joachim Rohde:
Yes, you can have dynamic results. Have a look at http://struts.apache.org/2.1.2/docs/result-configuration.html
And if you want to stay on the same page, why don't you provide the page you came from as the result?
Thanks for the link. Is there some sort of comprehensive tag documentation somewhere? The tag reference library doesn't have everything documented, the API's don't have anything about tags that I can see, and the guides section on the Struts2 page doesn't have everything used yet.
As for providing the page I came from as a result, how would I go about doing that? Is there an interface for accessing session information from stuts.xml or my action classes?
The action I am writing is hopefully going to be something I can put at the top every page that users need to be logged in to view, so I'd like to forward away if they aren't logged in, and stay there if they are logged in.