struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ádamo Azambuja" <adamo...@gmail.com>
Subject struts There is no Action mapped for namespace / and action name
Date Thu, 18 Oct 2007 13:39:21 GMT
 i Have this problem and i lost 2 days trying do fix, what can i do in this
case?

I use java 1.4.2 / Struts 2 J4 / Hibernate and Spring.

i have the HelloWorld.java in the src and src/action to test.


*struts.xml *
<include file="struts-default.xml"/>

<constant name="struts.objectFactory" value="
org.apache.struts2.spring.StrutsSpringObjectFactory" />

<constant name="struts.devMode" value="true" />
<package name="action" extends="struts-default">
<action name="HelloWorld" class="HelloWorld">
<result name="none">/HelloWorld.jsp</result>
</action>
</package>

*applicationContext.xml *
<bean class="
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter" />
<bean id="helloWorld"
class="HelloWorldAction" singleton="false">
</bean>

*web.xml *
<filter>
<filter-name>Spring OpenEntityManagerInViewFilter</filter-name>
<filter-class>
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter
</filter-class>
</filter>
<filter-mapping>
<filter-name>Spring OpenEntityManagerInViewFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<filter>
<filter-name >struts</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-c lass>

</filter>
<filter-mapping>
<filter-name>struts</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

-- 
Ádamo B. Azambuja
JEE Developer
icq: 112102893
msn: adamobas@hotmail.com
E-Mail 1: adamobas@yahoo.com.br
E-Mail 2: adamobas@gmail.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message