hy @ all!
ich hab in meiner jsp mehrere submit-buttons! jedesmal soll ne andere action kommen...wie geht das...hab schon folgendes probiert:
die action:
nur leider funktioniert das nicht!
hier ist es relativ einfach (dachte ich mir) da keine formulardaten ausgelesen werden müssen...also nur weiterleitung!
bitte um hilfe!
ciao baer
ich hab in meiner jsp mehrere submit-buttons! jedesmal soll ne andere action kommen...wie geht das...hab schon folgendes probiert:
Code:
<html:form action="/ausgabeAction.do" method="forward" >
<html:submit styleClass="cssMenu" value="Ausgabe" property="ausgB"/>
</html:form>
<html:form action="/produktivitaetsAction.do" method="forward" >
<html:submit styleClass="cssSubmenu" value="Produktivitätsausgabe" property="prodAusgB"/>
</html:form>
<html:form action="/zusaetzlicheAction.do" method="forward" >
<html:submit styleClass="cssSubmenu" value="Zusätzliche Ausgaben" property="zAusgB"/>
</html:form>
<html:form action="/logoutAction.do" method="forward" >
<html:submit styleClass="cssMenu" value="Logout" property="logoutB"/>
</html:form>
die action:
Code:
public ActionForward execute(ActionMapping actionMapping,
ActionForm actionForm,
HttpServletRequest servletRequest,
HttpServletResponse servletResponse) {
return actionMapping.findForward("output");
}
nur leider funktioniert das nicht!
hier ist es relativ einfach (dachte ich mir) da keine formulardaten ausgelesen werden müssen...also nur weiterleitung!
bitte um hilfe!
ciao baer