用Java模拟form表单提交的方法,在struts2中的配置如下:action="ActionName!add"其中一个按钮的代码如下:点击“注册”按钮被单击时触发regist函数,该函数的代码如下: