This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Query regarding PortletSession  RSS feed

 
raghu rama
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all I am new to Portlets,

Is there a way to set portlet session in jsp?

I am trying to set a portlet session in my JSP with the following code but it gives me org.apache.jasper.JasperException



Can anyone please tell me where i am going wrong?
Thank you in advance
 
Rehan Pathan
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to learn ipc portlet in liferay using event phase than visit following link.
It will help you.
ipc portlet in liferay
 
Komari raj
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Ragu,
in Liferay portletSession will be intiated at render time, so no need to declare PorteletSession Variable so you can use directly.
Please see the updated code below.



Thanks
Raju
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!