On 7/18/06, Akshay Ahooja <[EMAIL PROTECTED]> wrote:
Hi,
I followed the steps as you suggested but the value does not seem to pass to
the external app...
In J2 Struts Portlet:
PortletRequest prequest = (PortletRequest)request.getAttribute("
javax.portlet.request");
prequest.getPortletSession().setAttribute("user",firstName,
PortletSession.APPLICATION_SCOPE);
...
<%=(String)request.getSession().getAttribute("user")%> //works
here in j2 - therefore it is stored in scope
Hmm, that's funny, you should get null. The correct call would be:
request.getSession().getAttribute("user",PortletSession.APPLICATION_SCOPE);
...
<a href="http://bsmith:8080/sheet/search.jsp" target="_blank"> Search </a>
//to the external APP
//note: using html:link wont open an external app but rather one in context
- thats why I used <a href
In External App - search.jsp
<%=(String)request.getSession().getAttribute("user")%>
The value is coming out to be null.
In myportal.xml:
<Context path="/myportal" docBase="myportal" crossContext="true">
Any ideas why the value isn't in external scope?
Make sure that *all* contexts involved (jetspeed and your other apps)
have crossContext set to true.
Thanks,
Akshay
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]