A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
OCA Java SE 8 Programmer I Study Guide 1Z0-808
this week in the
How to Implement Post Redirect Get in Struts 2
Joined: Apr 08, 2011
May 06, 2011 13:34:43
Please help me understanding this in terms of
I have to implement my Web Application works fine when user clicks browser back / forward button , refresh page .
Any example code is really appreciated.
Thanks in advance.
Joined: May 11, 2011
May 11, 2011 04:48:50
Struts 2 Cookbook: Redirect After Post
Instead of the default "dispatcher" result type
<action name="DoSomething" class="com.foobar.FooBarAction"> <result>/displayResult.jsp</result> </action>
use the "redirectAction" (or "redirect" respectively) result type instead.
<action name="DoSomething" class="com.foobar.FooBarAction"> <result type="redirectAction">DisplayResult</result> </action> <action name="DisplayResult" class="com.foobar.FooBarAction"> <result>/displayResult.jsp</result> </action>
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: How to Implement Post Redirect Get in Struts 2
Where are tlds for struts 2.0.11 ?
Can getters/setters be seperated from the ActionSupport class with a bean?
connection pooling in Struts
Struts interview questions
Java Version for Struts2
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015