Hi, do you have your struts.xml file inside WEB-INF/classes folder?
Thanks, Nuwan Troy S wrote:
Struts fans. I am trying to add to the struts 2.0.9 blank application. I tried adding actions based on the excellent book in progress Struts2 in Action. I tried loading the URL http://ashanti:8080/struts2-blank-2.0.9/chapterTwo/Name.action and got the error There is no Action mapped for action name Can anyone help? Troy struts.xml <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" "http://struts.apache.org/dtds/struts-2.0.dtd"> <struts> <constant name="struts.enable.DynamicMethodInvocation" value="false" /> <constant name="struts.devMode" value="true" /> <include file="example.xml"/> <package name="default" namespace="/" extends="strutsdefault"> <action name="Menu"> <result>/menu/Menu.jsp</result> </action> </package> <package name="chapterTwo" namespace="/chapterTwo" extends="struts- default"> <action name="Name"> <result>/chapterTwo/NameCollector.jsp</result> </action> <action name="HelloWorld" class="manning.chapterTwo.HelloWorld"> <result name="SUCCESS">/chapterTwo/HelloWorld.jsp</result> <result name="ERROR">/chapterTwo/Error.jsp</result> </action> </package> <!-- Add packages here --> </struts>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]