yes request.getRequestURI() will tell you which servlet or jsp you are in.

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"


request.getContextPath yields "magnoliaAuthor"

request.getURI() yields a bland screen (its actually for finding the URI
of a taglib)

request.getRealPath() yields a blank screen

HttpUtils.getRequestURL(request) yields a blank screen


No, I think the elegant answer is to use a method build into the
Magnolia API.

If you can get a virtual page title, I think you can get a virtual page
name.

I suppose it would not have any extra path that might be there though,
eh?

I guess I can compose a scriptlet, with an iterator object, iterate &
output all the node data, and see if the page name pops up?


----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------

Reply via email to