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

...
<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?

Thanks,

Akshay

Reply via email to