RE: Links relative to jsp not action in Opera
On Wed, 26 May 2004 14:52:08 +0200, Kransen, J. wrote: >> I'm not sure on how to use the html:base tag in the opposite manner, ie >> the href to be that of the struts action's path not the jsp's path? > > Indeed it seems impossible to create a tag containing an action path > instead of a jsp path, or at least it didn't work for me. I assume your jsps > are not in the root? I once had difficulties with the tag with jsps > not in the webapp root. I ended up placing the jsps in the webapp root. Not > sure if this is an option for your project, but maybe you can do the same? Ended up just using base () tag directly, with a coded correct base url (virtual hostname, port, web context, and action path). A bit messy just to satisfy one browser, but i guess *% happens. It would have been nice to exclude the action path from the base url making all relative links relative to the base of the webcontext but... firefox doesn't honour the base tag! Thanks for the help Jeroen. Mick. -- -- "Living on Earth is expensive, but it does include a free trip around the sun every year." Unknown --- http://www.harryspractice.com.au>Harry's Practice --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Links relative to jsp not action in Opera
> I'm not sure on how to use the htmml:base tag in the opposite manner, ie > the href to be that of the struts action's path not the jsp's path? Are you sure you want to have the action path in the base href instead of the jsp path? I would think that as you write the relative links inside the jsp, you also want to make the relative paths relative to the jsp? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Links relative to jsp not action in Opera
> [The other problem here is in a cluster the server must be the virtual > host fronting the cluster not the localhost, although this can be solved > it's just an extra pain.] According to http://jakarta.apache.org/struts/userGuide/struts-html.html#base you can use two attributes from which one is "server". I never tried this one, but it looks like you can enter your virtual host there, possibly after reading it from config file or so Default is request.getServerName(), not localhost. > I'm not sure on how to use the html:base tag in the opposite manner, ie > the href to be that of the struts action's path not the jsp's path? Indeed it seems impossible to create a tag containing an action path instead of a jsp path, or at least it didn't work for me. I assume your jsps are not in the root? I once had difficulties with the tag with jsps not in the webapp root. I ended up placing the jsps in the webapp root. Not sure if this is an option for your project, but maybe you can do the same? I have to warn you that I don't know about tiles, nor can I tell you if that makes the situation different. Just trying to give you hints :-) Jeroen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Links relative to jsp not action in Opera
On Wed, 26 May 2004 13:49:34 +0200, Kransen, J. wrote: > You probably already know, but you can use Struts tag to > dynamically create the base tag. This works great as you don't have to edit > the tag if you move the page or change the server for example. It also > creates the full "http://host/webapp/page.jsp"; I'm not sure on how to use the htmml:base tag in the opposite manner, ie the href to be that of the struts action's path not the jsp's path? Mick [The other problem here is in a clustor the server must be the virtual host fronting the clustor not the localhost, although this can be solved it's just an extra pain.] -- -- "Only those who risk going too far can possibly know how far they can really go." T.S. Eliot --- http://www.harryspractice.com.au>Harry's Practice --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Links relative to jsp not action in Opera
You probably already know, but you can use Struts tag to dynamically create the base tag. This works great as you don't have to edit the tag if you move the page or change the server for example. It also creates the full "http://host/webapp/page.jsp"; > -Oorspronkelijk bericht- > Van: Mick Wever [mailto:[EMAIL PROTECTED] > Verzonden: woensdag 26 mei 2004 13:43 > Aan: [EMAIL PROTECTED] > Onderwerp: RE: Links relative to jsp not action in Opera > > On Wed, 26 May 2004 13:28:23 +0200, Kransen, J. wrote: > > > Do you have a tag inside your ? > > No, but I'm playing around with that now... > One problem that arises from using the base tag is browser > differences: > IE: server name and port required in base href > Firefox: base tag doesn't work at all > Opera: works great. > > Mick. > > > -- > -- > "When prosperity comes, do not use all of it." Confucius > --- http://www.harryspractice.com.au>Harry's Practice -- > - > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Links relative to jsp not action in Opera
On Wed, 26 May 2004 13:28:23 +0200, Kransen, J. wrote: > Do you have a tag inside your ? No, but I'm playing around with that now... One problem that arises from using the base tag is browser differences: IE: server name and port required in base href Firefox: base tag doesn't work at all Opera: works great. Mick. -- -- "When prosperity comes, do not use all of it." Confucius --- http://www.harryspractice.com.au>Harry's Practice --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Links relative to jsp not action in Opera
Do you have a tag inside your ? > -Oorspronkelijk bericht- > Van: Mick Wever [mailto:[EMAIL PROTECTED] > Verzonden: woensdag 26 mei 2004 13:17 > Aan: [EMAIL PROTECTED] > Onderwerp: Re: Links relative to jsp not action in Opera > > On Wed, 26 May 2004 07:14:52 -0400, James Mitchell wrote: > > Opera should know nothing about your jsp, unless you are doing something > > else wrong. Are you using redirects or forwards? > > Indeed I would think so too. There are naturally no differents in the html > source between the different browsers, and the links are definitely > relative, but Opera bases the links relative to the last requested jsp not > the request url, hence this last-requested-jsp information must be stored > somewhere in the response... > So, how to I change it back to the original request url before the > response is sent? > Mick > > ps there are forwards and tiles involved. > > -- > -- > "To be young, really young, takes a very long time." Picasso > --- http://www.harryspractice.com.au>Harry's Practice -- > - > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Links relative to jsp not action in Opera
On Wed, 26 May 2004 07:14:52 -0400, James Mitchell wrote: > Opera should know nothing about your jsp, unless you are doing something > else wrong. Are you using redirects or forwards? Indeed I would think so too. There are naturally no differents in the html source between the different browsers, and the links are definitely relative, but Opera bases the links relative to the last requested jsp not the request url, hence this last-requested-jsp information must be stored somewhere in the response... So, how to I change it back to the original request url before the response is sent? Mick ps there are forwards and tiles involved. -- -- "To be young, really young, takes a very long time." Picasso --- http://www.harryspractice.com.au>Harry's Practice --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Links relative to jsp not action in Opera
Opera should know nothing about your jsp, unless you are doing something else wrong. Are you using redirects or forwards? -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx - Original Message - From: "Mick Wever" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, May 26, 2004 7:02 AM Subject: Links relative to jsp not action in Opera > When our webpages are viewed with opera all our links are relative to the > jsp used (within tiles) not the actual url/action given. > Is there some way of changing the response so that the url is correct and > relative links don't reference the jsp? > Mick. > > -- > -- > "It is not enough to have a good mind; the main thing is to use it well." Descartes > --- http://www.harryspractice.com.au>Harry's Practice --- > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Links relative to jsp not action in Opera
When our webpages are viewed with opera all our links are relative to the jsp used (within tiles) not the actual url/action given. Is there some way of changing the response so that the url is correct and relative links don't reference the jsp? Mick. -- -- "It is not enough to have a good mind; the main thing is to use it well." Descartes --- http://www.harryspractice.com.au>Harry's Practice --- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]