Re: forcing relative urls from struts instead of the absolute urls!

2006-01-06 Thread Ognjen Blagojevic
Max Cooper wrote: It sounds like your main challenge is that you have requests to a web server that look like http://web.domain.com/foo/bar/me mapped to an app deployed on an app server that you might access directly as http://app.domain.com/me. The app will make site-root relative URLs like

Re: forcing relative urls from struts instead of the absolute urls!

2006-01-04 Thread Max Cooper
On Tue, 2006-01-03 at 16:51 -0500, Michael P. Soulier wrote: On 13/12/05 Max Cooper did say: It sounds like your main challenge is that you have requests to a web server that look like http://web.domain.com/foo/bar/me mapped to an app deployed on an app server that you might access

Re: forcing relative urls from struts instead of the absolute urls!

2006-01-03 Thread Michael P. Soulier
On 13/12/05 Max Cooper did say: It sounds like your main challenge is that you have requests to a web server that look like http://web.domain.com/foo/bar/me mapped to an app deployed on an app server that you might access directly as http://app.domain.com/me. The app will make site-root

Re: forcing relative urls from struts instead of the absolute urls!

2005-12-13 Thread Max Cooper
Note that Struts isn't writing absolute URLs. As a webapp developer, you use context-relative references that Struts turns into site-root relative URLs. Here are examples of each type of reference, just so we are all on the same page: Relative: foo.html Site-root relative: /myapp/foo.html

Re: forcing relative urls from struts instead of the absolute urls!

2005-12-12 Thread Michael P. Soulier
Laurie Harper wrote: Because if they were relative Struts would have no way to know what they were relative *to*? But why does it need to know? I have links in sites that I look after like foo/bar/bash.html If I access this via http://mybox.com/, then the browser does the right thing. If

Re: forcing relative urls from struts instead of the absolute urls!

2005-12-09 Thread Michael P. Soulier
fix the problem that struts, for some inane reason, _requires_ absolute URLs in its config! Why why why?? Mike -- Michael P. Soulier [EMAIL PROTECTED], 613-592-2122 x2522 Linux applications development ...the word HACK is used as a verb to indicate a massive amount of nerd-like effort. -Harley

Re: forcing relative urls from struts instead of the absolute urls!

2005-12-09 Thread Laurie Harper
in the html, but that won't fix the problem that struts, for some inane reason, _requires_ absolute URLs in its config! Why why why?? Because if they were relative Struts would have no way to know what they were relative *to*? Maybe inputPattern and/or pagePattern are what you're looking

forcing relative urls from struts instead of the absolute urls!

2005-12-06 Thread Michael P. Soulier
Hello, I didn't find this in the archives, so I'll ask. I have a tomcat app deployed via proxypass from apache (2 in fact, a double-proxy through 2 servers). It needs to use relative paths in its links to ensure that the composed path is correct. Unfortunately struts doesn't seem to want to

Re: Absolute URLs

2004-08-20 Thread Michael McGrady
Toby Saville wrote: Is there any way I can make URL's generated by struts, be absolute including the protocol, hostname and port? Thanks One response showed you how to get the absolute URL of a request, but I don't know if that is what you want. The answer to your question depends, I suspect,

Absolute URLs

2004-08-19 Thread Toby Saville
Is there any way I can make URL's generated by struts, be absolute including the protocol, hostname and port? Thanks *** This message is intended for the addressee named and may contain confidential information. If you are not the