If Person object is null, he will get the same NPE. Nice thing about
JSTL is that:

* JSTL looks in different contexts;
* JSTL does not throw NPE if accessed object was null

Michael.

On 10/15/05, Aldo Vadillo Batista <[EMAIL PROTECTED]> wrote:
> It doesn't work because "person" is not declared in Java. Maybe "person" is
> in session scope (or request scope).
>  It's not a good solution using scriptlets but if you want, you have to put
> something like this:
>  <html:text property="name" values='<%=((Person) request.getSession
> ().getAttribute("person")).getName()%>'/>
>
>  >
> > > <logic:present name="person">
> > > <html:text property="name" " value='<%= person.getName() %>'/>
> > > </logic:present>
> >
>
>

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

Reply via email to