tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Bayern <>
Subject Re: Using Standard Tag Library to Display a Request Attribute
Date Thu, 06 Feb 2003 23:42:50 GMT
On Thu, 6 Feb 2003, Renick, Garrel wrote:

> <c:out value="${requestScope.javax.servlet.error.message}" />
> Is there a trick to displaying request attributes with JSTL? Is the
> expression language interpreting the periods in the attribute name?

Yes, it is.  To avoid this, you can use expressions like the following:

  <c:out value="${requestScope['javax.servlet.error.message']}" />

The [] syntax works wherever . works, but it lets you avoid problems when
the property name itself contains a period.

Shawn Bayern
"JSTL in Action"

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message