Re: struts 2 portlet interceptor issue

2009-08-03 Thread Nils-Helge Garli Hegvik
>                 >                         name="sessionScopeHandler"> >                        /jsp/test/test.jsp >                 With this configuration, your sessionScopeHandler will be the only interceptor running for this action. You either need to include the portletDefaultStack or set up

Re: Struts 2 performance

2009-08-03 Thread Musachy Barroso
sort of like a Lamborghini vs smart car :) On Mon, Aug 3, 2009 at 6:43 PM, Xyzr wrote: > > Did you try  http://en.wikipedia.org/wiki/VisualVM Java VisualVM ? How does > it compare to JRockit profiler? > > Musachy Barroso wrote: >> >> I would suggest you to use the profiler that comes with >> JRock

Re: Struts 2 performance

2009-08-03 Thread Xyzr
Did you try http://en.wikipedia.org/wiki/VisualVM Java VisualVM ? How does it compare to JRockit profiler? Musachy Barroso wrote: > > I would suggest you to use the profiler that comes with > JRockit: > > http://www.oracle.com/technology/products/jrockit/index.html > -- View this message in

Re: [S2] Access a SiteMesh Object in a Struts tag

2009-08-03 Thread Xyzr
Thanx a lot. This works! Grish wrote: > > > value="%{#attr.myPage.getProperty('meta.currentNav')}" /> > -- View this message in context: http://www.nabble.com/-S2--Access-a-SiteMesh-Object-in-a-Struts-tag-tp13272172p24800510.html Sent from the Struts - User mailing list archive at Nabble.c

Re: [S2] Using Sitemesh properties within Struts 2 tags

2009-08-03 Thread Xyzr
The solution is here: http://www.nabble.com/-S2--Access-a-SiteMesh-Object-in-a-Struts-tag-td13272172.html#a13336246 solution . Christian Priebe wrote: > > Hey, > > I want to use a sitemesh property obtained by the tag > within a Struts2 tag to > make a special include dynamically controlla

struts 2 portlet interceptor issue

2009-08-03 Thread Tracy12
Hi, I wrote a interceptor as follows but looks like variables/parameters in the action class are not populated as part of the form submission. Which means introspection does not seem to work it gives null values, I only defined the interceptor not modified the default stack, pls advice how to

dojo form submit and json

2009-08-03 Thread Mitch Claborn
I have a working page that using the tag to submit a form and put the output as html into a div. I'd like to "upgrade" that so that the action can return a JSON object and then take some more specific responses in the page depending on the contents of the JSON. Need some pointers on how to get

Re: Documentation

2009-08-03 Thread Greg Lindholm
Highly recommend "Struts 2 in Action" from manning. On Thu, Jul 30, 2009 at 6:29 PM, Robert Swindells wrote: > > Is there any documentation simpler than the project tutorials ? > > I'm looking for something that helps when the steps described in e.g. >

Re: CXF is not working with convention plugin

2009-08-03 Thread Greg Lindholm
I haven't used conventions plugin but I have had issues with running struts2 apps and servlets together. With the default configuration the struts2 filter was trying to map my servlet calls to struts actions. To make them play nice together I explicitly configured all action to use an '.action' ext

Re: Default-class-ref for Convention plugin?

2009-08-03 Thread Musachy Barroso
that is not supported in the convention plugin, the solution would be to add an annotation at the package level for it, but the relation between java packages and struts packagers is rather loose, so we have been hesitant to add more annotations to it(there are a couple already). That being said,

Re: How can I download Struts 2.1.7?

2009-08-03 Thread Wes Wannemacher
On Mon, Aug 3, 2009 at 6:03 AM, cmartin81 wrote: > > Thanks. > Do you know when it will be available in the maven repo? > > Due to a small screwup, by one of the struts devs, the 2.1.7 build didn't pass the GA vote. As of right now, the 2.1.6 release is the latest general availability release. Alt

Re: ActionContext.getContext().getSession return null when I test Struts2 action by JUnit.

