jump to navigation

Struts Portlet and JSP do not share the session in Websphere Portal February 27, 2008

Posted by Tomas in IBM Webspehere.
Tags:
trackback

This is the most annoying thing I found about Websphere Portal: Struts Portlet and Servlet do not share the Session! How stupid is that? We are using Struts 1.1 based Portlets and coincidently Struts uses JSP pages which at runtime are compiled into…. you guessed it – Servlets. So now When user logs into portal we load a permission map and stick it into the session so every part of the webapp can validate what a given user can do inside the application. Almost every part, since Portlet and Servlet do not share the Session you can not get to the permission map in the Session.

After extensive testing it has been confirmed to work with generic Portlet and Servlet, but if you use Struts Portlet the things that put into the session in the portlet or your action classes you can not be found in the JSP pages.

Stay away from Websphere Portal if you can.

Advertisements

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: