Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to redirect to a new url from Action class with post method?
Joined: Aug 21, 2009
Jan 27, 2010 07:47:17
In my action class am generating a new url which i need to redirect with Post method.
With the below code am able to redirect to the page
ActionForward forward=mapping.findForward("success"); String str="http://www.google.com" return new ActionForward(str, true);
But i need to redirect with post method so that user cant see the url and also if possible I would like to open in a new browser.
It is sorta covered in the
JavaRanch Style Guide
subject: How to redirect to a new url from Action class with post method?
URL changing problem
Action Chaining and request paramters
Adding Dynamic parameters to Action Forward in struts
Redirect to a Different context
Custom Action Forward in Struts
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013