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> >