Below is a JSTL code which gives you portal URL. You can use this code in Portlet as well in java context.
<[EMAIL PROTECTED] import="org.apache.jetspeed.login.LoginConstants"%> <[EMAIL PROTECTED] import="org.apache.jetspeed.request.RequestContext"%> <[EMAIL PROTECTED] uri="http://java.sun.com/jstl/fmt" prefix="fmt"%> <[EMAIL PROTECTED] uri="http://java.sun.com/jstl/core" prefix="c"%> <[EMAIL PROTECTED] uri="http://java.sun.com/jstl/core_rt" prefix="c_rt"%> <c_rt:set var="requestContext" value="<%=request.getAttribute(RequestContext.REQUEST_PORTALENV)%>"/> '<c:url context="${requestContext.request.contextPath}" value="/portal/my-account.psml"/>'> Regards, Santosh -----Original Message----- From: Prashant [mailto:[EMAIL PROTECTED] Sent: Monday, July 24, 2006 8:52 AM To: [email protected] Subject: Retriving Portal Url Hello, How can i retrive portals Url in portlet for eg. http://localhost:8080/jetspeed/portal/ i want to redirect to some other psml in processAction of portlet. i tried to use PortalAdministration but without success.( context.getAttribute(CommonPortletServices.CPS_PORTAL_ADMINISTRATION) returning null ) does anyone have any idea abt it?? regards prashant -- Prashant <[EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
