Make sure you nest quotes correctly.  That EL expression string you
supplied would be nested by single quotes.

> -----Original Message-----
> From: Hohlen, John [mailto:[EMAIL PROTECTED]]
> 
> Follow-Up Question:
> 
> If I want access a property from the bean, such as lastName, 
> what's the
> syntax?  I tried a few different things such as: 
> 
> ${sessionScope["com.abc.fleetsystems.employee"].lastName}
> 
> But it didn't work.  Thanks, JOHN
> 
> -----Original Message-----
> From: Shawn Bayern [mailto:[EMAIL PROTECTED]]
> 
> On Thu, 12 Dec 2002, Hohlen, John wrote:
> 
> > But this won't work with the EL syntax, right?  For example:
> > 
> > ${sessionScope.com.abc.fleetsystems.employee}
> > 
> > Won't JSTL the Expression Language (EL) evaluator get 
> confused and look
> > for nested objects? More specifically:
> >  
> >   getCom().getAbc().getFleetsystems().getEmployee()
> > 
> > Hence, I wondering what the standard word separator, or in our case,
> > package separator character is.  I'm guessing that it's an 
> underscore, but
> > haven't seen any such recommendation.
> 
> You must use the [] operator, as in
> 
>   ${sessionScope["com.abc.fleetsystems.employee"]}
> 
> -- 
> Shawn Bayern
> "JSTL in Action"   http://www.manning.com/bayern
> 
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 
> --
> To unsubscribe, e-mail:   
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

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

Reply via email to