Too much replies....anyone could help?
you meant the servlet configured in the portlet web applicatoin itself ?
I mean somenthing like sharing session to access the attribute
There are 2 cases :
1. If your servlet is in the same webapp with your portlet. You can save objects to PortletSession using PortletSession.APPLICATION_SCOPE, and in Servlet, you can call HttpSession.getAttribute method to retrieve shared objects
2. If they are in difference webapps, you have to write a delegate portlet in the same webapp with your servlet. Use the PorltetEvent to pass object to this delegate portlet, and now, you can share object just like you do in the Case1
Another way is to build a custom PortletInvokerInterceptor in PC which deals with:
1. Store object as attribute in HttpSession and portlet session
2. Marshalled/Unmarshalled object to make it conform with webapp class loader