Is there any other data on the form that needs posted when they click the button? If not, you could make a separate <form> for just that button. If yes, I (like many) use a hidden variable in the form to hold the action (or button name, etc) that they clicked on, and set a separate <forward> for the <action> [in struts-config.xml] to look up (each button gets its own forward, named the same as the button).
Jeff -----Original Message----- From: George White [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 22, 2001 11:51 PM To: [EMAIL PROTECTED] Subject: Adding a button Hi everyone, I am new to Struts and have been asked to make a small change to a JSP -- The folowing single line of code works but the user wants to be able to click on a button rather than simply the text "Edit Profile" <html:link page="/editCarrierProfile.kr">Edit Profile</html:link> Background: This reference takes the user from a "View" page to an "Edit" page Here is the portion of the struts-config.xml that is involved: <!-- View Carrier Profile --> <action path="/viewCarrierProfile" type="com.kraft.operations.transportation.ace.ui.action.CarrierProfileLookupAction" name="carrierProfile" scope="request" validate="false"> <forward name="success" path="/WEB-INF/jsp/viewCarrierProfile.jsp"/> </action> <!-- Edit Carrier Profile --> <action path="/editCarrierProfile" type="com.kraft.operations.transportation.ace.ui.action.CarrierProfileLookupAction" name="carrierProfile" scope="request" validate="false"> <forward name="success" path="/WEB-INF/jsp/editCarrierProfile.jsp"/> </action> I would appreciate any help given. Thanks, George White -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>