[opencms-dev] problem with taglib cms

Stephan Hartmann hartmann at waehrisch-feykes.de
Fri Jul 25 10:05:02 CEST 2003


OK,

seems that the include tag does not support expressions as attribute value.

i suggest this:
<%
request.setAttribute("page", request.getParameter("page"));
%>
<cms:include attribute="page" />

Bye,
Stephan

----- Original Message -----
From: "Federico Locci" <flocci at energit.it>
To: <opencms-dev at opencms.org>
Sent: Friday, July 25, 2003 9:24 AM
Subject: Re: [opencms-dev] problem with taglib cms


>
> hi,
> i  must leave the semicolon out of this expression but don't function:
> i've written
>
>   <cms:template element="dinamic_page">
>                    <cms:include page=<%=request.getParameter("page")%> />
>        </cms:template>
> the error is : org.apache.jasper.JasperException:
> /WEB-INF/jsp/offline/release/Aiget/html/Associazione/index.jsp.jsp(24,38)
> quote symbol expected
>
> but if i write :
> <cms:template element="dinamic_page">
>                    <cms:include page="<%="request.getParameter("page")%>"
/>
>        </cms:template>
> the error is:
>
> org.apache.jasper.JasperException: File not found:
>  /release//html/Associazione/<%=request.getparameter(page)%>
>  at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
> 54)
>
> why the system write getparameter if i i'm writting in my file
getParameter
> ???
>
>
>
> The all for help , bye
> ----- Original Message -----
> From: "Stephan Hartmann" <beffe at beffe.de>
> To: <opencms-dev at opencms.org>
> Sent: Thursday, July 24, 2003 10:01 PM
> Subject: Re: [opencms-dev] problem with taglib cms
>
>
> > It's not a problem with the taglib.
> > You must leave the semicolon out of this expression:
> > <%= request.getParameter("page") %>
> >
> > Bye,
> > Stephan
> >
> > Am Don, 2003-07-24 um 17.08 schrieb Federico Locci:
> > > VuotoHi all,
> > >
> > > I' ve a little problem with taglibs
> > >
> > > <cms:template element="dinamic_page">
> > >                   <cms:include
page="<%=request.getParameter("page");%>"
> />
> > >  </cms:template>
> > >
> > >
> > > not function why ???
> > >
> >
> >
> > _______________________________________________
> > 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
> >
>
> _______________________________________________
> 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