Results 1 to 3 of 3
- 01-13-2010, 03:22 PM #1
Member
- Join Date
- Feb 2009
- Posts
- 57
- Rep Power
- 0
Struts2: why do i get http status 404 error?
here are my settings
web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>practise</display-name>
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatch er</filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
</web-app>
struts.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<package name="mypackage" namespace="/web"
extends="struts-default">
<action name="add">
<result>/addPhone.jsp</result>
</action>
<action name="Registration">
<result>/chapterThree/Registration.jsp</result>
</action>
</package>
</struts>
all necessary jars have been placed in lib folder
when i entered the url http://localhost:8080/practise/web/add.action i expect addPhone.jsp to be displayed but it displayed an error.. help pls :(
- 04-24-2012, 02:52 PM #2
Member
- Join Date
- Apr 2012
- Posts
- 1
- Rep Power
- 0
Re: Struts2: why do i get http status 404 error?
hi, I think , u need to add .action in jsp then it should be working properly.
- 04-24-2012, 04:16 PM #3
Re: Struts2: why do i get http status 404 error?
Do you also think the person who asked the question is still waiting for the answer after more than two years?
If you're going to continue to post here, Use proper spellings (you, not u) and a capital letter at the start of a sentence and for the first person singular I. This is a programming forum, not SMS chat. And don't post to long dead threads unless you have something really, really important to offer.
Closing this thread.
db
THREAD CLOSEDWhy do they call it rush hour when nothing moves? - Robin Williams
Similar Threads
-
HTTP Status 405 - HTTP method GET is not supported by this URL
By javanewbie in forum Java ServletReplies: 7Last Post: 11-11-2009, 08:29 PM -
what does this means HTTP Status 500 -
By gissah in forum New To JavaReplies: 0Last Post: 03-28-2009, 03:27 AM -
Http Status 404 - LoginServlet.do
By mbalas2 in forum Java ServletReplies: 4Last Post: 03-05-2009, 05:52 PM -
problem with HTTP Status 404
By orkun in forum JavaServer Faces (JSF)Replies: 1Last Post: 02-05-2009, 09:28 PM -
HTTP Status 404 - Servlet action is not available---Error
By sireesha in forum Web FrameworksReplies: 0Last Post: 04-18-2008, 07:25 PM


LinkBack URL
About LinkBacks


Bookmarks