• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Need value from <s:property> to JSP variable

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a JSP which uses liferay tabs to display data from three action forms.

My problem is how to display the correct data in the correct tab. For this, I have a "currentTab" property in each of the action classes, which has the name of the tab to be displayed as current. ( I am using struts2)
In the JSP, this gives me the correct value from action class.


But I want to assign this value to a JSP variable so that I can tell liferay which tab to display, something like:


I know I can use OGNL/EL for assigning value from <s:property> to a JSP variable, but since I have three action classes using the same JSP, I am not sure how to use it.

Any help is appreciated greatly. Thanks.
 
reply
    Bookmark Topic Watch Topic
  • New Topic