[opencms-dev] <cms:include ..><param ..> Parameter-Definition notworking

Stephan Hartmann hartmann at metamesh.de
Fri Dec 9 08:18:57 CET 2005


You should use the param tag with its correct namespace, i.e. <cms:param
.../>

cheers,
Stephan

> Hi
> i'm coming to you because i got a small but unsolvable problem.
>
> i have two jsp-files, the first one, which has a defined template
> property,
> so it is the main jsp-file to be rendered in a template
>
> <%@ page session="false" %>
> <%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
>
> <cms:include property="template" element="head" />
> <cms:include file="mannschaft.jsp">
>   <param name="teamName" value="Thalwil 1" />
> </cms:include>
> <cms:include property="template" element="foot" />
>
> and the second one, which is included into the first:
>
> <%@ page session="false" %>
> <%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
> <%@ page import="org.opencms.jsp.*" %>
> <%
>   CmsJspActionElement cmsjsp = new CmsJspActionElement( pageContext,
> request, response );
>   String teamName = request.getParameter("teamName");
>   ...
>
> problem: teamName is always null! that confuses me, because i have
> alreadyvdone such parametrized includes before... does anybody know that
> problem or could give me a hint where i should start looking for the
> solution?
>
> thanx very much and greez, Peter Birchmeier
>
> _________________________________________________________________
> Umfangreich, essenziell und aktuell! Auf MSN Search werden Sie schnell
> fündig! http://search.msn.ch/
>
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>




More information about the opencms-dev mailing list