日期:2014-05-20  浏览次数:20683 次

struts的路径配置问题请教。。。
jsp里的form
<form name="form1" method="post" action="????"> 
输入success将返回到"success"页面,否则返回到"fail"页面<br><br> 
input:<input type="text" name="valu">  <input type="submit" value="submit"> 
</form> 
--------------------
struts-config.xml里的action-mapping
<action-mappings >
  <action
  attribute="loginAction"
  name="loginAction"
  path="/logina"
  type="com.dong.company.action.LoginaAction"
  input ="index.jsp">
  <forward name="error" path="error.jsp" />
  <forward name="success" path="success.jsp" />
  </action>
  </action-mappings>
我想问的是jsp里的action里面要填写的是路径是action-mapping里的哪个属性。。

------解决方案--------------------
是 path="/logina" 

------解决方案--------------------
path
------解决方案--------------------
path="/logina" 一般要加.do
------解决方案--------------------
logina.do