Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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 ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Struts 1 Hello World Program

Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have just started learning about Struts and I have started with the Hello World Program. When I run my program I get the following error.
HTTP Status 404 -
type Status report
description The requested resource is not available.

Could some one kindly help me with debugging my program. I am not sure what needs to be done.

Thanks a lot in advance.


1. web.xml file:

<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi=""; xmlns=""; xmlns:web=""; xsi:schemaLocation=""; id="WebApp_ID" version="3.0">



2. struts-config.xml
<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.3//EN"


<form-bean name="HelloWorldForm" type="com.home.form.HelloWorldForm"/>

<forward name="helloWorld" path="/"/>

<action path="/helloWorld" type="com.home.action.HelloWorldAction" name="HelloWorldForm">
<forward name="success" path="/helloWorld.jsp" />


Posts: 9613
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are just starting out, please do not use Struts 1.x. The last update of Struts 1.x was in 2008 and it will receive no further updates, including security fixes (see here). If that isn't enough reason, Struts 1.x suffers from several severe architectural problems which make the framework tedious to use and difficult to maintain.
My advice would be to use a "modern" framework, like Struts 2.x or Spring. They are much easier to use and much more productive for the developer.
Those are the largest trousers in the world! Especially when next to this ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic