> -----Original Message----- > From: Wendy Smoak [mailto:[EMAIL PROTECTED] > Sent: Friday, December 03, 2004 10:53 AM > To: Struts Users Mailing List > Subject: Re: struts tags and scriplet > > > From: "Vinicius Caldeira Carvalho" <[EMAIL PROTECTED]> > > Not possible. > > Not likely. ;)
Amen.. :) > > > The form hold values that do not come from a database, I'm > > not talking about an update where we assemble the form from > a dto class. > > This is an insert form, so no values filled, only this > specific hidden > > field and also it comes from an outside bean, not the one > I'm trying to > > persist. > > In the Action, before the form is displayed, retrieve the > value from this > 'outside bean' and use that value to set the value of the > form property. > Then forward to the input form, and Struts will display the value. > > If you are allowing direct access to the JSP, don't. If you > are retrieving > the 'outside bean' in the JSP, do it in the Action. <html:form property="userId" value='<%=user.getId()%>'/> You have 3 more choices: 1) The struts bean taglib 2) JSP bean tags 3) JSTL bean tags. <html:blah property="userId" value="${user.id"/> > > -- > Wendy Smoak > > > --------------------------------------------------------------------- > 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]