• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Vidya Moorthy
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 275
Eclipse IDE jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Vidya Moorthy
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic