That's because of the dash.  It's interpreted as a minus sign.

> -----Original Message-----
> From: Bruce W. Perry [mailto:[EMAIL PROTECTED]
>
> hello list,
>
>  I am using this JSTL EL syntax to produce the value of a
context-param
> element in a JSP:
>
> ${initParam[\"jsp-url\"]}
>
>  which works fine to return the value of the jsp-url context-param
from
> web.xml. However, based on the JSTL spec, isn't the syntax:
>
> ${initParam.jsp-url}
>
> supposed to return the same value? I'm using Tomcat 5, and the JSP
> container
> is not evaluating this expression (it returns "0").

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to