Not sure I really understand what you are saying. By the time the response is generated it's too late, you need to ensure that the paths are correct when the request is submitted (or at least that they are in a suitable state to be resolved by Tomcat).
I don't think the response is the right place to be looking. Rgds Duncan On 7/30/07, Burak Yýlmaz <[EMAIL PROTECTED]> wrote: > Its an amazing solution for me that i was looking for something like this > exactly... But originally it would be better if i could send and set this > from java response like response.BasePath=global value; > > I looked at response functions its not directly possible. Or is it? > > Thank you > > Note:Previous email was wrongly sent without any text from me sorry. > > ----- Original Message ---- > From: Lyallex <[EMAIL PROTECTED]> > To: Tomcat Users List <users@tomcat.apache.org> > Sent: Monday, July 30, 2007 9:29:01 PM > Subject: Re: How to change(override) application path > > > Hi > > I've had all sorts of problems understanding how relative links are > resolved so I found this solution somewhere and it works well for me > > All my pages import a header file (header.jsp) in header.jsp I have this > > <% > String basePath = request.getScheme()+"://"+request.getServerName()+"/"; > %> > > <html> > <head> > <base href="<%=basePath%>"> > .... > > Now I no longer have any problems with links not working, ever. > > I have my app installed as the default app. If you are using a non > ROOT context you can append request.getContextPath() like this > > > <% > String basePath = > request.getScheme()+"://"+request.getServerName()+"/"+request.getContextPath()+"/"; > %> > > It works for me > > Rgds > Duncan > > > > ____________________________________________________________________________________ > Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel > and lay it on us. http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7 > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]