struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ernesto Reinaldo Barreiro <reier...@gmail.com>
Subject Re: AJAX issues in struts 2.1.6
Date Thu, 03 Sep 2009 10:11:34 GMT
I have no idea... This seems to be an entirely different thing form the
original post... But I'm new to struts2 so don't take my word for granted.
By the way, FilterDispatcher is deprecated. What I use in my toy application
is:
<filter>
   <filter-name>struts2</filter-name>

<filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
   </filter>

  <filter-mapping>
   <filter-name>struts2</filter-name>
   <url-pattern>/*</url-pattern>
   </filter-mapping>
Best,

Ernesto


On Thu, Sep 3, 2009 at 11:57 AM, calintz <t492113@yahoo.com> wrote:

>
> After changed  <s:head theam="ajax" debug="true"/> to <sx:head
> debug="true"/>
> i'm having another problem. what should i set for my <param-value> ??
>
> this is part of my web.xml
>
> <filter>
>        <filter-name>struts2</filter-name>
>        <filter-class>
>             org.apache.struts2.dispatcher.FilterDispatcher
>         </filter-class>
>        <init-param>
>                <param-name>actionPackages</param-name>
>                <param-value>pages/list.actions</param-value>
>        </init-param>
>    </filter>
>
>    <filter-mapping>
>        <filter-name>struts2</filter-name>
>        <url-pattern>/*</url-pattern>
>    </filter-mapping>
> -----------------------------------------------------------------------
> this is my structs.xml
>
> <struts>
>    <constant name="struts.objectFactory" value="spring" />
>    <constant name="struts.devMode" value="true" />
>
>    <package name="person" extends="struts-default">
>
>        <action name="list" method="execute" class="personAction">
>            <result>pages/list.jsp</result>
>            <result name="input">pages/list.jsp</result>
>        </action>
>
>        <action name="remove" class="personAction" method="remove">
>            <result>pages/list.jsp</result>
>            <result name="input">pages/list.jsp</result>
>        </action>
>
>        <action name="save" class="personAction" method="save">
>            <result>pages/list.jsp</result>
>            <result name="input">pages/list.jsp</result>
>        </action>
>    </package>
>
> </struts>
>
> --------------------------------------------------------------------------------
> my error message is
>
> WARNING: Could not find action or result
> There is no Action mapped for namespace / and action name list. - [unknown
> location]
>        at
>
> com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:177)
>        at
>
> org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)
>        at
>
> org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
>        at
>
> com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:47)
>        at
> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:458)
>        at
>
> org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>        at
>
> org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:112)
>         at
>
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
>         at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
>        at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
>        at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>        at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java: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:874)
>        at
>
> org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
>        at
>
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
>        at
>
> org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
>        at
>
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
>        at java.lang.Thread.run(Unknown Source)
> --
> View this message in context:
> http://www.nabble.com/AJAX-issues-in-struts-2.1.6-tp23584424p25272908.html
> Sent from the Struts - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>

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