[opencms-dev] How to send a parameter to the "<cms:contentcheck>"tag ? Please.. easy question

Sebastian Lavena slavena at mkti.com.ar
Thu Oct 5 18:18:54 CEST 2006


Thanks for your answer. I tried it, but didn´t works...


I resign now to doing this code in a "good way". Time is gold... and I just
make this work avoiding use this kind of variables... Now works, but the
code sucks :'(


Sebastián

-----Mensaje original-----
De: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org]
En nombre de Rainer Steinegger
Enviado el: jueves, 05 de octubre de 2006 10:41
Para: The OpenCms mailing list
Asunto: Re: [opencms-dev] How to send a parameter to the
"<cms:contentcheck>"tag ? Please.. easy question

Hi Sebastian,

try this:

<%
String myParameter = "Test";
session.setAttribute("myParameter", myParameter);
<cms:contentcheck ifexist="${pageContext.myParameter}">
...
</cms:contentcheck>
session.removeAttribute("myParameter");
%>

Bye Rainer

Sebastian Lavena schrieb:
> Hi list,
>
>     I´m trying to send a parameter to the "cms:contentcheck" tag, like
> this:
>
> <%    String myParameter = "Test";
>     pageContext.setAttribute("myParameter", myParameter ); %>
>
> <cms:contentcheck ifexist="${pageContext.MyParameter}">
> ...
> </cms:contentcheck>
>
>
> And did not work.. I also tried ${MyParameter}, replacing
> ${pageContext.MyParameter}. But nothing...
>
> Somebody knows how to do it?
>
> Thanks a lot!!
>
> Sebastian
>
>
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please 
> visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>   

_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev


__________ Información de NOD32 1.1266 (20051026) __________

Este mensaje ha sido analizado con  NOD32 antivirus system
http://www.nod32.com





More information about the opencms-dev mailing list