1 Replies - 671 Views - Last Post: 19 December 2014 - 10:10 PM

#1 hemkar   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 27-November 14

Error 404 in my struts application.

Posted 07 December 2014 - 12:07 AM

i am gettig error 404 in Struts2 application.my web.xml code is given below.Can anyone tell me what are the other reason of getting this error.


<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
	id="WebApp_ID" version="3.0">
	<display-name>Struts 2</display-name>
	<welcome-file-list>
		<welcome-file>index.jsp</welcome-file>
	</welcome-file-list>
	<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>
</web-app>



Is This A Good Question/Topic? 0
  • +

Replies To: Error 404 in my struts application.

#2 kathy025   User is offline

  • D.I.C Head

Reputation: 41
  • View blog
  • Posts: 190
  • Joined: 19-December 14

Re: Error 404 in my struts application.

Posted 19 December 2014 - 10:10 PM

FilterDispatcher is deprecated. Use this instead:
<filter>
    <filter-name>struts2</filter-name>
    <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
  </filter>

Was This Post Helpful? 0
  • +
  • -

Page 1 of 1