Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Query regarding PortletSession

 
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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!