Posts Tagged ‘struts’

Struts 2 with Maven

Friday, March 23rd, 2007

With Gaz’s help I’ve setup a basic Struts 2 project using Maven and NetBeans - I seem to have lost the ability to deploy within NetBeans, but I just downloaded Tomcat 5.5.23 and setup a context file pointing to the built project. All told it was easy - now I’ve just got to think of something worth writing :), and I’ll have myself an excuse for using something a bit more modern than the Java 1.4.2_05/Struts 1.1 rut we’ve got into at work.

Struts 2

Tuesday, March 20th, 2007

Struts 2.0.6 (the first general availability release) has been out a month (but I’ve only just noticed). I’ve tried a HelloWorld app and after some difficulties got it running.

The difficulties were all my own fault - I kept getting the following messages: “There is no Action mapped for action name HelloWorld.” or “There is no Action mapped for namespace / and action name HelloWorld.”. They were resolved when I realised my struts.xml was in the wrong folder - by default this should be in the root of classes and I had it in the root of WEB-INF.