求助:struts中html:button的问题
<html:form action= "asss.do " focus= "user ">
.....文本框部分
<tr>
<td align= "right ">
<html:submit property= "submit "> <bean:message "button.logon "/> </html:submit>
</td>
<td align= "left ">
<html:button property= "register " onclick= 'location.href=register.jsp '>
<bean:message key= "button.register "/> </html:button>
</td>
</tr>
</html:form>
我的目的是点击 register按钮时跳转到register.jsp页面,不知道如何实现了,高手指点下。
------解决方案--------------------在按钮上加onclick事件
onclick= "javascript:document.location.href= '/dir/../your.jsp ' "
------解决方案--------------------onclick= "window.location= 'register.jsp ' "