Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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

 
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
 
Ranch Hand
Posts: 275
jQuery Eclipse IDE 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 ?
 
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
 
Acetylsalicylic acid is aspirin. This could be handy too:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic