`
googgoogle
  • 浏览: 66002 次
社区版块
存档分类
最新评论

struts2一个表单提交多个action

阅读更多

   


<from name="login" method="post" id="login">

<input type="button" value="登陆" onclick="login()">

<input type="button" value="注册" onclick="registor()">

</from>

function login()<br>{<br>document.getElementById("login").action="<%=request.getContextPath()%>/loginForm/loginAction.action";<br>document.getElementById("login").submit();<br>}<br>function registor()<br>{

document.getElementById("login").action="<%=request.getContextPath()%>/loginForm/registorAction.action";<br>document.getElementById("login").submit();<br>}

 
1
1
分享到:
评论
1 楼 zhuchao_ko 2011-12-08  
............................................囧

相关推荐

Global site tag (gtag.js) - Google Analytics