You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by sajidbigler <sa...@gmail.com> on 2009/03/23 12:51:35 UTC

did any one sussesfully able to use org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

Hi Friends,

http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html#TroubleshootingguidemigratingfromStruts2.0.xto2.1.x-ExplicitlysettheincludeParamsattributeonallurltagsto%2522get%2522ifitisnotspecified.

web.xml suggest to change it and 
ActionMappingParams

Parameters set by the action mapping are not set/not available through
ParameterAware (This change is only needed when going to 2.1.x (where x>0))

These are now only available if you use the new interceptor named
"actionMappingParams".

but it gives error like

his is usually caused by using Struts tags without the associated filter.
Struts tags are only usable when the request has passed through its servlet
filter, which initializes the Struts dispatcher needed for this tag. -
[unknown location] :( please help me to know more about it.


-- 
View this message in context: http://www.nabble.com/did-any-one-sussesfully-able-to-use-org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter-tp22658665p22658665.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


Re: did any one sussesfully able to use org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

Posted by mahanare <ma...@gmail.com>.
FYI, here is my web.xml

we use spring with struts 2. define all beans in spring context and map them
in struts2.xml (instead of the class="<<class_with_paackage>>" we give
class="<<springbean_id>>"
<?xml version="1.0" encoding="UTF-8"?>

<web-app id="starter" version="2.4" 
         xmlns="http://java.sun.com/xml/ns/j2ee" 
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
	
	<display-name>Struts 2 - Maven Archetype - Starter</display-name>
	
	<context-param>
		<param-name>contextConfigLocation</param-name>
		<param-value>classpath*:applicationContext*.xml</param-value>
	</context-param>
	
	<!-- Filters -->
	<filter>
        <filter-name>action2-cleanup</filter-name>
       
<filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class>
    </filter>
    <filter>
        <filter-name>sitemesh</filter-name>
       
<filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class>
    </filter>
        
    <filter>
        <filter-name>action2</filter-name>
       
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
    </filter>
	 
	
	<filter-mapping>
        <filter-name>action2-cleanup</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>sitemesh</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
        <filter-name>action2</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>
	
	<!-- Listeners -->
	<listener>
       
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>        
    </listener>
  
    
    
    <!-- Servlets -->
    <servlet>
        <servlet-name>dwr</servlet-name>
        <servlet-class>uk.ltd.getahead.dwr.DWRServlet</servlet-class>
        <init-param>
            <param-name>debug</param-name>
            <param-value>true</param-value>
        </init-param>
    </servlet>
    <servlet>
    	<servlet-name>jspSupportServlet</servlet-name>
    
<servlet-class>org.apache.struts2.views.JspSupportServlet</servlet-class>
    	<load-on-startup>5</load-on-startup>
    </servlet>
    
    <servlet-mapping>
        <servlet-name>dwr</servlet-name>
        <url-pattern>/dwr/*</url-pattern>
    </servlet-mapping>
    
    
    <!-- Welcome file lists -->
    <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>default.jsp</welcome-file>
        <welcome-file>index.html</welcome-file>
    </welcome-file-list>

</web-app>




sajidbigler wrote:
> 
> Hi Friends,
> 
> http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html#TroubleshootingguidemigratingfromStruts2.0.xto2.1.x-ExplicitlysettheincludeParamsattributeonallurltagsto%2522get%2522ifitisnotspecified.
> 
> web.xml suggest to change it and 
> ActionMappingParams
> 
> Parameters set by the action mapping are not set/not available through
> ParameterAware (This change is only needed when going to 2.1.x (where
> x>0))
> 
> These are now only available if you use the new interceptor named
> "actionMappingParams".
> 
> but it gives error like
> 
> his is usually caused by using Struts tags without the associated filter.
> Struts tags are only usable when the request has passed through its
> servlet filter, which initializes the Struts dispatcher needed for this
> tag. - [unknown location] :( please help me to know more about it.
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/did-any-one-sussesfully-able-to-use-org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter-tp22658665p22700953.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