There is no Action mapped for namespace / and action name Hello. [message #214565] |
Fri, 30 May 2008 03:50  |
Eclipse User |
|
|
|
Originally posted by: sadhika06.gmail.com
Hi,
i am new to struts2. i created web-dynami project. Added the 4
jars(freemarker,ognl,struts2-core,xwork) in WEB-INF/lib. and added in the
web.xml
<filter>
<filter-name>struts2</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher </filter-class>
</filter>
<filter-mapping>
<filter-name>struts2</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
in srtuts.xml
<constant name="struts.enable.DynamicMethodInvocation" value="false" />
<constant name="struts.devMode" value="false" />
<package name="tutorial" namespace="/tutorial"
extends="struts-default">
<action name="Hello" class="tutorial.Hello">
<result>/hello.jsp</result>
</action>
<!-- Add more actions here -->
</package>
created a tutorial package under the src.
created a Hello.java file under tutorial.
created hello.jsp file under webcontent.
when i run the project i am getting the foll error.
There is no Action mapped for namespace / and action name Hello. -
[unknown location]
can anybody help me in finding the prob.
thanks in advance
bye
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04251 seconds