Ciao Antonio,

Actually I'm using 2 different actions and in both the action I have
associated the same formBean, but you gave me one idea:

if I create the FormBeanA associate with the ActionA (specific
properties with getter and setter and validate specific only for that
properties requested by function A need) struts automatically will
valorised the bean using the setter present...
and the same will be done for the Action B with the associated FormBeanB

this will solve the problem of the validation and mean that I can use
more html:form tag associate at the same page because the submit will
request one specific action and the ActionServlet will populated the
specific Bean


But in this way I have another problem :)

When I populate the FormA and I submit, the result could populate the
filed of the FormB.  
That mean that when I submit the function A I should put manually in the
request also the FormB FormBean?

Struts will understand automatically that there is that bean? 
Actually the framework automatically will populate formA with BeanA
because is in the action activated, but for the formB and BeanB?

Or is there another way to populate the fields of one form that is not
using the FormBean properties?

Thanks



2008/10/22 D'Ottavio Alessandro <[EMAIL PROTECTED]>:
> I have one page and one FormBean that is populated by the form but I
> would like have 2 FormBean and 2 form associated at the same page

Are you going to use 1 or 2 actions?
Because you can associate only 1 form bean to 1 action, but the same
form bean can be associated to more than one action.

Antonio

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



"Questo messaggio ed ogni suo allegato sono confidenziali e possono essere 
riservati o, comunque, protetti dall'essere diffusi. Se il ricevente non é il 
destinatario diretto del presente messaggio, é pregato di contattare 
l'originario mittente e di cancellare questo messaggio ed ogni suo allegato dal 
sistema di posta. Se il ricevente non é il destinatario diretto del presente 
messaggio, sono vietati l'uso, la riproduzione e la stampa di questo messaggio 
e di ogni suo allegato, nonché la diffusione del loro contenuto a qualsiasi 
altro soggetto"
*****
"This message and any attachment are confidential and may be privileged or 
otherwise protected from disclosure. If you are not the intended recipient, 
please contact the sender and delete this message and any attachment from your 
system. If you are not the intended recipient you must not use, copy or print 
this message or attachment or disclose the contents to any other person."

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to