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 /me

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

2006-01-04 Thread Max Cooper
pp server that you might access directly as > > http://app.domain.com/me. The app will make site-root relative URLs > > like /me/foo.html, and the browser will them make a request to the web > > server like http://web.domain.com/me/foo.html which is not what you > > want. > &

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

2006-01-03 Thread Michael P. Soulier
ke site-root relative URLs > like /me/foo.html, and the browser will them make a request to the web > server like http://web.domain.com/me/foo.html which is not what you > want. That is correct. > What is stopping you from deploying the app with a "/foo/bar/me" > co

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

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 it'

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

2005-12-09 Thread Laurie Harper
Michael P. Soulier wrote: Michael Jouravlev wrote: Links to what? To action or to JSP page? A form action, primarily. I don't think that references below answer your question, but they contain valuable info anyway: No, I'm afraid that they don't. I don't need a tag lib to put a tag in th

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

2005-12-09 Thread Michael P. Soulier
Michael Jouravlev wrote: Links to what? To action or to JSP page? A form action, primarily. I don't think that references below answer your question, but they contain valuable info anyway: No, I'm afraid that they don't. I don't need a tag lib to put a tag in the html, but that won't fix

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

2005-12-06 Thread Michael Jouravlev
On 12/6/05, Michael P. Soulier <[EMAIL PROTECTED]> wrote: > 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 compos

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 u

RE: REPOST: Relative URLs

2005-03-30 Thread tarek.nabil
: Thanks Erik. I guess when you get into the tags mood, you forget there's something called scriptlets :) -Original Message- From: Erik Weber [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 30, 2005 5:06 PM To: Struts Users Mailing List Subject: Re: REPOST: Relative URLs

Re: REPOST: Relative URLs

2005-03-30 Thread Erik Weber
-Original Message- From: Benedict, Paul C [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 29, 2005 6:26 PM To: 'Struts Users Mailing List' Subject: RE: REPOST: Relative URLs Erik, The problem may be that you are using JSP Tags, which are commonly written to only output links to resourc

RE: REPOST: Relative URLs

2005-03-30 Thread tarek.nabil
28 AM To: Struts Users Mailing List Subject: RE: REPOST: Relative URLs Dear Tarek, Action example URL: http://server/my-application/my-module/doSomething.do Resulting JSP's image example UR: http://server/my-application/images/some-image.gif What happens when you use html:img with

RE: REPOST: Relative URLs

2005-03-29 Thread tarek.nabil
rs Mailing List' Subject: RE: REPOST: Relative URLs Erik, The problem may be that you are using JSP Tags, which are commonly written to only output links to resources within your context. You may want to simply think of writing plain old and tags and do it yourself. -Original Message-

RE: REPOST: Relative URLs

2005-03-29 Thread David G. Friedman
Dear Tarek, Action example URL: http://server/my-application/my-module/doSomething.do Resulting JSP's image example UR: http://server/my-application/images/some-image.gif What happens when you use html:img with (depending on your version of Struts): a) contextRelative="false"[for 1.1 or earl

RE: REPOST: Relative URLs

2005-03-29 Thread Benedict, Paul C
: Tuesday, March 29, 2005 9:18 AM To: Struts Users Mailing List Subject: Re: REPOST: Relative URLs Can't you embed a ServletContext attribute (variable) in your links using the EL? The attribute value could come from an init param and get set at app startup. Erik tarek.nabil wrote: >Hi

Re: REPOST: Relative URLs

2005-03-29 Thread Erik Weber
Can't you embed a ServletContext attribute (variable) in your links using the EL? The attribute value could come from an init param and get set at app startup. Erik tarek.nabil wrote: Hi everyone, I still can not find an answer to my question, so I thought I'd repost this and try to make it clea

REPOST: Relative URLs

2005-03-29 Thread tarek.nabil
Hi everyone, I still can not find an answer to my question, so I thought I'd repost this and try to make it clearer. I really apreciate any help. How can I refer to resources that are outside my module in a way that will not mandate rewriting all the URLs in case I change the location of my modu

REPOST: Relative URLs

2005-03-23 Thread tarek.nabil
Can someone please advise me on this issue. Thanks -Original Message- From: tarek.nabil Sent: Saturday, March 19, 2005 10:14 AM To: user@struts.apache.org Subject: Relative URLs Hi everyone, Can someone please explain how to build relative URLs that are higher in the file hierarchy

Relative URLs

2005-03-18 Thread tarek.nabil
Hi everyone, Can someone please explain how to build relative URLs that are higher in the file hierarchy than the module. For example / /images/some-image.gif /some-action.do /folder/some-jsp.jsp I'm building this application inside an existing application that does not use Struts. I ca

html:form action and relative URLs addressed in 1.2 ?

2005-03-17 Thread lists
Hello, I have been building a fairly large Java webapp for 3 years now, and it was originally using Struts 1.0. Due to search engine optimization, we ended up doing lots or URL manipulation via mod_rewrite. But then the problem was that when the user submitted the struts form, it would lose t

Struts forms and relative URLs fixed in 1.2 ?

2005-03-16 Thread lists
Hello, I have been building a fairly large Java webapp for 3 years now, and it was originally using Struts 1.0. Due to search engine optimization, we ended up doing lots or URL manipulation via mod_rewrite. But then the problem was that when the user submitted the struts form, it would lose t