Thank you Oliver,
that sounds great. I have to handle two forms per Action.
One form that acts as a designForm which tells the next JSP-side
how to look like, depending on the roles of the currunt user
and a workhorseForm to handle the data the user submits or
wants to receive.
I suppose the MetaForm has to be in session scope since
it is shared between two Actions.
Wolfgang
Oliver Refle schrieb:
But you have the possibility to built up one meta
form which contains all the needed forms
e.g.
public class MetaForm ...{
UserForm user = new UserForm();
CompanyForm company = new CompanyForm();
public CompanyForm getCompany(){
return this.company;
}
...
}
and the Company Form should look like
public class CompanyForm ... {
String test
public String test(){
return test;
}
...
}
in the jsp form you have to configure the meta form to work with
and in the jsp itself the code you can work like this
html:text property=company.test/
html:text property=user.test/
Struts would then call the getter from MetaForm and the from CompanyForm,
so you could use as many form as you want
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]