users@jersey.java.net

forwarding to another URL

From: Hubert Le Van Gong <Hubert.Levangong_at_Sun.COM>
Date: Thu, 14 May 2009 15:25:11 +0200

Maybe an obvious one: how do I go about forwarding the request to
another URL (like a jsp page)?
I want to avoid using a redirect (i.e. SeeOther with the Response
builder).

Is RequestDispatcher() meant for this?
So something like:

RequestDispatcher reqdisp;
reqdisp.dispatch(jsp_location_uri, context);


Cheers,
Hubert



--
Hubert A. Le Van Gong
Identity Architect
Sun microsystems, Inc.
17 Rue Duprey
Grenoble, 38000
France
--------------------------------------------------
email: hubert.levangong_at_sun.COM
tel:+33 4 7663 0935
blog: http://blog.levangong.com/
N 45  12.011'
W 005  44.217'