怎么跟我学的STRUTS不一样啊,应该有个formbean吧,而且,Action的Path应该跟jsp中form的action一致

解决方案 »

  1.   

    我学是 struts2 今天第一天讲的!我也不太懂 有个Action的path是和一个action类一致的把
      

  2.   

    The Struts dispatcher cannot be found.  This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag
    你确信两边是同步的吗?
      

  3.   

    包导了没有,web.xml配filter了没有
      

  4.   

    The Struts dispatcher cannot be found.  This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher !!!!貌似过滤器没配! 提示找不到过滤器
    <filter> 
      <filter-name>struts2</filter-name> 
      <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> 
    </filter> 
    <filter-mapping> 
      <filter-name>struts2</filter-name> 
      <url-pattern>/*</url-pattern> 
    </filter-mapping> 
      

  5.   

    <filter>
      <filter-name>struts2 </filter-name>
      <filter-class>org.apache.struts2.dispatcher.FilterDispatcher </filter-class>
    </filter>
    <filter-mapping>
      <filter-name>struts2 </filter-name>
      <url-pattern>/* </url-pattern>
    </filter-mapping> 
    貌似我不用/*,用*.action就会有这个错误信息: The Struts dispatcher cannot be found.  This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. - [unknown location]提示,咋回事?
      

  6.   

    我也遇到了同样的问题,
    <filter>
      <filter-name>struts2 </filter-name>
      <filter-class>org.apache.struts2.dispatcher.FilterDispatcher </filter-class>
    </filter>
    <filter-mapping>
      <filter-name>struts2 </filter-name>
      <url-pattern>/* </url-pattern>
    </filter-mapping>  
    貌似我不用/*,用*.action就会有这个错误信息: The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. - [unknown location]提示,咋回事?