You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by Shawn Bayern <ba...@essentially.net> on 2002/09/30 16:21:14 UTC
Re: paramaters: one more question.
On Mon, 30 Sep 2002, Mauro Daniel Ardolino wrote:
> I had success with this, but I need the value to be one of the jsp's
> request parameter. So I've changed the code like this:
>
> <% String c_cli= request.getParameter("c-cli") %>
> <x:transform xml="${xml}" xslt="${xslt}">
> <x:param name="c-cli" value="<%=c_cli%>" />
> </x:transform>
>
> ...but the xsl file receives "<%=c_cli%>" and not "00002" as I expected.
>
> How must I write it? I thought it was right because I've seen some
> previous mails about something similar.
You can use JSTL's 'rt' libraries if you must pass rtexprvalues like
<%=c_cli%>. I'd recommend using JSTL's expression language, however:
<x:para name="c-cli" value="${param["c_cli"]}" />
'param' in the EL refers to request parameters.
--
Shawn Bayern
"JSTL in Action" http://www.jstlbook.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: paramaters: one more question.
Posted by Mauro Daniel Ardolino <ma...@altersoft.com.ar>.
Thanks a lot!
I'll try it. I have to study more about JSTL... :)
-- Mauro
On Mon, 30 Sep 2002, Shawn Bayern wrote:
> On Mon, 30 Sep 2002, Mauro Daniel Ardolino wrote:
>
> > I had success with this, but I need the value to be one of the jsp's
> > request parameter. So I've changed the code like this:
> >
> > <% String c_cli= request.getParameter("c-cli") %>
> > <x:transform xml="${xml}" xslt="${xslt}">
> > <x:param name="c-cli" value="<%=c_cli%>" />
> > </x:transform>
> >
> > ...but the xsl file receives "<%=c_cli%>" and not "00002" as I expected.
> >
> > How must I write it? I thought it was right because I've seen some
> > previous mails about something similar.
>
> You can use JSTL's 'rt' libraries if you must pass rtexprvalues like
> <%=c_cli%>. I'd recommend using JSTL's expression language, however:
>
> <x:para name="c-cli" value="${param["c_cli"]}" />
>
> 'param' in the EL refers to request parameters.
>
>
--
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: mauro@altersoft.com.ar
website: http://www.altersoft.com.ar
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: paramaters: one more question.
Posted by Shawn Bayern <ba...@essentially.net>.
On Mon, 30 Sep 2002, Shawn Bayern wrote:
> <x:para name="c-cli" value="${param["c_cli"]}" />
Oops - too much typing! There are two errors with the above tag; I really
meant to type:
<x:param name="c-cli" value="${param['c_cli']}" />
--
Shawn Bayern
"JSTL in Action" http://www.jstlbook.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>