JSTL allows varName[propertyName] syntax.  I'm curious about the quoting
requirements for propertyName.  For example, in the JSTL spec, page 3-20,
there is an example that looks like this:

<c:out value='${user.preferences["shipping"]}'/>

Most examples in the spec use double quotes around attribute values,
but this example switches to single quotes so that the property name
can be double-quoted.

I thought perhaps it was a requirement that the property name be enclosed
in double quotes, but a few tests using single quotes seem to work as well.
Is that officially supported, or did I just get lucky?

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

Reply via email to