In your action class use 

Depending on the name of button or id 
If(request.getParameter("add") != null)
{
        actionMapping.findForword("add");
}
Else if (request.getParameter("delete") != null)
{
        actionMapping.findForword("delete");
}

In struts config.xml file 
In global forword section

For add say /examples/add.do (Go to the add action class)
For delete say /examples/delete.do (Go to the delete action class)


Rgds
C.Bhaskaran
-----Original Message-----
From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, August 29, 2002 8:02 PM
To: Struts Users Mailing List
Subject: Struts and Many Buttons on Single page



Hi,

I am developing a struts applicatian, I have a jsp page where i have 5
buttons, say Add, Change,Delete, Display.

When i click these buttons they must call different jsp with different
parameters, how can i do it???

Ashish


A$HI$H


---------------------------------
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes

**************************Disclaimer************************************

Information contained in this E-MAIL being proprietary to Wipro Limited is 
'privileged' and 'confidential' and intended for use only by the individual
 or entity to which it is addressed. You are notified that any use, copying 
or dissemination of the information contained in the E-MAIL in any manner 
whatsoever is strictly prohibited.

***************************************************************************

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

Reply via email to