Hi Rahul, Thanks for pointing me to the implicit JSP 2.0 param object. This worked for me perfectly with the JSP 2.0 JSTL URIs:
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:c="http://java.sun.com/jsp/jstl/core" version="2.0"> <c:set var="admin" value="${param.admin}" /> Anyway, I'd be interested to hear from somebody (with the pointers to the JSP or JSTL specs if possible) why <c:set var="admin" value="<%=request.getParameter("admin")%>"/> worked for me with the latest Resin and doesn't with the latest Tomcat. Is it against the specs? Thanks again, Seva -----Original Message----- From: Rahul Akolkar [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 24, 2005 2:10 PM To: Tomcat Users List Subject: Re: org.apache.jasper.JasperException using jsp expression inside the <c:set /> On 8/24/05, Seva Popov <[EMAIL PROTECTED]> wrote: > Hi, > > > The following line: > > <c:set var="admin" value="<%=request.getParameter("admin")%>"/> > > gives me the below exception under Tomcat 5.5.9: > > org.apache.jasper.JasperException: /test.jsp(11,29) The value of > attribute "value" associated with an element type "c:set" must not > contain the '<' character. > > Is this a bug in Tomcat or am I missing something? > (I did not have any problems using the above syntax in Resin.) Not sure what the prefix c is bound to, but I'd use JSTL 1.1 with TC 5.5.x and use EL and the implicit JSP 2.0 param object like so: <c:set var="admin" value="${param.admin}" /> -Rahul --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]