1.servlet接受request:
<1>发送:页面action="login"
<2>接受:web.xml中配置LoginServlet:"/login"
2.struts接受request:
<1>发送:页面action="login"
<2>接受:struts.xml配置
<action name="login" class="action.LoginAction">
<result name="success">/hello.jsp</result>
<result name="none">/error.jsp</result>
</action>
之前老是记不清楚斜杠("/")有无,做个总结:
1.[页面 请求都没 !]
2.[配置 servlet有 ,struts2没 !]
别再混淆了!