[opencms-dev] JSP template and static export link problem
blue bluey
bluey70 at email.com
Wed Jun 18 01:20:02 CEST 2003
This is a problem with jsp templates and relative links.
say the jsp template in:
/system/modules/my.module/jsptemplate/template.jsp
and a html page /folder1/folder2/index.html uses this template, any relative link in the template is resolved
relative to the template.jsp file rather than the index.jsp.
i.e. an image /folder/images/image.gif referenced in the template gets resolved to:
../../../../folder1/images/image.gif rather than
../../images.image.gif.
I think this is a bug?????
> I'm converting my XML templates to JSP templates as recommended but encounter a problem during publishing static HTML pages or doing a static export with the link tag.
>
> opencms.properties has been configured to use relative links in export.
> For a html file /folder1/folder2/file.html
> XML template uses
> <LINK>/folder1/folder3/file.b</LINK>
> produces
> "../folder3/file.b" CORRECT
> My JSP template uses:
>
> "<cms:link>/folder1/folder3/file.b</cms:link>"
> produces
> "../../../../folder1/folder3/file.b" WRONG
>
> Is this a known bug with the new link tag and if so is there a fix or workaround?
>
> Should I stick with XML templates and abandon the more flexible JSP templates?
>
> TIA
>
>
>
> --
> _______________________________________________
> Sign-up for your own FREE Personalized E-mail at Mail.com
> http://www.mail.com/?sr=signup
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
--
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers
More information about the opencms-dev
mailing list