Hi Ashwin I am too facing the same issue now , On redirection the port number is getting omitted, Since this is a 2 years back thread, I suppose you might have got the solution, Please reply back with the solution.
thanks faheem ashwin soorkeea wrote: > > > Hello all, > > I have a problem for my application and this prob is causing an entire > netw= > ork of users from using my application. I will appreciate > if you guys can help me solve my prob. > > It concerns the servlet response.sendRedirect(...) method. > > When using the response.sendRedirect("/myexample") in my java class, i do > n= > ot want the servlet engine to reconstruct > an absolute URL, before sending the response to the browser. I want it to > b= > e handle by the browser keeping it relative throughout > the application. I know it's possible, but i dunno how to do it. Can you > he= > lp ?=20 > > The URL reconstruction by the servlet engine during a redirection is > causin= > g some problems in my application. > > Example: > I have this link on browser http://127.0.0.1:<port_number>, when > performing= > a sendRedirect, i'm losing the <port_number> > during the url reconstruction by the servlet engine. > On the other hand, i have another application that is interconnected, but > i= > n this application, the url is relative throughout, even though > it passes through the response.sendRedirect(...) and consequently, i do > not= > have this prob in this application. > > Im using tomcat-4.1 and i'm checking the URL redirection using the HTTP > liv= > e header plugins for firefox. > > Thank you for your help. > Regards, > Ashwin > _________________________________________________________________ > i’m is proud to present Cause Effect, a series about real people making a > difference. > http://im.live.com/Messenger/IM/MTV/?source=text_Cause_Effect > -- View this message in context: http://old.nabble.com/Response.SendRedirect-problems-tp14361975p31005032.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org