Struts 2 instance creation in memorey

2009-03-07 Thread Sumit Agarwal
Well Nice to meet all of forum member. Well i have some doubt regarding Struts2. 1.I have read action instance is created for each request. Suppose we have one struts2 application.we are given 2 request for this application from different system at a time.As per Struts2 two Action instance will

Re: Struts 2 instance creation in memorey

2009-03-07 Thread Dave Newton
Sumit Agarwal wrote: we are given 2 request for this application from different system at a time.As per Struts2 two Action instance will be created right? Correct: unlike servlets or Struts 1 actions, Struts 2 actions are created per-request. I wanna know how many value stack instance

Re: Struts 2 instance creation in memorey

2009-03-07 Thread Sumit Agarwal
Thanks Mr Dave for your good explanation.I agreed by your explanation. Well i wanna ask you one more question. In Struts1 we were having one Front servlet name as ActionServlet but i have noticed in Struts2 we are having DispatcherFilter instead of Servlet.is there any advantage using filter

Re: Struts 2 instance creation in memorey

2009-03-07 Thread Dave Newton
Sumit Agarwal wrote: in Struts2 we are having DispatcherFilter instead of Servlet.is there any advantage using filter instead of Servlet? I don't know how much of an advantage there is. This topic has been brought up several times; searching the Struts or WebWork archives might provide some

RE: Struts 2 instance creation in memorey

2009-03-07 Thread Martin Gainty
filters to modify headers, block requests and or setup a filter chain as explained in the doc servlets for 'regular request processing and response generation' A filter is an object than perform filtering tasks on either the request to a resource (a servlet or static content), or on the

Re: Error autowiring an interface

2009-03-07 Thread dusty
You can't do what you are doing exactly. When you are using the free conversion, Struts2 needs to be able to construct your object with a default constructor and that is not going to happen with an interface. So if you want to dynamically determine the implementation of that Object at runtime

Re: Unit Test with Struts2 + Spring + Maven

2009-03-07 Thread dusty
mvn -Dtest=MyTestClassName But don't let that think you can get Maven answers here! ;-) Nils-Helge Garli wrote: As both Martin and Dave pointed out, this is a maven related question. Please check here: http://maven.apache.org/users/getting-help.html Nils-H On Fri, Mar 6, 2009 at

struts-2-blank which issue?

2009-03-07 Thread Michael Finney
Hi, For the struts-2-blank archetype (http://struts.apache.org/2.x/docs/struts-2-blank-archetype.html ), is the best (most relevant) issue to Watch https://issues.apache.org/struts/browse/WW-2911 ? Thanks. -- Michael Finney - Always Striving To Serve You Better Every Day fin...@acm.org