当前位置: 代码迷 >> J2EE >> struts的路径配置有关问题请问。
  详细解决方案

struts的路径配置有关问题请问。

热度:265   发布时间:2016-04-22 03:33:58.0
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
  相关解决方案