Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

multiple submit-buttons in one jsp with different actions

843836Mar 22 2005 — edited Mar 23 2005
hy @ all!

i want to have multiple submit-bottons in one jsp! for each submit-button another action...i tried:

jsp:
<html:form action="/ausgabeAction.do" method="forward" >
      <html:submit styleClass="cssMenu" value="Ausgabe" property="ausgB"/><br />
    </html:form>

    <html:form action="/produktivitaetsAction.do" method="forward" >
      <html:submit styleClass="cssSubmenu" value="Produktivit�tsausgabe" property="prodAusgB"/><br />
    </html:form>

    <html:form action="/zusaetzlicheAction.do" method="forward" >
      <html:submit styleClass="cssSubmenu" value="Zus�tzliche Ausgaben" property="zAusgB"/><br />
    </html:form>

    <html:form action="/logoutAction.do" method="forward" >
      <html:submit styleClass="cssMenu" value="Logout" property="logoutB"/>
    </html:form>
the action:
public ActionForward execute(ActionMapping actionMapping,
                                 ActionForm actionForm,
                                 HttpServletRequest servletRequest,
                                 HttpServletResponse servletResponse) {
        return actionMapping.findForward("output");
    }
when i start it its ignored and not displayed, neither an error...
its very simple (i thought) - no data from any form, only a forward

thx in advance!

ciao baer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 20 2005
Added on Mar 22 2005
8 comments
751 views