"[EMAIL PROTECTED]" wrote : it is not possible because the sessions are not the 
same.

=> impossible to a portlet to get informations put in the httpsession of the 
portal ? so, what is the mecanism of that code in my portlet 
req.getAttribute(RenderRequest.USER_INFO ) ?


"[EMAIL PROTECTED]" wrote : 
  | one thing you can do is put a jsp in your webapp containing your portlet 
and request dispatch to it with a cross context call similar to :
  | 
  | 
  |   | req.setAttribute("blah", "blah");
  |   | RequestDispatcher rd = 
getServletContext().getContext("/myapp").getRequestDispatcher("/my.jsp");
  |   | rd.include(req, resp);
  |   | 
  | 
  | and in the jsp
  | 
  | 
  |   | String s = (String)req.getAttribute("blah");
  |   | HttpSession ses = req.getSession();
  |   | ses.setAttribute("blah", "blah");
  |   | 
  | 

don't understand what you mean.

i just want to share a context (ie: user role store in an other database than 
portal DB).
this role (may be just a string), is known by the portal at the connection of 
the user and have to be get by all the portlets in the page.

the portlets, with this role, ask informations to the role database to display 
their content.


how can i give informations from the portal to the portlets simply ?

thanks a lot ;)

Lionel


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3904006#3904006

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3904006


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to