struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 梁炳場 <pc.le...@gmail.com>
Subject back button does not function?
Date Tue, 30 Aug 2005 02:42:10 GMT
I add a button to a page, hope it will go back to the menu page, but it fails.
1) The button text cannot obtain the value from MessageResources.properties.
2) When mouse goes up, the page forward does not work.

How can they be resolved?
Thanks


JSP:
      <td>
        <html:button property="backButton"
value="form.button.back.label" onmouseup="backToUserProfile.do"/>
      </td>

struts-config.xml:
                <form-bean name="blankForm" 
                                type="org.apache.struts.action.DynaActionForm"/>

	<action	path="/backToUserProfile"
		type="org.apache.struts.actions.ForwardAction"
		name="blankForm"
		scope="request"
		validate="false"
		parameter="userProfileMaintPath.do?groupId=USERPROFILEMAINT"/>

	<action    path="/userProfileMaintPath" 
	           type="com.common.misc.SetAttributeGroupId" 
	           scope="request">
	   <forward name="success" path="user.userProfileMaint" />
                </action>

Where com.common.misc.SetAttributeGroupId extends ForwardAction

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message