Bill Siggelkow wrote:
If you specify the form in the <action> you don't need to use the scriptlet -- Struts will retrieve and display the value for you.Sorry I don't think I made my self clear here.
-Bill Siggelkow
Vinicius Caldeira Carvalho wrote:
Hi there! I often find myself writing scriptlet due to struts tags or my misunderstanding about it.
Let's suppose I have an action that retreives information in a user bean.
My jsp has an account form-bean
and one of the properties is the userID (a hidden value)
I always end up doing this:
<html:form property="userId" value='<%=user.getId()%>'/>
is there a more elegant way?
thanks
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Not possible. 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.
thanks
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]