Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connecting two actions to the same ActionForm

 
Khaled Mahmoud
Ranch Hand
Posts: 361
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can I connect two actions in struts to the same action form.
The page I am developing is full of drop down lists. The first action for example [init_register.do] will initialize all drop down lists.

Why I want to do this ??

Because I am using the Struts Validator framework [Validation rules through validation.xml], so I cannot initialize the lists through the same action because validation rules will prevent from reaching that action till all form data is valid.

I am going in the right approach.

Thanks in advance.

Regards,
Khaled Mahmoud
CRM Developer
 
Palak Shah
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes you can... just give name="sameForm" in both actions. Also mention validate="false" in the action where you don't want to validate but just wanna initialize....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic