Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Need value from <s:property> to JSP variable  RSS feed

Kanishka Ajwani
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • 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.
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!