You can make two action mappings say
For Retrieveing details
action path=/RetrieveAccDetails type=com.AccountAction
scope=request name=AccountForm parameter=method validate=false
forward name=success path=/message.jsp
/
/action
For Editing
action
thank you,
but my problem is, i can not create a instance of a DynaActionForm
in my execute() i have something like this:
...
BusinessData bd = Application.getBusinessObject();
Hashtable ht = new Hashtable();
ht.put(Name, bd.getName());
ht.put(Foo, bd.getFoo());
request.setAttribute(data,ht);
just again a question about the creation of a dynaAtionForm...
now i have this code to create a form:
FormBeanConfig fbc = new FormBeanConfig();
fbc.setName(myForm);
DynaActionFormClass dafc =
DynaActionFormClass.createDynaActionFormClass(fbc);
If your object has the same properties as the form, the quick way to get it
to the form is BeanUtils.copyProperties.. The matched properties are copied
and the unmatching properties do not. Or you can use
dynaActionForm.set(param1, parameter1);
4 matches
Mail list logo