Theoretically you are going to have the same problem when you submit to do a save. If you don't have a form bean, then you won't have any data.
Nabil Abdi wrote:
Thanks...
i try to populate the form using PropertyUtils.copyProperties(form, myBean); but form is null.
dynamic=true is from EasyStruts plgin tool for Eclipse...I remove it and still get a null form no i'm not using validating parameter.
I browsed the list archive and found some tips, there is a wayout i'll do :
if (form == null)
{
form = RequestUtils.createActionForm(...)
}
look at: http://www.mail-archive.com/[EMAIL PROTECTED]/msg12356.html
-----Original Message----- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: July 7, 2003 4:01 PM To: Struts Users Mailing List Subject: Re: prepopulate a DynaActionForm
Have you got any exceptions logged or on the console?
Where did you get the dynamic="true" attribute from? I don't use it, & don't need it. What does it do?
Have you got the validating parameter set in web.xml for the action servlet?
<init-param> <param-name>validating</param-name> <param-value>true</param-value> </init-param>
Hope that helps. Adam
Nabil Abdi wrote:
Hi,
I am using struts 1.1, I want to prepopulate a DynaActionForm but my Action receive a null form:
my DynaActionForm configuration looks like : <form-bean dynamic="true" name="pbxUserForm" type="org.apache.struts.action.DynaActionForm"> <form-property name="email" type="java.lang.String" /> ..... </form-bean>
and the Action config:
<action name="pbxUserForm" path="/users/showuser" scope="request" type="com.webapp.action.PopulateUserAction" validate="false"> <forward name="next" path="/users/user.jsp" /> </action>
in PopulateUserAction execute method i receive a null form ?
If i use an ActionForm instead of DynaActionForm the form is NOT null ?
Is there some extra setting i need.
Thank you
--------------------------------------------------------------------- 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]
--------------------------------------------------------------------- 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]

