in 2.1.6 StrutsPrepareAndExecuteFilter is implemented in /blank/WEB-INF/web.xml

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_9" 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 Blank</display-name>

    <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>
    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
    </welcome-file-list>
</web-app>

code:
/*Handles both the preparation and execution phases of the Struts dispatching 
process.    
 * This filter is better to use
 * when you don't have another filter that needs access to action context 
information, 
 * such as Sitemesh. */
public class StrutsPrepareAndExecuteFilter implements StrutsStatics, Filter {
.......
}
mainly to access action-context
but also implements StrutsStatics

maybe wes would know i think he works extensively with SiteMesh 
Martin Gainty 
______________________________________________ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Sat, 15 Aug 2009 11:13:48 -0400
> From: d...@newfield.org
> To: user@struts.apache.org
> Subject: Re: URL Mappings
> 
> musom...@aol.com wrote:
> > Note that org.apache.struts2.dispatcher.FilterDispatcher is
> > deprecated  since 2.1.3 in favor of
> > org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.
> 
> D'oh!  I didn't know that!
> 
> I'm a bit confused, though -- are the javadocs here:
> http://struts.apache.org/2.x/struts2-core/apidocs/org/apache/struts2/dispatcher/ng/package-summary.html
> out of date?  The example web.xml code doesn't include the .ng portion 
> of the packages...  (what's "NG" short for, anyway?)
> 
> -Dale
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
> 

_________________________________________________________________
Get free photo software from Windows Live
http://www.windowslive.com/online/photos?ocid=PID23393::T:WLMTAGL:ON:WL:en-US:SI_PH_software:082009

Reply via email to