首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

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

2012-02-06 
struts的路径配置问题请教。。。jsp里的formform nameform1 methodpost action????输入success将

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

热点排行