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 
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: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

Reply via email to