File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes HTTP Status 404 for my action class which is right there! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "HTTP Status 404 for my action class which is right there!" Watch "HTTP Status 404 for my action class which is right there!" New topic
Author

HTTP Status 404 for my action class which is right there!

Vidya Moorthy
Ranch Hand

Joined: Nov 13, 2003
Posts: 57
Hello all!
I am trying to learn Struts 2 from apache website. This is a basic HelloWorld Tutorial and the name of the project is Customer. It has a HelloWorld.java (it is in a package com.innowix under src)which returns a message that Struts is up and running. I have a feeling that the problem is there in my Struts.xml which has the following code

I am trying to invoke my HelloWorld.action by this link
http://localhost:8080/Customer/innowix/HelloWorld.action

Please tell me what I am doing wrong. I know that it must be something really silly!
Thanks in advance
Vidya
Aniruddh Joshi
Ranch Hand

Joined: Jul 29, 2008
Posts: 275

Hi Vidya,

Sorry, I don't have the solution to your problem. Rather , I am adding my oen doubts to it...when I started learning Struts, I wrote struts-config.xml ; is this the difference between the 2 versions ?


Anrd
"One of the best things you could do is to simplify a larger application into a smaller one by reducing its process and complexity - Fowler"
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Aniruddh,

What you have done by asking another question in the conversation thread started by Vidya is called a "hijacking". You have essentially hijacked his question and substituted it for yours. I'm sure you had no ill intentions, but it is bad manners and we ask that you not do it. In the future if you have a question that has nothing to do with the original one, please post it in a new thread.

Having said that, the answer to your question is found in our FAQ.

Vidya,

If I knew the answer to your question, I would answer it, but unfortunately I don't. If no one steps up to answer it, you might consider providing more details.


Merrill
Consultant, Sima Solutions
Vidya Moorthy
Ranch Hand

Joined: Nov 13, 2003
Posts: 57
Merrill:
I figured the problem. I should have included an example.xml file which I didn't include and my web.xml was not the same as what was in struts 2 blank.war. The problems occured because I was using an IDE and couldn't start the project from blank.war. So, I let the IDE create a new web project and forgot to update the equivalent files. Thanks for your input.
Vidya
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTP Status 404 for my action class which is right there!