I'm glad, and a bit embarrassed that I was so hasty to point a finger at the Struts folks. It turns out that they have a simple solution for resubmitting a form post. And it's exactly what I was hoping for; redirection.
In the action-mapping, and action only needs a forward with a redirect="true" attribute. Such as:
<action name="login" ...>
<forward name="loginSuccess" redirect="true" path="/path/showsomething.do"/>
</action>
My faith is restored in this framework, and I promise to do my homework a bit more before I decide to point fingers and spew forth my expert opinions :-)
No comments:
Post a Comment