Re: Issue adding filter to struts2-archetype-starter project

2020-05-09 Thread James Chaplin
Hello Jonathan. As the other replies have pointed out, your code is using/extending "import java.nio.file.DirectoryStream.Filter;". That is an import for a file directory filter, and not a servlet filter. You will want to replace the old import statement wi

Re: Issue adding filter to struts2-archetype-starter project

2020-05-05 Thread M Huzaifah
Eyou should use interface Filter in servlet package. Not from nio package On Tue, May 5, 2020, 22:40 Dave Newton wrote: > `import java.nio.file.DirectoryStream.Filter` is not a servlet filter. > > Dave >

Re: Issue adding filter to struts2-archetype-starter project

2020-05-05 Thread Dave Newton
`import java.nio.file.DirectoryStream.Filter` is not a servlet filter. Dave

Re: Issue adding filter to struts2-archetype-starter project

2020-05-04 Thread Lukasz Lenart
Do you see any errors while you starting Tomcat? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache

Issue adding filter to struts2-archetype-starter project

2020-05-04 Thread Jonathan Hill
Hello, In order to study/practice using struts 2, I am using a the struts2-archetype-starter maven archetype. I've come across a problem trying to add my own filter, and was hoping someone could point me in the right direction. I'm using eclipse with maven for my build process,

Re: JSON plugin: filter fields in a Map with Lists

2019-10-02 Thread Micael Carreira
ollow with its deletion, so that we can ensure such a mistake does not occur in the future. On 25/09/19 09:18, Yasser Zamani-2 [via Struts] wrote: -Original Message- From: Micael Carreira Sent: Tuesday, September 24, 2019 1:30 PM To: user@struts.apache.org Subject: JSON plu

Re: JSON plugin: filter fields in a Map with Lists

2019-09-27 Thread Yasser Zamani
 Facebook icon <https://www.facebook.com/ITClinical> LinkedIn icon >>> <https://www.linkedin.com/company/itclinical> >>> The content of this email is confidential and intended for the recipient >>> specified in message only. It is st

Re: JSON plugin: filter fields in a Map with Lists

2019-09-27 Thread Micael Carreira
lease reply to this message and follow with its deletion, so that we can ensure such a mistake does not occur in the future. On 25/09/19 09:18, Yasser Zamani-2 [via Struts] wrote: -Original Message- From: Micael Carreira Sent: Tuesday, September 24, 2019 1:30 PM To: user@struts.apache.org

Re: JSON plugin: filter fields in a Map with Lists

2019-09-26 Thread Yasser Zamani
take, please reply to this > message and follow with its deletion, so that we can ensure such a > mistake does not occur in the future. > > On 25/09/19 09:18, Yasser Zamani-2 [via Struts] wrote: >> >>> -Original Message- >>> From: Micael Carreira >>

Re: JSON plugin: filter fields in a Map with Lists

2019-09-25 Thread Micael Carreira
er Zamani-2 [via Struts] wrote: -Original Message- From: Micael Carreira Sent: Tuesday, September 24, 2019 1:30 PM To: user@struts.apache.org Subject: JSON plugin: filter fields in a Map with Lists Hello, In MyAction, I have the following instance variable:     Map> result; And My

RE: JSON plugin: filter fields in a Map with Lists

2019-09-25 Thread Yasser Zamani
>-Original Message- >From: Micael Carreira >Sent: Tuesday, September 24, 2019 1:30 PM >To: user@struts.apache.org >Subject: JSON plugin: filter fields in a Map with Lists > >Hello, > >In MyAction, I have the following instance variable: > >     Map

JSON plugin: filter fields in a Map with Lists

2019-09-24 Thread Micael Carreira
Hello, In MyAction, I have the following instance variable:     Map> result; And MyObject has the following properties:     MyObject     |- interestingProperty     |- notInterestingProperty I want to return the action result as a JSON. So, in my struts configuration I have:              

Re: About "Parameter Validation Filter"

