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. -- Shawn Bayern Author, "JSP Standard Tag Library" http://www.jstlbook.com (coming this summer from Manning Publications) -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>