Re: bean tag scope attribute in spring appcontext.xml
On 26.01.2010 18:19, nani2ratna wrote: Hi Guys, I came to know that there is a scope attribute that we need to consider if we manage all our actions through spring. default it is singleton. Means it will create only one instance. If we change scope = prototype, it will create as many instances. scope = request, it will create for every request, scope=session means it will create one instance for every user sesson. I think we need to change it to scope=prototype. Do we need to do this only for action classes or we need to do for dao's and service classes which we call them from action classes. Can anybody please explain Usually DAOs and other service layer beans should be defined with singleton scope, only action beans should be with prototype. I'm not sure how struts with action beans declared with request scope would behave in non-trivial situations. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Where to put bean.xml (spring configuration)?
On 21.01.2010 16:40, Emi Lu wrote: Good morning, Could someone tell me where to put bean.xml (spring configuration)? It is not shown in the following document http://www.vaannila.com/spring/spring-ioc-1.html Thanks a lot! The proper place for spring beans declaration in webapp is /WEB-INF/aplicationContext.xml but this article doesn't mention how to load this file, so better for you to read spring documentation. At least that part on integration with struts. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Is there a way to create or get a ValueStack outside of Struts 2?
On 15.01.2010 21:25, Néstor Boscán wrote: Hi I wish to access or create the ValueStack from outside Struts 2 so I can apply the expression language and conversion properties of OGNL to create some reportes. Is this possible? ValueStack is part of XWork, so it's possible. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Mapping request to action object without actually defining action
Hi, everybody! I want to write a portlet that would take input from another portlet (struts2-portlet) and return pdf document. Binary data is available only with jsr286 portlet 2.0 and struts2-portlet2 is experimental in sandbox. All I need is to is to map HttpRequest object to properties of an action object, I don't need the rest of struts framework in this particular problem. Could anyone tell me how to do that? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)
Robert Graf-Waczenski pisze: Hi, [...] Since we (obviously) don't want to rename the myriads of getters/setters, i'd like to know if there is a way around this, maybe with a custom interceptor somewhere? Hi If the only problem is the number of methods to be changed, maybe you should consider using a refactoring tool. -you do that only once -your code is kosher -you don't get performance overhead introduced by another interceptor Regards Rafał - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)
On Thu, Nov 26, 2009 at 4:01 PM, Robert Graf-Waczenski r...@lsoft.com wrote: Hi, we do of course use a refactoring tool, but we are talking about a huge amount of methods. I'm not aware of a refactoring tool that would allow me to rename *all* methods in *one* step. jEdit should be powerful enough to open each java file in project directory, find all strings matching regex: ([sg]et)([a-z])Property\( replace it with: $1\u$2Property\( This should work for both getters and setters and make first character upper case, assuming you have get[1character]Property() pattern. All this in one step. -- Pozdrawiam / Best Regards Rafal Krupinski http://www.linkedin.com/in/krupinskir - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: S2 2.1.8.1: Need custom decapitalization (or leniency similar to 2.1.6)
On Thu, Nov 26, 2009 at 4:41 PM, Robert Graf-Waczenski r...@lsoft.com wrote: approach, which is tedious work because [...] i have to go through each applicable class and refactor-rename each method. Please don't try to make us feel guilty :-) You'll get paid for this, we're not. In previous post I stated clearly: If the only problem is the number of methods to be changed not If you can change only some classes. -- Pozdrawiam / Best Regards Rafal Krupinski http://www.linkedin.com/in/krupinskir - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
[s2] tag for add another item
Hi all Does struts2 support dynamically expanding lists of items? I mean just like in gmail attach another file -- Pozdrawiam / Best Regards Rafal Krupinski - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: Re : datetimepicker ....unable to get it working :(
François Rouxel pisze: I had many problems with dateTimePicker when I was using struts 2.0.xxx From the moment I used struts 2.1.xxx, everything has worked perfectly well. I hope I have helped... I couldn't make datetimepicker working in struts 2.1 but it works in latest 2.0. And I'm using tiles and css_xhtml theme :-) - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org