On Tuesday 19 Mar 2002 14H:38 pm, you wrote:
> On Tue, 19 Mar 2002, John Baker wrote:
> > Ok, one more before I shut up.
> >
> > I'm trying to write this in JSTL:
> >
> > if (request.getParameter("moo").equals("cows"))
> >
> > and so far I've got:
> >
> > <c:if test="${request.parameter.moo == 'cows'}">
> >
> > but it doesn't work ;-)
>
> Yes, because "request.parameter" means "the request-scoped variable named
> 'parameter'".  To retrieve a parameter, use 'param.moo'.
>
> Again, there isn't a one-to-one isomorphism between JSTL expressions and
> rtexprvalues.

Bah. So how can this be done in JSTL? It's a real shame because that would be 
very nice. I'm trying to avoid writing Java ;-) Does this mean I have to use 
the -rt stuff and do:

<c-rt:if test="${ <$=request.getParameter("moo").equals("cows") %> }"

?

-- 
John Baker, BSc CS.
Java Developer, TEAM/Slb. http://www.teamenergy.com
Views expressed in this mail are my own.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to