09-21-05 10:55 PM
Hi,
I have a portlet which generates content and has a href link in in portletView.jsp to c
all the servlet to open the attachment in new window ( e.g : http://localhost:9080
/FileS...uth
Flag
=Y" target="_blank) This is an href link, everything works fine, the only is
sue I am having is I cann't get an attribute from Httpsession in the servlet
it shows null.
This is what I m doing (using JSR168):
In PortletView.jsp
========================================
========
I create an attribute to put in the Session==> session.setAttribute("getAuth
","DVSessionTest");
========================================
========
In Servlet, I want to read that session attribute but I get null. Code in th
e servlet:
-----------------------------------------------------------
HttpSession httpS = req.getSession();
String name = (String)httpS.getAttribute("getAuth");
----------------------------------------------------------
Any Help would be appreciated on how to get session attribute which is creat
ed in the Jsp which is part of the portlet and to retrieve in the servlet wh
ich runs as an independant App. I use Websphere Portal V5.1
[ Post a follow-up to this message ]
|