Isn't there another solution? I do control both servers but forcing to use absolute URLs via a CMS would be a problem. I can imagine witing sort of a wrapper to adapt the result of c:import, but this must be a common problem. So I hope someone has already done the job?
Martin > -----Ursprüngliche Nachricht----- > Von: Rahul Akolkar [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 22. November 2005 04:07 > An: Tag Libraries Users List > Betreff: Re: relative paths and c:import > > > On 11/21/05, Martin Kindler <[EMAIL PROTECTED]> wrote: > > I am trying to integrate a Java/Struts webapp with another web site > > (based on Typo3, a PHP-based CMS). > > > > Some of my JSP-pages will integrate pages controlled by > Typo3. I tried > > to use the c:import tag which basically seems to work: the page is > > fetched and the HTML-code inserted into my Struts-controlled page. > > But: relative URLs (especially images) are now relative to > my context, > > meaning they are broken. > > The Typo3 site will be on another server than the Struts site. > > > > So, saying the URL of my Struts action is > > http://myStrutsApp.myServer.de/myContext/ShowIntegratedPage.do > > > > and > > > > <c:import url="http://myTypo3App.anotherServer.de/myTypo3Page.php"/> > > > > is part of the JSP, relative paths from myTypo3Page.php like <img > > src="img/foo.jpg"/>, which should be interpreted as > > http://myTypo3App.anotherServer.de/img/foo.jpg will be > interpreted as > > http://myStrutsApp.myServer.de/myContext/img/foo.jpg. > > > <snip/> > > If one webserver is serving content generated by another, > absolute URLs are probably going to be necessary. > > -Rahul > > > > I tried the "context"-attribute (which seems only to work for other > > container based apps) and explicitly specifying a base-tag > in my Typo3 > > page (soes not work). > > > > Can someone please help me? > > > > Martin > > > > --------------------------------------------------------------------- > 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]