Re: where to set 'struts.multipart.parser' property in struts2?

2010-01-13 Thread Lukasz Lenart
2010/1/13 Stephen Ince : >     name="jakartax" > class="org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequestx" > scope="default"/> >     Is that class exists org.apache.struts2.dispatcher.multipart.JakartaMultiPartRequestx ? Regards -- Lukasz Kapituła Javarsovia 2010 http://javarsovi

write a test which tests an interceptor

2010-01-13 Thread Michael Finney
Hi, I wish to write a test which tests an interceptor. The goal is writing an integration test which hits the struts2 2.1.6 application and mocks out the database DAO (data access object). I'm using JUnit. The interceptor changes the HTTP Response headers. I am testing that and indirectly the stru

Re: Can I implement interface of another project in a struts 2 project?

2010-01-13 Thread Gabriel Belingueres
the build path is considered only by the java compiler, not by your executing application server. The WEB-INF/lib is the folder the web apps put required run time dependencies, so that the app server can found them. 2010/1/13 fireapple : > > It solved the problem. Thanks! > > I wonder what's the d

Re: Distinguish between request parameters and struts.xml parameters in Struts2

2010-01-13 Thread Musachy Barroso
well, I meant built in :) On Wed, Jan 13, 2010 at 2:17 PM, Dale Newfield wrote: > Musachy Barroso wrote: >> >> No way to distinguish, that I know off. > > Perhaps simply inserting a custom interceptor between params and > actionMappingParams/staticParams so you can track which are set before the

Re: Distinguish between request parameters and struts.xml parameters in Struts2

2010-01-13 Thread Dale Newfield
Musachy Barroso wrote: No way to distinguish, that I know off. Perhaps simply inserting a custom interceptor between params and actionMappingParams/staticParams so you can track which are set before the custom interceptor runs and which are set afterwards? -Dale ---

Re: Distinguish between request parameters and struts.xml parameters in Struts2

2010-01-13 Thread Musachy Barroso
No way to distinguish, that I know off. But the static params interceptor has a setting to not merge them. On Mon, Jan 11, 2010 at 7:54 PM, Jose Luis Martinez Avial wrote: > Hi all, >  I'm trying to distinguish the parameters that come from the request > from those that come from the params defin

Re: Can I implement interface of another project in a struts 2 project?

2010-01-13 Thread fireapple
It solved the problem. Thanks! I wonder what's the difference between putting jar in build path and putting jar in WEB-INF/lib. Appreciate Gabriel Belingueres-2 wrote: > > Seems it is not S2 related. This exception is raised when some > dependency is not found by the JVM. Note that in addition

Re: where to set 'struts.multipart.parser' property in struts2?

2010-01-13 Thread Stephen Ince
Lukasz, Thx for your replay. I defined the jakartax bean but it is still not working. Does anyone know how I can further troubleshoot this? I can not set 'struts.multipart.saveDir' setting either. It's sees my application include but for some reason the "struts.multipart.parser" is not being se

Distinguish between request parameters and struts.xml parameters in Struts2

2010-01-13 Thread Jose Luis Martinez Avial
Hi all, I'm trying to distinguish the parameters that come from the request from those that come from the params defined in the struts.xml. For example, I have the following mapping in my struts.xml my resource /example/Login.jsp Menu The

Struts2: Multiple parameters with same name in Action definition

2010-01-13 Thread Jose Luis Martinez Avial
Hi all, I'm trying to define an action that can be reused in multiple definitions. They will receive a variable number of parameters from the mapping definition value1 value2 value3 value4 /example/Login.jsp Menu

set-property in action-mapping in Struts 2

2010-01-13 Thread Jose Luis Martinez Avial
Hi, In Struts 1 I was able to extend the class ActionMapping and declare additional properties for a mapping in the struts-config.xml by creating the method setPublica in the class MyActionMapping. Is it possible to do something similar in Struts 2? I've seen that there is a param eleme

Re: [S2] Where do you place Initialization and Startup logic?

2010-01-13 Thread Greg Lindholm
Thanks, that will work. On Wed, Jan 13, 2010 at 11:21 AM, Lukasz Lenart wrote: > 2010/1/13 Greg Lindholm : >> How do you do this? > > ContextListener? > http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContextListener.html > > > Regards > -- > Lukasz > Kapituła Javarsovia 2010 > http://

Re: [S2] Where do you place Initialization and Startup logic?

2010-01-13 Thread Lukasz Lenart
2010/1/13 Greg Lindholm : > How do you do this? ContextListener? http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContextListener.html Regards -- Lukasz Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe,

[S2] Where do you place Initialization and Startup logic?

2010-01-13 Thread Greg Lindholm
I'm working on a new Struts 2 application and wondering where to put startup and initialization logic? In previous projects I've always had other servlets that were part of the applications and would put the logic in the Servlet init() method but I don't have a servlet this time and there is no "s

Re: params not working before prepare after migration 2.1.6 to 2.1.8.1

2010-01-13 Thread David Canos
solved I use my own paramsPrepareParamsStack so I have to set in every package the interceptor although I did set up in the base package. ... might it be a bug? do i issue it? 2010/1/13 David Canos > Hi folks > after migrating I cannot use paramsPrepareParams interceptorStack because >

params not working before prepare after migration 2.1.6 to 2.1.8.1

2010-01-13 Thread David Canos
Hi folks after migrating I cannot use paramsPrepareParams interceptorStack because params are not being called. I have checked setting the log to debug log4j.logger.com.opensymphony.xwork2.interceptor=DEBUG, stdout having no message so any idea? everything would be welcome thank u :) -- David

Re: [S2] Does global exception mapping work with interceptor?

2010-01-13 Thread mailtolouis2020-struts
Thanks Gabriel, it is working now! From: Gabriel Belingueres To: Struts Users Mailing List Sent: Tue, January 12, 2010 7:06:59 PM Subject: Re: [S2] Does global exception mapping work with interceptor? Is your custom interceptor _before_ the exception intercept