struts文件结构:
1.filter---过滤器
2.struts.xml ---- struts配置文件
3.Action --- 业务逻辑
只需要写业务逻辑组件--》 action
com.nsu.web.action
LoginAction
Reg Action
UserAction
namespace命令空间
工作流程
1.login.jsp-->login.action?name=
2.web.xml action->struts2
3.strus.xml --->action|name=login
class=MyAction
4.MyAction -->execute
5.return --->ok|fali-->Result
6./result->forward(req,resp)
1.filter---过滤器
2.struts.xml ---- struts配置文件
3.Action --- 业务逻辑
只需要写业务逻辑组件--》 action
com.nsu.web.action
LoginAction
Reg Action
UserAction
namespace命令空间
工作流程
1.login.jsp-->login.action?name=
2.web.xml action->struts2
3.strus.xml --->action|name=login
class=MyAction
4.MyAction -->execute
5.return --->ok|fali-->Result
6./result->forward(req,resp)