This content has been marked as final.
Show 3 replies
-
1. Re: get page-name in java
pedrosacosta Jul 18, 2006 8:42 AM (in response to pedrosacosta)I've found it.
Use request.getPortalContext().getProperty("portal.defaultObjectName"); -
2. Re: get page-name in java
pedrosacosta Jul 18, 2006 9:17 AM (in response to pedrosacosta)Opppss. This isn't quite what i want.
The attribute "portal.defaultObjectName" gives me the default page-name of the portlet which is running. If i use the same portlet in differente pages i only get one default page name, and not the page name of the instance it's running.
So, the question maintains:
1- What method of the API of the Portal i can use to get the page-name of the portal that is running?
2- How can i get programatically the values defined in *-object.xml?
Thanks,
Pedro -
3. Re: get page-name in java
julien1 Jul 19, 2006 9:59 AM (in response to pedrosacosta)Use the code :
((JBossRenderRequest)req)).getPortalNode().getParent().getName();