Hello!
Is is possible to deal with an Array of Beans in an AtionForm?
It should look like this:
public class TestForm extends ActionForm {
private DataBean[] dataBeans = DataBean[size_of_array];
getter and setter methods
}
public class DataBean {
private String name=;
Hello Nico!
Thanks for your help. I now have got indexed getter and setters. Showing the
data in the JSP works fine, but getting the data back formn the JSP in the
UpdateAction didn't work.
Please notice: I dont't want to handle an array of Strings in the
ActionForm, I would like to hadle an
: Re: Array of Beans used in an ActionForm
For your indexed properties, use arrayForm(x).name instead of
arrayForm[x].name
Try to use JSP tags instead of scriptlets, your JSP will be more
readeable to other developers.
Nico.
- Original Message -
From: Clauss, Arne
Hello!
Just try out this little Javascript Function:
function submitAndUpdate (action)
{
document.forms.fromName.action=action;
document.forms.fromName.submit();
}
formName have to be the name of your form.
Kind regards,
Arne Clauß
gedas
Hello all!
Does anybody know a tool for automatic generation of control flow diagramms
using the struts-config.xml? How do you create the doc of the control flow
for your projects?
Kind regards,
Arne
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
Hello!
I've been lurking a long while and I think I decided to
take up the Struts thing entirely. I've got an application
that will needs to use several forms which are pretty much
related, or in other words they look quite the same. But
the action attached to it is different.
Can I
6 matches
Mail list logo