• Post Reply Bookmark Topic Watch Topic
  • New Topic

jsessionid

 
Viet Jav
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello folks,
I using Porltet from IBM Portal
I newbie Servlet, My problems are as below:
In My Portlet(Source.java):
...
Hashtable data = new Hashtable();
data.put("name", name);
data.put("login", userId);
HttpSession session = request.getSession();
session.setAttribute("DATA", data);
In Source.java I use iframe to go other URL(target.jsp) (any jsp file without restricting rules in developing Portlet)
<iframe src=".../target.jsp" ... />
In target.jsp, I get Sesion:
Hashtable data= (Hashtable)req.getSession().getAttribute("DATA"); I intend to use URLRewriting to solve this problem.
As a result, DATA= NULL
That mean can not maintain session between Portlet and other targer.jsp.
How to in target.jsp I can get data in Session that set in Portlet (Source.java)?
I have heard about jsessionid that can maintain session, however, i have never use it.
Does anyone has a hints.
Viet Jav.
 
Jessica Sant
Sheriff
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's your hint: HttpServletResponse.encodeURL()
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!