Hunter Hillegas wrote:
One of the applications I am working on has application scope attributes
that have spaces in their names, such as: "theCollection PacificRim".

When accessing from JSTL's forEach tag, I get this:

'forEach' / attribute = 'items': An error occurred while parsing custom
action attribute "items" with value
"${applicationScope.theRestaurantCollectionPacific Rim.collection}":
Encountered "Rim"
...

Not that surprised... Is there any way to access an attribute with a space
in the name?
Yes,

  ${applicationScope['theRestaurantCollectionPacific Rim'].collection}

Hans
--
Hans Bergsten                                <[EMAIL PROTECTED]>
Gefion Software                       <http://www.gefionsoftware.com/>
Author of O'Reilly's "JavaServer Pages", covering JSP 1.2 and JSTL 1.0
Details at                                    <http://TheJSPBook.com/>


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

Reply via email to