Sai,
You can refer this example.
consider CityPortlet and WeatherPortlet, two portlets in the same application.
In processAction() of CityPortlet:
portletSession.setAttribute("cityName", newCityName, PortletSession.APPLICATION_SCOPE);
In the WeatherPortlet, you can retrieve the changed city name by getting it from the PortletSession:
In doView() of WeatherPortlet:
currentCityName=(
String)portletSession.getAttribute("cityName",PortletSession.APPLICATION_SCOPE);
Remember the following from Mark's reply
If you put the attribute into the Application scope from one portlet, you must remember that it will only be there for the other portlet if the processAction of the first portlet is called, if a different Portlet on the page has their processAction called, then the attribute will not be there for the other Portlet.
Thanks.
Ganesh