Answer - You can submit a form with a link as below. BTW, the examples below assume you are in an block and 'myForm' is picked up from the struts-config.xml name field of the action. ... the java part ... class MyAction extends ActionForm implements Serializable { public ActionForward execute (ActionMapping map, ActionForm form, HttpServletRequest req, HttpServletResponse) { String myAction = req.getParameter("myAction"); if (myAction.equals("save") { // ... save action ... } else if (myAction.equals("delete") { // ... delete action ... } } } } This is just one of many ways to achieve submitting a form and decoding the intended action. Once you get used to the framework you will find other ways that make more sense for your coding style and requirements. Just remember this example is completely non-functional without JavaScript.
We are group of professionals with the same objective for helping school students who are struggling in NCERT Questions Answers. We are just sharing our knowledge for the students and helping them by providing Questions Answers.
At Halpura we are reimagining the actual potentials of quality information resources reaching people across the globe to make an everlasting impact.
Copyright 2017, All Rights Reserved. A Product Design BY CoreNet Web Technology