There is a direct way, see:
http://stripes.sourceforge.net/docs/current/javadoc/net/sourceforge/stripes/action/RedirectResolution.html#RedirectResolution%28java.lang.String,%20boolean%29
public
RedirectResolution(String<http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html?is-external=true>
url,
boolean prependContext)
Constructor that allows explicit control over whether or not the context path
is prepended to the URL before redirecting.
Parameters:
url - the URL to which the user's browser should be re-directed.
prependContext - true if the context should be prepended, false otherwise
I myself have never used it but, return new
RedirectResolution("http://www.google.com", false); should do what you want.
From: Ben Gunter [mailto:gunter...@gmail.com]
Sent: Thursday, April 01, 2010 11:12 AM
To: Stripes Users List
Subject: Re: [Stripes-users] Redirecting to url outside my application
There's no direct way to do it, but you can try this:
return new RedirectResolution("") {
@Override
public String getUrl(Locale locale) {
return "http://www.google.com/";
}
};
-Ben
On Thu, Apr 1, 2010 at 10:54 AM, Ivan L.
<dukeofb...@gmail.com<mailto:dukeofb...@gmail.com>> wrote:
Hello, i want to redirect user from my action bean to other web site (and add
some parameters to url just like strings). How can I do that? Is it done by
Resolution at all?
For example:
public Resolution newOne() {
return new SomeResolution("www.google.com<http://www.google.com>");
}
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users