You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by lis <li...@ukrindustrial.com> on 2003/12/02 14:42:59 UTC
tiles and JSTL c:url problem
Hello,
I have .header tile which placed on
/WEB-INF/tiles/components/header.jsp
<definition name=".header"
path="/WEB-INF/tiles/local/components/header.jsp"
>
my global layout (main.jst placed on /WEB-INF/tiles/layouts/main.jsp)
include this .header tile
<definition name=".mainLayout" path="/WEB-INF/tiles/layouts/main.jsp">
<put name="header" value=".header"/>
<put name="body" value="${content}"/>
...
</definition>
also I have .index definition which extends my default layout
<definition name=".index" extends=".mainLayout">
<put name="title" value="index"/>
<put name="body" value="/WEB-INF/tiles/content/index.jsp"/>
</definition>
I need URL from header.jsp to self page for any definition which extends my
default leyout
I do the following:
<a href="<c:url value="">
<c:param name="lng" value="en" />
</c:url>">EN</a>
URL of mu page for .index definition is:
http://127.0.0.1:8080/tiles/index.jsp
and I want to have:
http://127.0.0.1:8080/tiles/index.jsp?lng=en
but in result I have:
http://127.0.0.1:8080/tiles/WEB-INF/tiles/layouts/main.jsp?lng=en
please help me to resolve this prodlem
on the common JSP pages this approach is work ...
--
Best regards,
lis
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org