2018-03-01 Thread Lukasz Lenart
2018-02-28 17:55 GMT+01:00 Emi : > Hello, > > There is a topic about Parameter Validation Filter (TrimTextValidationRule, > FailIfNotCanonicalizedValidationRule, FailIfContainsHTMLValidationRule) for > servlet (https://www.owasp.org/index.php/Parameter_Validation_Filter). > >

About "Parameter Validation Filter"

2018-02-28 Thread Emi
Hello, There is a topic about Parameter Validation Filter (TrimTextValidationRule, FailIfNotCanonicalizedValidationRule, FailIfContainsHTMLValidationRule) for servlet (https://www.owasp.org/index.php/Parameter_Validation_Filter). I just want to know that struts2.5.14.1 already have these

Re: Use Filter or ParameterInteceptors to pevent S2-032

2016-04-28 Thread suresh sadanala
Sadanala +91-880 777 9058. On Thu, Apr 28, 2016 at 10:07 AM, Lukasz Lenart wrote: > 2016-04-28 3:59 GMT+02:00 mailinglist rs : > > Besides using upgrade or disable Dynamic method invocation, can I use > > Filter or ParameterInteceptors to block request parameters which start >

Re: Use Filter or ParameterInteceptors to pevent S2-032

2016-04-27 Thread Lukasz Lenart
2016-04-28 3:59 GMT+02:00 mailinglist rs : > Besides using upgrade or disable Dynamic method invocation, can I use > Filter or ParameterInteceptors to block request parameters which start with > "method:" prefix to prevent S2-032? > Reference: https://struts.apache.org/docs

Use Filter or ParameterInteceptors to pevent S2-032

2016-04-27 Thread mailinglist rs
Besides using upgrade or disable Dynamic method invocation, can I use Filter or ParameterInteceptors to block request parameters which start with "method:" prefix to prevent S2-032? Reference: https://struts.apache.org/docs/s2-032.html

Re: Benefits of using Filter as front controller

2012-08-22 Thread Rene Gielen
Thanks for this information, very interesting - seems like we're not alone with FiterDispatcher :) - René Am 15.08.12 00:45, schrieb Joseph Mocker: > FWIW, JAX-RS/Jersey provides both a Filter and a Servlet option as a > controller, however the Servlet came first. > >

Re: Benefits of using Filter as front controller

2012-08-14 Thread Joseph Mocker
FWIW, JAX-RS/Jersey provides both a Filter and a Servlet option as a controller, however the Servlet came first. http://java.net/jira/browse/JERSEY-122 Note the bug mentions Wicket also uses a Filter. The bug also provides an interesting reason for the use of a filter to

Re: Benefits of using Filter as front controller

2012-08-14 Thread Rene Gielen
I just > wanted to reflect the opinion for some spectrum of struts user community > though may be small in numbers. > > > - Original Message - > From: Rene Gielen > To: Struts Users Mailing List > Cc: > Sent: Tuesday, August 14, 2012 12:10:56 PM > Subject: Re:

Re: Benefits of using Filter as front controller

2012-08-14 Thread Struts Two
Cc: Sent: Tuesday, August 14, 2012 12:10:56 PM Subject: Re: Benefits of using Filter as front controller So far I fail to see where Struts 2 deviates from or violates the spec. The fact that _usually_ a front controller - a concept not to be found at all in the servlet spec - is implemen

Re: Benefits of using Filter as front controller

2012-08-14 Thread Dave Newton
On Tue, Aug 14, 2012 at 12:10 PM, Rene Gielen wrote: > So far I fail to see where Struts 2 deviates from or violates the spec. > Agreed; I've now read the relevant sections of older and new specs, and AFAICT it does not explicitly disallow serving resources. Further, it is arguable that the phra

Re: Benefits of using Filter as front controller

2012-08-14 Thread Rene Gielen
ood chance that _some_ of them share a common product line name, starting with "W" :) And well, going through hell when deploying apps to WAS* is something I suffered from myself many times, with various different frameworks and technology stacks in use. I'll try to wrap up my points:

Re: Benefits of using Filter as front controller

2012-08-14 Thread Struts Two
2:05:45 PM Subject: Re: Benefits of using Filter as front controller Rene Thanks for such a detailed explanation and descrbing each and every aspects Now even I can say and explains things in much more and good way Sent from BlackBerry® on Airtel -Original Message- From: Rene Gielen Dat

Re: Benefits of using Filter as front controller

2012-08-13 Thread umeshawasthi
: "Struts Users Mailing List" Subject: Re: Benefits of using Filter as front controller Grabbed me a copy of Servlet Spec 2.4: SRV.6.1 What is a filter? A filter is a reusable piece of code that can transform the content of HTTP requests, responses, and header information. Filters do not

Re: Benefits of using Filter as front controller

2012-08-13 Thread Rene Gielen
Grabbed me a copy of Servlet Spec 2.4: SRV.6.1 What is a filter? A filter is a reusable piece of code that can transform the content of HTTP requests, responses, and header information. Filters do not generally create a response or respond to a request as servlets do, rather they modify or adapt

Re: Benefits of using Filter as front controller

2012-08-13 Thread Paul Benedict
et/package-summary.html Paul On Mon, Aug 13, 2012 at 8:53 AM, wrote: > Yes this was one of the point I was thinking > Same question was today asked on SO and this lead me to reaseach as what > advantages and reasons was there to use filter as controller > Sent from BlackBerry® on Airtel >

Re: Benefits of using Filter as front controller

2012-08-13 Thread umeshawasthi
Yes this was one of the point I was thinking Same question was today asked on SO and this lead me to reaseach as what advantages and reasons was there to use filter as controller Sent from BlackBerry® on Airtel -Original Message- From: Dave Newton Date: Mon, 13 Aug 2012 09:49:43 To

Re: Benefits of using Filter as front controller

2012-08-13 Thread Dave Newton
2 violates the Servlet > Spec is a grand stretch of the imagination. > > http://stackoverflow.com/questions/2957165/servlet-vs-filter > > Struts has a filter gives greater control over the kind of dispatching > needed. You can then intercept processing not just web requests, but > f

Re: Benefits of using Filter as front controller

2012-08-13 Thread Paul Benedict
With all due respect, I think saying Struts 2 violates the Servlet Spec is a grand stretch of the imagination. http://stackoverflow.com/questions/2957165/servlet-vs-filter Struts has a filter gives greater control over the kind of dispatching needed. You can then intercept processing not just

RE: Benefits of using Filter as front controller

2012-08-13 Thread Martin Gainty
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: Mon, 13 Aug 2012 11:30:05 +0530 > Subject: Benefits of using Filter as front controller > From: umeshawas...@gma

Re: struts 2 - excepting starting filter

2012-03-01 Thread jay
Thanks for your help! I found a struts jar in my tomcat\lib folder Dave Newton gmail.com> writes: > > The error message says it all, you need to remove the struts/etc. libs you > put in the tomcat lib directory and deploy only the application's copies. > > Dave

Re: struts 2 - excepting starting filter

2012-03-01 Thread Dave Newton
> log4j-1.2.14.jar > > > Here is log information: > > Mar 1, 2012 9:12:46 PM > org.apache.catalina.core.StandardContext filterStart > SEVERE: Exception starting filter struts2 > Unable to load configuration. > - bean - jar:file:/C:/apache-tomcat-7.0.26/webapps/ > Ba

Re: struts 2 - excepting starting filter

2012-03-01 Thread jay
Here is log information: Mar 1, 2012 9:12:46 PM org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter struts2 Unable to load configuration. - bean - jar:file:/C:/apache-tomcat-7.0.26/webapps/ Basic_Struts2_Ant/WEB-INF/lib/struts2-core-2.3.1.2.jar! /struts

Re: struts 2 - excepting starting filter

2012-03-01 Thread Dave Newton
What's in the startup log? Have you turned on devMode? Logging at debug level? IMO doing this via Ant will end up being a pain. IIRC there was done other issue with this particular project, too, although I'd have to dig to try to recall. Dave (pardon brevity and typos, on cell) On Mar 1, 2012 10

struts 2 - excepting starting filter

2012-03-01 Thread jay
I downloaded from google code Basic_Struts2_Ant and modified web.xml, added struts.xml and index.jsp along with log4j stuff according to instructions on struts website for this example. The app does not work on tomcat 7.0 I built with ant and deployed on tomcat jars I am using commons-fileu

Re: struts 2 exception - SEVERE: Exception starting filter struts2

2012-03-01 Thread Dave Newton
We may need to know slightly more in order to help... Dave (pardon brevity and typos, on cell) On Mar 1, 2012 10:25 PM, "jay" wrote: > I have created simple struts 2 app with latest struts2 jar files. > > > > - > To unsubscribe

struts 2 exception - SEVERE: Exception starting filter struts2

2012-03-01 Thread jay
I have created simple struts 2 app with latest struts2 jar files. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: How do i redirect to another action in filter?

2011-09-16 Thread jlmagc
Is there any particular reason for not using an interceptor? Is the perfect place to do such processing. --Mensaje original-- De: mohan rao Para: user@struts.apache.org Responder a: Struts Users Mailing List Asunto: How do i redirect to another action in filter? Enviado: 16 Sep, 2011 11

How do i redirect to another action in filter?

2011-09-16 Thread mohan rao
Hi, As per my requirement i'm overriding prepareandexecture filter. I'm restricting the user from un accessable actions he might be book marked it before. I don't want to this in interceptor. I want to decide it on filter itself because i can reduce some processin

Re: SEVERE: Exception starting filter struts2

2011-04-26 Thread Dave Newton
On Apr 26, 2011 10:40 AM, "alex zaim" wrote: > Thank you, can you please show me what line indicates that the error is specific to the server but not struts? > Caused by: java.lang.ClassNotFoundException: org.hibernate.Session Dave

Re: SEVERE: Exception starting filter struts2

2011-04-26 Thread alex zaim
: Exception starting filter struts2 To: "Struts Users Mailing List" Date: Tuesday, April 26, 2011, 10:04 AM Just because ant or an ide sees a class doesn't mean the web server does when you're deploying or starting up. Almost certainly a classpath issue with the server, almost certai

Re: SEVERE: Exception starting filter struts2

2011-04-26 Thread Dave Newton
wrote: > Hello. I'm trying to make a simple hibernate setup, but i encounter an error when i start the server (Apache). > > Apr 26, 2011 3:20:18 PM org.apache.catalina.core.StandardContext filterStart > SEVERE: Exception starting filter struts2 > java.lang.NoClassDefFo

SEVERE: Exception starting filter struts2

2011-04-26 Thread alex zaim
Hello. I'm trying to make a simple hibernate setup, but i encounter an error when i start the server (Apache). Apr 26, 2011 3:20:18 PM org.apache.catalina.core.StandardContext filterStart SEVERE: Exception starting filter struts2 java.lang.NoClassDefFoundError: org/hibernate/Session  

Unable to cast as Filter exception

2010-06-28 Thread Kurtis Kopf
OS: Windows 7 Tomcat: 6.0.26 Struts 2.1.8.1 Java 1.6.0_20 Same software versions of all software on both my OS X machine and my Win7 machine, but when I try to start my Tomcat instance (in Eclipse) in Win7, I get the following exception: java.lang.ClassCastException: org.apache.struts2.dispatcher.

Re: Exception starting filter struts2 java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

2010-04-03 Thread sandeep kotha
Thank you Lenart, Its working after making the change you said. On 3 April 2010 14:05, Lukasz Lenart wrote: > 2010/4/2 sandeep kotha : > > In-spite of having *struts2-core-2.1.8.1.jar *under > > /WebContent/WEB-INF/lib/struts-2.1.8.1/ . im getting the below error . > > Is that /WEB-INF/lib/strut

Re: Exception starting filter struts2 java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

2010-04-03 Thread Lukasz Lenart
2010/4/2 sandeep kotha : > In-spite of having *struts2-core-2.1.8.1.jar *under > /WebContent/WEB-INF/lib/struts-2.1.8.1/ . im getting the below error . Is that /WEB-INF/lib/struts-2.1.8.1/ a directory ??? ^ If so, your jars cannot be found, move them to

Exception starting filter struts2 java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

2010-04-02 Thread sandeep kotha
In-spite of having *struts2-core-2.1.8.1.jar *under /WebContent/WEB-INF/lib/struts-2.1.8.1/ . im getting the below error . Exception starting filter struts2 *java.lang.ClassNotFoundException*: org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter * my web.xml* http

Re: Failed while destroying filter during shutdown

2010-02-18 Thread nani2ratna
t;> following two stack traces. >> The NoClassDefFoundError seems strange to me, because the two jars >> struts2-core.jar and backpost-util-concurrent.jar (for retrotranslation >> of struts2) contain the classes correctly. >> Maybe something related with weblogic? >

Re: struts 2 and servlets, how to exclude servlet url patterns from struts filter

2010-02-01 Thread Jake Vang
thanks, that addressed my problem directly. although, i liked the no action extension approach. is there a feature request to pass in init-params to the struts filter to exclude certain url patterns? On Sun, Jan 31, 2010 at 6:56 PM, Greg Lindholm wrote: > Check out the "Filter Mapping,

Re: struts 2 and servlets, how to exclude servlet url patterns from struts filter

2010-01-31 Thread Greg Lindholm
Check out the "Filter Mapping, default Action extensions, and Servlets" section on this wiki page: http://cwiki.apache.org/confluence/display/S2WIKI/Troubleshooting+guide+migrating+from+Struts+2.0.x+to+2.1.x#TroubleshootingguidemigratingfromStruts2.0.xto2.1.x-Fil

struts 2 and servlets, how to exclude servlet url patterns from struts filter

2010-01-31 Thread Jake Vang
i am using servlets (HttpServlet) and struts 2. my mapping in web.xml for the struts filter maps to the url pattern, /*. my servlet maps to something like this, /test. however, when i try to access my servlet, http://localhost:8080/myapp/test, i get the following message: "There is no A

RE: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ?

2009-11-12 Thread Fernandes Celinio
-Message d'origine- De : Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Envoyé : lundi 9 novembre 2009 20:53 À : Struts Users Mailing List Objet : Re: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ? 2009/11/9 Fernandes Celinio : > Any id

Re: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Lukasz Lenart
2009/11/9 Fernandes Celinio : > Any idea ? Thanks Dozen! First of all - remove all jars from server/default/lib - you shouldn't mix your jars between apps. As I remember only jdbc drivers should be shared. As you can see, you have duplicated ognl.jar and freemarker.jar. Put only those files in ap

RE: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Fernandes Celinio
p.com] Envoyé : lundi 9 novembre 2009 13:38 À : Struts Users Mailing List Objet : RE: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ? web.xml full content : http://www.w3.org/2001/XMLSchema-instance"; xmlns=

RE: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Fernandes Celinio
1ÿ557ÿ320 xwork-core-2.1.6.jar Any idea ? Thanks -Message d'origine- De : Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Envoyé : lundi 9 novembre 2009 13:29 À : Struts Users Mailing List Objet : Re: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5

Re: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Lukasz Lenart
2009/11/9 Fernandes Celinio : > It still does not work. It is still looking for that actionPackages > parameter. And if i add it, I get an error > related to the path. Strange, you have something messed up with a configuration. Could you list what kind of jars do you have in WEB-INF/lib folder? T

RE: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Fernandes Celinio
3:15 À : Struts Users Mailing List Objet : Re: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ? 2009/11/9 Fernandes Celinio : > Is that latest filter implementation part of the Struts 2.1.8 distribution ? Sorry, tiny mistake,

Re: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Lukasz Lenart
2009/11/9 Fernandes Celinio : > Is that latest filter implementation part of the Struts 2.1.8 distribution ? Sorry, tiny mistake, should be org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter Regards -- Lukasz http://www.lenart.org

RE: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Fernandes Celinio
java.lang.ClassNotFoundException: org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) Is that latest filter implementation part of the Struts 2.1.8

Re: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Lukasz Lenart
xception: No > mapping found for dependency [type=java.lang.String, name='actionPackages'] > in public void > org.apache.struts2.config.ClasspathPackageProvider.setActionPackages(java.lang.String). Used latest filter implementation: org.apache.struts2.dispatcher.filter.StrutsPr

RE: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Fernandes Celinio
? You also removed it from the web.xml file ? Thanks. -Message d'origine- De : Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Envoyé : lundi 9 novembre 2009 12:25 À : Struts Users Mailing List Objet : Re: [Struts 2.1.8] Filter init parameter "actionPackages" fails o

Re: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Lukasz Lenart
2009/11/9 Fernandes Celinio : > However I am using JBOSS 5.1.0 GA JDK 6, not Jboss 5.0.1 GA. I downloaded and checked also with 5.1 - no problems spotted > Anyays, I added a constant in struts.xml : >   /> You have to define it like this: Regards -- Lukasz http://www.lenart.org.pl/

RE: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ?

2009-11-09 Thread Fernandes Celinio
try deploying with the exploded EAR and WAR files, to resolve that Path problem. Any suggestion ? -Message d'origine- De : Lukasz Lenart [mailto:lukasz.len...@googlemail.com] Envoyé : lundi 9 novembre 2009 08:39 À : Struts Users Mailing List Objet : Re: [Struts 2.1.8] Filter

Re: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ?

2009-11-08 Thread Lukasz Lenart
2009/11/8 Celinio Fernandes : > I am facing the same problem as described in this JIRA issue : > http://issues.apache.org/struts/browse/WW-2948 I tested that with JBoss 5.0.1 GA and I used example application based on new struts2-archetype-convention archetype. I didn't spot any problems. > If i

Re: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ?

2009-11-08 Thread Celinio Fernandes
Can someone provide a patch for it asap ? http://jira.opensymphony.com/browse/XW-678 JBoss 5.1.0 GA users are stuck without it. Thanks in advance. From: Celinio Fernandes Subject: [Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ? To: &qu

[Struts 2.1.8] Filter init parameter "actionPackages" fails on JBoss5.1.0: workaround ?

2009-11-08 Thread Celinio Fernandes
Hi, this is my configuration : Struts 2.1.8 JBoss AS 5.1.0 GA jdk6 I am facing the same problem as described in this JIRA issue : http://issues.apache.org/struts/browse/WW-2948 I am stuck on this, can anyone suggest a work around ? This is the part in web.xml that causes the trouble :        

filter exception on deployment

2009-11-04 Thread larryreed
I'm having a persistent problem deploying my project to my tomcat 6 server in which the struts filter generates a null pointer exception. What confuses me is that I do not have this problem running the system under Eclipse, but only when I deploy it to my standalone Tomcat instance.

Re: strust2: filter-mapping best practice - /*

2009-11-03 Thread José Santos
erver/jsp container and not processed by Struts2 (it could even be moved out of the web server/jsp container). santos. On Mon, Nov 2, 2009 at 5:08 PM, James Cook wrote: > Yes, this is what I do also, I have an app with a webservice so needed > it to not get caught in the Struts filter. It

Re:strust2: filter-mapping best practice - /*

2009-11-02 Thread arne . johnsson
Hi I am using Struts 2 together with jfreechart and displaytag, to get this working I could not use /* , to get it working I have to modify the mapping to use responseOverrideFilter *.action responseOverrideFilter *.jsp Best regards Arne Johnsson

RE: strust2: filter-mapping best practice - /*

2009-11-02 Thread James Cook
Yes, this is what I do also, I have an app with a webservice so needed it to not get caught in the Struts filter. It is a shame however, as I would like to have kept the URLs neat without the action on the end. But as they say, don't get caught up in what the URL says. -Original Me

Re: strust2: filter-mapping best practice - /*

2009-11-02 Thread Greg Lindholm
I have a number of servlets in the same web app so to make it work I have restrict the filter mapping as follows. struts2 *.action struts2 /struts/* The first one catches all requests with .action extensions which is what I use. The second

strust2: filter-mapping best practice - /*

2009-11-01 Thread Graham Leggett
Hi all, I am trying to develop a struts2 app, and I am struggling to find a reference that explains the thinking and/or best practice behind the url-pattern in web.xml. Google uncovers hundreds of articles showing the url-pattern being specified as follows: struts2

Re: Prevent request filter invocation when struts action tag is invoked

2009-10-24 Thread Pancham
Here is my request filter code: public class MyFilter implements Filter { private FilterConfig filterConfig = null; public void init(FilterConfig filterConfig) throws ServletException { this.filterConfig = filterConfig; } public void destroy

Re: Prevent request filter invocation when struts action tag is invoked

2009-10-11 Thread Musachy Barroso
What REQUEST FILTER is this you are talking about? On Sat, Oct 10, 2009 at 10:15 PM, Pancham wrote: > request filter -- "Hey you! Would you help me to carry the stone?" Pink Floyd - To unsubscribe, e-mail:

Re: Prevent request filter invocation when struts action tag is invoked

2009-10-10 Thread Pancham
This does NOT work. When an action is invoked using "s:action" in JSP, even if dispatcher is set as below, the request filter is being invoked. Is there any work-around? Thanks. Musachy Barroso wrote: > > Use the "dispatcher" element in the "filter-mapp

Re: Prevent request filter invocation when struts action tag is invoked

2009-10-09 Thread Musachy Barroso
Use the "dispatcher" element in the "filter-mapping" element in web.xml, like: MyFilter /* REQUEST On Fri, Oct 9, 2009 at 10:16 AM, Pancham wrote: > > I have a request filter that needs to be executed only once during processing >

Prevent request filter invocation when struts action tag is invoked

2009-10-09 Thread Pancham
I have a request filter that needs to be executed only once during processing of a request. Unfortunately, whenever another action is included within the same request using "action" tag, my request filter is invoked. How can I prevent invocation of request filter when an action is incl

Re: Servlet filter as front controller

2009-10-08 Thread Struts Two
Dummy servlet should do it (as mentioned by WES), I know this in case of WAS where you are going to create plugin-xml file for your HTTP server. Without a dummy servlet mapped to *.action or *.do, Http server would fail to route any request that is mapped to *.action or *.do in the filter

Re: Servlet filter as front controller

2009-10-08 Thread Wes Wannemacher
10/7/09, Arthur Neves wrote: > >> From: Arthur Neves >> Subject: Re: Servlet filter as front controller >> To: "Struts Users Mailing List" >> Received: Wednesday, October 7, 2009, 11:57 PM >> With the filter struts2 can intercept >> all request. >&

Re: Servlet filter as front controller

2009-10-08 Thread Struts Two
appservers that follow the spec and you have to resort to all sort of hacks to get around it. --- On Wed, 10/7/09, Arthur Neves wrote: > From: Arthur Neves > Subject: Re: Servlet filter as front controller > To: "Struts Users Mailing List" > Received: Wednesday, October 7, 200

Re: Servlet filter as front controller

2009-10-07 Thread Arthur Neves
With the filter struts2 can intercept all request. I think it's more difficult to do thinks like, the namespace struct with a servlet,i dont have sure though. On Wed, Oct 7, 2009 at 2:58 PM, Unmesh joshi wrote: > > Hi,Struts2 uses servlet filter > org.

Servlet filter as front controller

2009-10-07 Thread Unmesh joshi
Hi,Struts2 uses servlet filter org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter as front controller, rather than having a servlet act as front controller. Is there any specific advantage of using servlet filter over servlet (as in struts 1.1)? Thanks,Unmesh

Re: Unable to upload files in Struts2 with Spring Security filter

2009-09-28 Thread zsundeep
My mistake ... I should have had Spring security filter before struts2 and not the other way. zsundeep wrote: > > I am able to upload files in struts2 (2.1.6) only when I remove the spring > security filter in web.xml. When I use the spring security filter, I get a > null ob

Unable to upload files with in Struts2 with Spring Security filter

2009-09-28 Thread zsundeep
I am able to upload files in struts2 (2.1.6) only when I remove the spring security filter in web.xml. When I use the spring security filter, I get a null object in File inside action class. That is the line "testFile.length()" in sample code provided below, throws null-pointer except

Re: struts2 filter-mapping url-pattern

2009-09-02 Thread Rusty Wright
rom: Peter Phillips Reply-to: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: struts2 filter-mapping url-pattern Date: Wed, 2 Sep 2009 06:57:02 +0100 Using *.action and /struts/* works fine for our projects. I wanted to do that since I wanted to map *.do to a str

Re: struts2 filter-mapping url-pattern

2009-09-02 Thread Wes Wannemacher
>> From: Peter Phillips >> Reply-to: "Struts Users Mailing List" >> To: Struts Users Mailing List >> Subject: Re: struts2 filter-mapping url-pattern >> Date: Wed, 2 Sep 2009 06:57:02 +0100 >> >> Using *.action and /struts/* works fine for our pr

Re: struts2 filter-mapping url-pattern

2009-09-02 Thread Dave Newton
Rusty Wright wrote: This struts newbie would like to know, what's the /struts/* mapping for? The static files S2 serves (CSS, JS). Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-

Re: struts2 filter-mapping url-pattern

2009-09-02 Thread Rusty Wright
ng List Subject: Re: struts2 filter-mapping url-pattern Date: Wed, 2 Sep 2009 06:57:02 +0100 Using *.action and /struts/* works fine for our projects. I wanted to do that since I wanted to map *.do to a struts 1 filter. Peter. 2009/9/2 Wes Wannemacher : One thing I've been itching to try

Re: struts2 filter-mapping url-pattern

2009-09-01 Thread Rajeev Sharma
*.action works fine for me too. -Original Message- From: Peter Phillips Reply-to: "Struts Users Mailing List" To: Struts Users Mailing List Subject: Re: struts2 filter-mapping url-pattern Date: Wed, 2 Sep 2009 06:57:02 +0100 Using *.action and /struts/* works fine for our pr

Re: struts2 filter-mapping url-pattern

2009-09-01 Thread Peter Phillips
Using *.action and /struts/* works fine for our projects. I wanted to do that since I wanted to map *.do to a struts 1 filter. Peter. 2009/9/2 Wes Wannemacher : > One thing I've been itching to try is to map to *.action and /struts/* > > Those are pretty much the two things you

Re: struts2 filter-mapping url-pattern

2009-09-01 Thread Wes Wannemacher
;re having a problem, it might be more interesting to address the problem than to try to get rid of the filter. -Wes On Tuesday 01 September 2009 07:30:59 pm Arthur Neves wrote: > I think It' s impossible to do, because all of request's must pass to the > filter! If I'

Re: struts2 filter-mapping url-pattern

2009-09-01 Thread Arthur Neves
I think It' s impossible to do, because all of request's must pass to the filter! If I'd been wrong, please, somebody correct me! 2009/9/1 Rusty Wright > In the web.xml why is the filter-mapping url-pattern /* ? Would it work to > change it to *.action instead? > > F

struts2 filter-mapping url-pattern

2009-09-01 Thread Rusty Wright
In the web.xml why is the filter-mapping url-pattern /* ? Would it work to change it to *.action instead? For some reason, I can't get jetty to serve my welcome-file index.jsp file and if I change the url-pattern to *.action then it starts wo

Re: struts 2 -- The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter.

2009-06-22 Thread Dave Newton
laredotornado wrote: I do want to validate requests submitted to "pcFlow.do" (the action). I thought interceptors were the way to do it. My interceptor class is called "AccountsInterceptor". What is the proper way? All the tutorials suggest you have to create a custom interceptor stack. See

Re: struts 2 -- The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter.

2009-06-22 Thread laredotornado
i, >> >> I'm trying to migrate my app from struts 1 to struts 2.  On a particular >> JSP >> page, I get this error >> >> The page generated an error: Exception: >> The Struts dispatcher cannot be found. This is usually caused by using >> St

Re: struts 2 -- The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter.

2009-06-22 Thread Wes Wannemacher
gt; > Hi, > > I'm trying to migrate my app from struts 1 to struts 2.  On a particular JSP > page, I get this error > > The page generated an error: Exception: > The Struts dispatcher cannot be found. This is usually caused by using > Struts tags without the associated fil

struts 2 -- The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter.

2009-06-22 Thread laredotornado
Hi, I'm trying to migrate my app from struts 1 to struts 2. On a particular JSP page, I get this error The page generated an error: Exception: The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable whe

Re: Block accessing in some path with filter.

2009-05-21 Thread Andy Sykes
Read the section on the config file elements in struts.xml on the Struts2 docs site. Also read the Interceptors guide[1]. You have to specify the interceptor stack on the action. You can use the element to specify what stack to use by default. And what you've defined is not an intercepto

Re: Block accessing in some path with filter.

2009-05-21 Thread Stefano Tranquillini
Big problem folks. i already have an interceptor form the ejb. so i need to use both of these interceptors. i've to update the DEFAULT PACKAGE in this way: i can't simply a

  1   2   3   4   5   >