<a href="javascript:history.go(-1)">Back</a>

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 29, 2003 3:25 PM
To: Struts Users Mailing List
Subject: Re: Help please -- How to provide a "Back" button?


for ur question 2:

you can use javascript function to call two different action:

function faddpurpose() {
        document.editform.methodtocall.value = "addpurpose";
        document.editform.forwardpage.value = "totalsuccess";
        document.editform.target="_self";
        document.editform.submit();
}

function fcalculatepaypd() {
        document.editform.methodtocall.value = "calculatepaypd";
        document.editform.forwardpage.value = "totalsuccess";
        document.editform.target="_self";
        document.editform.submit();
}
<html:form name="editform" method="post" action="adjrecordsdispatch.do"
        type="aaa.ers.struts.forms.RecordsForm">

so U can create a dispatch action and call two different action changing 
value for methodtocall.If you are not using dispatch action then just set 
your forms action to whatever action U want to go to......




"ZYD" <[EMAIL PROTECTED]>
10/29/2003 01:18 AM
Please respond to "Struts Users Mailing List"

 
        To:     "Struts Users Mailing List" <[EMAIL PROTECTED]>
        cc: 
        Subject:        Help please -- How to provide a "Back" button?


Dear all,

Question 1:

How to provide a Back button on a page?

Is there a html tag like the one for Cancel button: <html:cancel> ?

Question 2:

How to provide two submit buttons on one JSP page,
when click on the 1st button, the page is submitted to 1st action,
when click on the 2nd button, it's submitted to 2nd action?

Any response will be appreciated.
Thanks.

bruce


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to