structs 调用action
-
- <script type="text/javascript" language="javascript">
- <!--
- function formsub( action ){
- var form = document.forms[0];
- form.method = 'post';
- form.action = action;
- form.submit();
- }
- //-->
- </script>
- <html:form action="/login.do">
- <html:text property="username" value="用户名"/>
- <html:submit value="登陆" onclick="formsub( '/login.do?method=login' )"/>
- <html:submit value="注册" onclick="formsub( '/login.do?method=register' )"/>
- </html:form>