i *thought* the op was using 2.1.3 thanks scott! 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.
> To: user@struts.apache.org > Subject: Re: URL Mappings > Date: Sat, 15 Aug 2009 10:18:25 -0400 > From: musom...@aol.com > > > Note that > > > > org.apache.struts2.dispatcher.FilterDispatcher > > > is deprecated since 2.1.3 in favor of > org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter. > > > > > > > > > -----Original Message----- > From: Martin Gainty <mgai...@hotmail.com> > To: Struts Users Mailing List <user@struts.apache.org> > Sent: Sat, Aug 15, 2009 9:29 am > Subject: RE: URL Mappings > > > > > > > > > > > > Martin Gainty wrote: > > action extensions are specified in struts.xml > struts.action.extension > > <constant name="struts.action.extension" value="action,htm" /> > > > > static-content: > > * <p/> This > filter(org.apache.struts2.dispatcher.FilterDispatcher) also serves > common static * content needed when using various parts of Struts, such > as JavaScript > > * files, CSS files, etc. It works by looking for requests to /struts/*, > and then mapping the * * value after "/struts/" > > * to common packages in Struts and, optionally, in your class path. By > default, the * > > * following packages are > > * automatically searched: > > * <li>org.apache.struts2.static</li> > > > > specifying additional 'packages' in init-param will allow > DefaultStaticContentLoader to load > > those additional packages > > does this answer your questions? > 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 > Aus > tausch 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:29:16 +0200 > > From: ro...@mtndesigns.co.uk > > To: user@struts.apache.org > > Subject: URL Mappings > > > > Please excuse if this question has been answered before. I can't find > > any direct reference to it. > > > > How would I configure Struts2 to treat .htm requests in the same way as > > .action requests. > > > > I freely admit I do not understand how > > org.apache.struts2.dispatcher.FilterDispatcher identifies between static > > and not static content. > > > > For SEO and for familiarity for average users, I'd like all our URLs to > > end in .htm > > > > Is this possible and how do I go about this. > > > > Thanks > > Robin > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands > , e-mail: user-h...@struts.apache.org > > > > _________________________________________________________________ > Get your vacation photos on your phone! > http://windowsliveformobile.com/en-us/photos/default.aspx?&OCID=0809TL-HM= > > > > > _________________________________________________________________ Express your personality in color! Preview and select themes for Hotmail®. http://www.windowslive-hotmail.com/LearnMore/personalize.aspx?ocid=PID23391::T:WLMTAGL:ON:WL:en-US:WM_HYGN_express:082009