Thnaks for your email, however in Tomcat you can do this:

server-side redirects on Tomcat:

<Context crossContext="true"/> in META-INF/context.xml 


then:

            ServletContext newContext = 
getServletContext().getContext(fooContext);
            RequestDispatcher requestDispatcher = 
newContext.getRequestDispatcher(fooResource);
            requestDispatcher.forward(req, res);


Is there a way to trick Stripes with something like the lines above?

Thanks a lot.




From: newma...@upmc.edu
To: stripes-users@lists.sourceforge.net
Date: Tue, 18 Aug 2009 12:48:05 -0400
Subject: Re: [Stripes-users] ForwardResolution does not go to right target



















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™. More than mail–Windows
Live™ goes way beyond your inbox. More than
messages


_________________________________________________________________
Share your memories online with anyone you want.
http://www.microsoft.com/middleeast/windows/windowslive/products/photos-share.aspx?tab=1
------------------------------------------------------------------------------
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

Reply via email to