The second example would actually have to be: <bean:message key="<%= ((SomeClass)request.getAttribute("someObj")).getSomeProp().getSomeString()%>" />
-- Jeff On 7/26/05, Jeff Beal <[EMAIL PROTECTED]> wrote: > It's a lot more clear to compare the difference between: > > <bean-el:message key="${someObj.someProp.someString}"/> > > and > > <bean:message key="<%= > request.getAttribute("someObj").getSomeProp().getSomeString()%>"/> > > Especially considering the following scenarios that "just work" in EL: > > -- What if "someObj" may be in more than one scope? > -- What if there *is* no 'someObj'? > -- What if someProp is null? > > -- Jeff > > On 7/26/05, Dave Newton <[EMAIL PROTECTED]> wrote: > > M4RC0 wrote: > > > > >I mean, why to use > > ><bean-el:message key="${stringvar}"/> > > >instead > > ><bean:message key='<%= stringvar %>'/> > > > > > > > > Because typing ${} is easier/cleaner than typing <%= %> and it's JSP 2.0 > > syntax. > > > > Dave > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]