> if you use lastIndexOf( "/"), you'll be missing some important path
info.  

There a method like 'host.getName()' that gets the virtual host name,
but I don't know how to get 'host'. Since I know what mine is I can just
hard code it the string to slice off. Since I'm testing on a particular
port, I can just use that...


StringBuffer req_url = request.getRequestURL();
String req_url2 = req_url.toString();
String page_uri = req_url2.substring(req_url2.lastIndexOf("8081/") + 4);
String[] page_uri2 = StringUtils.split(page_uri, ".");
out.println(page_uri2[0]);


Using 'loadPage' to load 'home', then iterating 'leftgaragraphs'
content, then loadPage again to re-load the original URI, seemed to work
for a few clicks, but the re-used content goes away on the sub pages. 

Seems to work OK on 2.1 though.

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

Reply via email to