Annoying struts 2 problem

Posted by Parhs on Stack Overflow See other posts from Stack Overflow or by Parhs
Published on 2010-05-15T15:33:40Z Indexed on 2010/05/15 15:44 UTC
Read the original article Hit count: 329

Filed under:
|

Hello... I am using this code to include some menus to my code...

  <s:action namespace="/" name="get_header" executeResult="true" />
  <jsp:include page="/get_menu" >
      <jsp:param name="menuKey" value="configuration"></jsp:param>
      <jsp:param name="subMenuKey" value="user.add"></jsp:param>
  </jsp:include>

THe problem is that the menus are generated dynamically...

So suppose that we have 2 Actions

ActionA and get_menu Action

The jsp page for the result of ActionA calls get_menu to generate the menus.

So suppose that ActionA sets a variable groups and get_menu also uses a groups variable...

ActionA's variable will overtake get_menu's variable. I tried many solutions and even jsp:inculde doesnt help:(...

© Stack Overflow or respective owner

Related posts about struts2

Related posts about java