You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by 梁炳場 <pc...@gmail.com> on 2005/08/30 04:42:10 UTC
back button does not function?
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