struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Struts Two <struts...@yahoo.ca>
Subject RE: how to configure struts2 for /*.action?
Date Thu, 16 Jul 2009 02:08:48 GMT

Just keep in mind by setting /*.action for your struts filter url, you may cause yourself
some problems down the road depending on the app server you use, as struts 2 is not following
servlet 2.4 spec in this regard. filters are not supposed to be accessed directly as a resource
according to the spec.

I myself have been experiencing some issues for a similar case like this one and had to resort
various hacks to get around it.

--- On Wed, 7/15/09, Martin Gainty <mgainty@hotmail.com> wrote:

> From: Martin Gainty <mgainty@hotmail.com>
> Subject: RE: how to configure struts2 for /*.action?
> To: "Struts Users Mailing List" <user@struts.apache.org>
> Received: Wednesday, July 15, 2009, 9:21 PM
> 
> look at a working example.. showcase contain these *.action
> entries in /WEB-INF/web.xml
> 
>       <servlet>
>        
> <servlet-name>faces</servlet-name>
>        
> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>        
> <load-on-startup>1</load-on-startup>
>       </servlet>
>           <servlet>
>        
> <servlet-name>JspSupportServlet</servlet-name>
>        
> <servlet-class>org.apache.struts2.views.JspSupportServlet</servlet-class>
>        
> <load-on-startup>1</load-on-startup>
>       </servlet>
> 
>       <!-- JavaServer Faces Servlet
> Mapping, not called directly -->
>         <servlet-mapping>
>        
> <servlet-name>faces</servlet-name>
>        
> <url-pattern>*.action</url-pattern>
>       </servlet-mapping>
> 
> Martin 
> ______________________________________________ 
> 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: Wed, 15 Jul 2009 16:29:04 -0400
> > From: newton.dave@yahoo.com
> > To: user@struts.apache.org
> > Subject: Re: how to configure struts2 for /*.action?
> > 
> > ravi_eze wrote:
> > > We are not serving static content. 
> > 
> > Not *you*, *Struts 2*.
> > 
> > > What will happen if i do *.action?
> > > Why did the doc say /* *should* be in web.xml?
> > 
> > Because of what you've already been told a couple of
> times now.
> > 
> > Dave
> > 
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> > 
> 
> _________________________________________________________________
> Hotmail® has ever-growing storage! Don’t worry about
> storage limits. 
> http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009


      __________________________________________________________________
Ask a question on any topic and get answers from real people. Go to Yahoo! Answers and share
what you know at http://ca.answers.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message