struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aldo Vadillo Batista <aldo.vadi...@gmail.com>
Subject Re: logic:present and html:text tags problem
Date Sat, 15 Oct 2005 18:42:54 GMT
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>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message