[opencms-dev] Page/Ducument location in JspTemplates

Ivan Jelenic ivan.jelenic at nbs.yu
Mon Sep 8 11:27:01 CEST 2003


Try with this:

// Create a JSP action element
CmsJspActionElement cms = new CmsJspActionElement(pageContext, request,
response);

// Create a string of requested file
String filename = cms.getRequestContext().getUri();

I hope it will work.

Best regards, Ivan.
----- Original Message ----- 
From: "Werner Hennrich" <wehe at gmx.at>
To: <opencms-dev at opencms.org>
Sent: 08 September, 2003 10:53 AM
Subject: [opencms-dev] Page/Ducument location in JspTemplates


> Hello list,
>
> how do I get the document's (page's) URI inside the JspTemplate?
>
> If I request a Page that uses a JspTemplate,
> <%= cms.info("opencms.uri") %> (in the template)
> returns the template's uri instead the uri of the page called.
>
> I rtfm'ed an tried quite some time but could'nt get any idea...
>
> thanks a lot for help,
> Werner
>
>
>
>
>
>
> _______________________________________________
> 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





More information about the opencms-dev mailing list