JSP EL isn't a scriptlet. --- On Thu, 12/18/08, Juanjo Cuadrado <jjcuadr...@gmail.com> wrote:
From: Juanjo Cuadrado <jjcuadr...@gmail.com> Subject: Re: Recover property's value of bean from jsp To: "Struts Users Mailing List" <user@struts.apache.org> Date: Thursday, December 18, 2008, 10:04 AM -----Inline Attachment Follows----- I would like not user Java scriptlet in my JSP. Only tags. have you any examples? 2008/12/18 Dave Newton <newton.d...@yahoo.com> > > Into prepare method, I put in request scope a class bean. > > If in my jsp (into form) I can recover the property's value > > with a s:textfield, but how to recover this value without > > s:textfield? > > > > <s:property value="WHAT_I_HAVE_TO_PUT_HERE"/> > > As Nils said the "Struts 2 way" would be to expose the bean as an action > property rather than putting it into the request scope. > > If you *really* want to retrieve something from the request scope, though, > why not just use plain old JSP EL? (You can actually access S2 action > properties via JSP EL as well, thanks to S2's request wrapper.) > > Dave > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >