Is it possible to create 3 forms in a single jsp,with each form having its own controllers ???
please tell me how to write that ?
thanks
indu
thanks ,
Indu
Aneesh Vijendran
Ranch Hand
Joined: Jun 29, 2008
Posts: 125
posted
0
Unlike ASP.NET jsp doesn't have that restriction.
I guess you mean Action (When you refer to controller) ? If so:
I would suggest you to use a single form and change the action using javascript based on conditions.
Cheers
Aneesh
Cheers
Aneesh
indu iyengar
Ranch Hand
Joined: Jul 30, 2010
Posts: 115
posted
0
here am using spring MVC. Based on condition the specific form will be called and so the controller ...
Mark Secrist
Ranch Hand
Joined: Jul 01, 2003
Posts: 89
posted
0
The controller that's invoked is typically configured to be mapped to a specific resource path within your web application. It's possible to have 3 different forms each have an 'action=' clause that would be different for each of the forms and that would be mapped to a different controller. With annotation driven controllers and using the @RequestMapping annotation, you could actually have the same controller handle form submissions from each form using a different method. This is somewhat similar to the former idea of a MultiActionController.