Use lookupdispatchaction1, such definitions in JSP, Property must be the same
2, build a beanform (the choice of buttons)
PUBLIC STRING GETACTION () {Return Action;} PUBLIC VOID SetAction (String action) {this.action = action
3, actionpublic class response BeanAction extends LookupDispatchAction {protected Map getKeyMethodMap () {Map map = new HashMap (); map.put ( "admin.jsp.prompt.check", "check"); map.put ( "admin. jsp.prompt.update "," ok "); form} public ActionForward check (ActionMapping parm1, ActionForm form, HttpServletRequest parm3, HttpServletResponse parm4) throws IOException, ServletException {BeanForm bean = (BeanForm);; return map return parm1.findForward ( "check");} public ActionForward update (ActionMapping parm1, ActionForm form, HttpServletRequest parm3, HttpServletResponse parm4) throws IOException, ServletException {BeanForm bean = (BeanForm) form; return parm1.findForward ( "update");}