Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

Forward a request to another domain

Thread view: 
Frizby - 11 May 2006 08:41 GMT
In a filter (javax.servlet.Filter) I try to forward a request to
servlet on a different domain name.
getContext take only a relative path.
This is my code :

RequestDispatcher dispatcher =
filterConfig.getServletContext().getContext("http://www.mydomain.com").getRequestDispatcher("/upload/uploadservlet");
dispatcher.forward(request, response);
filterChain.doFilter(request, response);

How can I do ?
Thank you for your help.
dnasmars@gmail.com - 11 May 2006 13:12 GMT
ask jdl :)
Frizby a écrit :

> In a filter (javax.servlet.Filter) I try to forward a request to
> servlet on a different domain name.
[quoted text clipped - 8 lines]
> How can I do ?
> Thank you for your help.
dnasmars@gmail.com - 16 May 2006 09:58 GMT
Have a look a this
http://mail-archive.objectweb.org/jonas/2005-01/msg00054.html


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.