I am attempting to port over a web site to use Struts and Tiles. My existing site uses allot of tags for dynamic elements. I have encountered a problem when I attempt to pass a parm through my jsp into my tag. The menu works but in the menu tag I hightlight the current page and expand a submenu if needed, normally I would use <psa:menu pageName="INDEX"> to diaplsy the menu for the home page, it would display the menu with "Home" highlighted, with the below code that I have updated for Struts/Tiles the menu displays but the INDEX parm does not appear to be passed into the tag.

What do I need to do to pass the parm along into the tag?

Thanks in advance,
Robert


-------------- index.jsp ---------------


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>

<tiles:insert page="/jsp/basicLayout.jsp" flush="true">
  <tiles:put name="title" value="Login" />
  <tiles:put name="header" value="/tiles/common/header.jsp" />
  <tiles:put name="menu" value="/tiles/common/menu.jsp?pageName=INDEX"/>
  <tiles:put name="body" value="/tiles/main-index.jsp" />
  <tiles:put name="footer" value="/tiles/common/footer.jsp" />
  <tiles:put name="promotions" value="/tiles/common/promotions.jsp" />
</tiles:insert>

---------------------



----- menu.jsp ----

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<%@ taglib uri="/psa-taglib.tld" prefix="psa" %>

<psa:menu pageName="<%= request.getParameter("pageName") %>"/>

---------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to