struts中不进行struts文件配置,是不是只要action名和jsp页面名相同就能自动找到啊?

解决方案 »

  1.   

    如果用 <form> 的确可以这样做
    但是一旦用了 <html:form> ,那 action 就必须和配置里的 path 对应
      

  2.   

    老大你以为struts是神啊 
    --------------------------------------------------
    Quietly through ...
      

  3.   

    在struts-config.xml中将jsp配置下,就可以在action中使用简化名进行跳转了.
    例如:<forward name="a" path="abcabcabc.jsp" />
    在action中使用mapping.findForward("a");就跳转到abcabcabc.jsp了.
      

  4.   

    struts2中Action会返回一个String,在struts.xml中action元素中result子元素中配置。