struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghuveer.V" <raghuve...@infotechsw.com>
Subject Struts2 Tiles - Error -There is no Action mapped for namespace / and action name
Date Mon, 21 Sep 2009 07:15:11 GMT
I have been using struts2Tiles2 for my current application.

I get following error when my Result type is "tiles" (struts.xml as show
below).

 

Any suggestion for resolving this error.

 

 

 

 

WARNING: Could not find action or result

There is no Action mapped for namespace / and action name >. - [unknown
location]

        at
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:1
77)

        at
org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)

        at
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsAct
ionProxyFactory.java:39)

        at
com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultA
ctionProxyFactory.java:47)

        at
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:458)

        at
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOper
ations.java:77)

        at
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilt
er(StrutsPrepareAndExecuteFilter.java:76)

        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:215)

        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:188)

        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:210)

        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:174)

        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127
)

        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117
)

        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:108)

        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)

        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)

        at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(Http11BaseProtocol.java:665)

        at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:528)

        at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:81)

        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:685)

        at java.lang.Thread.run(Unknown Source)

 

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>

<package name="myPackage" namespace="/" extends="tiles-default"> 

<action name="bookingFactorsAction*" method="{1}"
class="com.test.actions.CEACBookingFactorsAction">          

                                    <interceptor-ref name="servletConfig"/>

                                    <interceptor-ref name="prepare" />

                                    <interceptor-ref name="debugging" />

                                    <interceptor-ref
name="scopedModelDriven">

                                                <param
name="scope">session</param>

                                                <param
name="name">cBookingFactorsModel</param>

                                                <param name="className">

 
com.test.model.CBookingFactorsModel

                                                </param>

                                    </interceptor-ref>

                                    <interceptor-ref name="params" />

                                    <interceptor-ref name="conversionError"
/>

                                    <interceptor-ref name="workflow" />

                                    <interceptor-ref name="defaultStack" />

                                    <result type="tiles" >
test_tiles_page_defination </result>

                                    <result type="tiles" name="input">
test_tiles_page_defination </result>

                                    <result type="tiles"
name="test_tiles_page"> test_tiles_page_defination </result>

            

                                    

            </action>

  </package>

</struts>

 

 

JSP Page

 

<s:url var="bookingFactors" namespace="/"
action="bookingFactorsActionview"/>

<s:a href="%{bookingFactors}">EAC Booking Factors</s:a>


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