If you're going outside of the currently running webapp, I don't believe you
can't forward. You'll have to use
public RedirectResolution(String url, boolean prependContext)
if prependContext is false stripes doesn't tack on /url_a allowing you to
redirect to xyz.com or localhost/AnotherApp/. You'll probably have to do
.addParameter("x", getX()).addParameter("y", getY()) to pass any params over.
From: Gerardo Corro [mailto:rob_gar_...@hotmail.com]
Sent: Tuesday, August 18, 2009 11:57 AM
To: stripes-users@lists.sourceforge.net
Subject: [Stripes-users] ForwardResolution does not go to right target
Hi all,
I'm using the ForwardResolution, I want to make an internal redirection from:
http://localhost:8081/url_a
to:
http://localhost:8081/url_x/?extras=yes
So, when getting a request for "/url_a" in my front action bean I have:
return new ForwardResolution("/url_x/?extras=yes");
but at the end the resource is resolved as:
HTTP Status 404 - /url_a/url_x/
type Status report
message /url_a/url_x/
description The requested resource (/url_a/url_x/) is not available.
What I'm doing wrong?
Thanks!
________________________________
check out the rest of the Windows Live(tm). More than mail-Windows Live(tm)
goes way beyond your inbox. More than
messages<http://www.microsoft.com/windows/windowslive/>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users