struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yasser Zamani <yasserzam...@apache.org>
Subject Re: http://mybox:8080/struts/hello.action gets HTTP Status 404 - Not Found
Date Sat, 30 Jun 2018 12:43:22 GMT


On 6/30/2018 4:23 PM, ssmtpmailtesting ssmtpmailtesting wrote:
> web.xml =>
> 
> <!DOCTYPE web-app PUBLIC
>  "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>  "http://java.sun.com/dtd/web-app_2_3.dtd" >
> 
> <web-app>
>     <display-name>Archetype Created Web Application</display-name>
>     <filter>
>         <filter-name>struts2</filter-name>
>         <filter-class>org.apache.struts2.dispatcher.FilterDispatcher
> </filter-class>

The maven pom.xml is using Struts 2.5.16 but web.xml is using Struts
2.3.x either DTD and filter. The FilterDispatcher is used in the early
Struts2 development, and it’s deprecated since Struts 2.1.3. it’s always
recommended to upgrade the new filter class – StrutsPrepareAndExecuteFilter.

Regards.

Mime
View raw message