You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by George White <gw...@charter.net> on 2001/12/23 05:50:43 UTC
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