2009-08-03 Thread Juanjo Cuadrado
yes, but I prefer not to use SessionAware because (I think) that this complicates testing 2009/8/3 Nils-Helge Garli Hegvik > If I have to, then I just do new ActionContext() and > ActionContext.setContext(). But then again, if I did, I would consider > refactoring it into using SessionAware if

Re: ActionContext.getContext().getSession return null when I test Struts2 action by JUnit.

2009-08-03 Thread Nils-Helge Garli Hegvik
If I have to, then I just do new ActionContext() and ActionContext.setContext(). But then again, if I did, I would consider refactoring it into using SessionAware if it was possible, since it's a lot more test friendly. Nils-H On Mon, Aug 3, 2009 at 1:37 PM, Juanjo Cuadrado wrote: > Uummm... I ha

Re: ActionContext.getContext().getSession return null when I test Struts2 action by JUnit.

2009-08-03 Thread Juanjo Cuadrado
Uummm... I haven't looked at the source, but I looked the documentation... And I could see that the getContext of ActionContext never returns null http://struts.apache.org/2.1.6/struts2-core/apidocs/com/opensymphony/xwork2/ActionContext.html#getContext() Well, how have I to do the test now? How h

Re: ActionContext.getContext().getSession return null when I test Struts2 action by JUnit.

2009-08-03 Thread Nils-Helge Garli Hegvik
Well, if that was a question, then I didn't see it I would certainly prefer implementing SessionAware, if it's an action you're testing. But if you really need to set up the ActionContext you have to create one first and the "activate" it. If you look at the xwork source code for 2.0.5 you can

Re: ActionContext.getContext().getSession return null when I test Struts2 action by JUnit.

2009-08-03 Thread Juanjo Cuadrado
And... what is the problem??? I have the same problem with junit test and actions. No matter how long ago the comment was written. He might have found out already, but I not and he not has written the solution here. But I wan to say a thing... When you does "ActionContext.getContext().setSession(p

Re: ActionContext.getContext().getSession return null when I test Struts2 action by JUnit.

2009-08-03 Thread Nils-Helge Garli Hegvik
He might have found out already, considering this was posted 1,5 years ago... Nils-H On Mon, Aug 3, 2009 at 12:44 PM, Juanjo Cuadrado wrote: > Hi, > > That is wrong... if you do this, throws a NullPointerException... > > > 2008/2/1 Joey > >> I found it . like this. >> >>        Map param = new H

Re: ActionContext.getContext().getSession return null when I test Struts2 action by JUnit.

2009-08-03 Thread Juanjo Cuadrado
Hi, That is wrong... if you do this, throws a NullPointerException... 2008/2/1 Joey > I found it . like this. > >Map param = new HashMap(); >ActionContext.getContext().setSession(param); > > Thanks for your help > > On Feb 1, 2008 4:53 PM, Joey wrote: > > Thanks, I just check

Re: How can I download Struts 2.1.7?

2009-08-03 Thread cmartin81
Thanks. Do you know when it will be available in the maven repo? cmartin81 wrote: > > I’m trying to download Struts 2.1.7 from http://struts.apache.org/2.x/, > but the only version which is available is 2.1.6 (the downloading button > says struts 2.1.7)? > > When will Struts 2.1.7 be available

Re: How can I download Struts 2.1.7?

2009-08-03 Thread Peter Phillips
I downloaded it from http://people.apache.org/builds/struts/2.1.7 2009/8/3 cmartin81 : > > I’m trying to download Struts 2.1.7 from http://struts.apache.org/2.x/, but > the only version which is available is 2.1.6 (the downloading button says > struts 2.1.7)? > > When will Struts 2.1.7 be availabl

How can I download Struts 2.1.7?

2009-08-03 Thread cmartin81
I’m trying to download Struts 2.1.7 from http://struts.apache.org/2.x/, but the only version which is available is 2.1.6 (the downloading button says struts 2.1.7)? When will Struts 2.1.7 be available in maven repo? -- View this message in context: http://www.nabble.com/How-can-I-download-Stru