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
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
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
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
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
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
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
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
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,
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
10 matches
Mail list logo