This...
<%= request.getAttribute(JAVAX_FORWARD_SERVLET_PATH) %>
Yields this...
An error occurred at line: 25 in the jsp file:
/templates/jsp/ud/global/ud_left.jsp
Generated servlet error:
/opt/magnolia21/work/Catalina/localhost/magnoliaAuthor/org/apache/jsp/te
mplates/jsp/ud/global/ud_005fleft_jsp.java:103: cannot resolve symbol
symbol : variable JAVAX_FORWARD_SERVLET_PATH
location: class org.apache.jsp.templates.jsp.ud.global.ud_005fleft_jsp
out.print( request.getAttribute(JAVAX_FORWARD_SERVLET_PATH) );
This...
<%= (info.magnolia.cms.core).Path.getOriginalURI(request) %>
Yields the page URI :), but it looks like I'll still need to slice off
the '.html' at the since I get get a blank screen otherwise.
Is this how you would do it?
<%
String page_uri = (info.magnolia.cms.core).Path.getOriginalURI(request);
page_uri = page_uri.replaceAll(".html", "");
%>
<cms:loadPage path="<%= page_uri %>"/>
Thanks Mr's Charles & Popescu
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED]
Sent: Friday, October 14, 2005 7:55 AM
To: [email protected]
Subject: Re: [magnolia-user] sharing contents
If you want a page URI, either use
(info.magnolia.cms.core).Path.getOriginalURI(request)
Or request.getAttribute(JAVAX_FORWARD_SERVLET_PATH);
regards
- Sameer
On Oct 14, 2005, at 4:45 PM, Robert Van Overmeiren wrote:
> That yields the path from webroot to the JSP, rather than the virtual
> page and URL the JSP is based on...
>
> "/magnoliaAuthor/templates/jsp/ud/udpage1.jsp"
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------