<form id="form1" name="form1" target="_blank"></form>
<form action='${request.contextPath}/j_spring_security_check'
method='POST' id='ajaxLoginForm' name='ajaxLoginForm' target="_blank">
用户名<input id="j_username" name="j_username" type="text" />
密 码<input name="j_password" id="j_password" type="password" /><input onclick='authAjax(); return false;'type="image" src="login.jpg" />
</form> 暂时想不起来为什么用两个form呢,最后引入js:<g:javascript library="prototype" />
posts - 80, comments - 24, trackbacks - 0, articles - 32
Copyright © asdtiang