Sunday, January 01, 2006

I WAS missing something!

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/"/>

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: