1、首先建立几个包名:如图
2、struts.xml中配置如下:(其中action的name必须与jsp页面表单的action名一样,class为与applicationContext.xml中action注入的id值一致,method为将在LoginAction中写的方法名,result那么input为空提交指定的返回,success为LoginAction中将要指定的返回)2、struts.xml中配置如下:(其中action的n
1、首先建立几个包名:如图
2、struts.xml中配置如下:(其中action的name必须与jsp页面表单的action名一样,class为与applicationContext.xml中action注入的id值一致,method为将在LoginAction中写的方法名,result那么input为空提交指定的返回,success为LoginAction中将要指定的返回)2、struts.xml中配置如下:(其中action的n