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-Struts-2.1.7--tp24787434p24787434.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 christ...@topmartin.com:

 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-Struts-2.1.7--tp24787434p24787434.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 in maven repo?
 
 

-- 
View this message in context: 
http://www.nabble.com/How-can-I-download-Struts-2.1.7--tp24787434p24788161.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 joey.informat...@gmail.com

 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 joey.informat...@gmail.com wrote:
  Thanks,  I just checked testing class in Struts2 package,  but I am a
  newbie for Struts2. I cannot understant Struts2 very well, so if you
  don't mind, pls tell me which testing class I can learn from.
 
  Thanks again
 
 
  On Feb 1, 2008 4:31 PM, Nils-Helge Garli Hegvik nil...@gmail.com
 wrote:
   You need to initialize the ActionContext in your unit tests. Take a
   look at the Struts 2 tests how it is solved there.
  
   Nils-H
  
  
   On Feb 1, 2008 9:28 AM, Joey Watson joey.informat...@gmail.com
 wrote:
Hi everybody.
   
I want to test a action class (Struts2) by JUnit. and then method in
this action need a value in session, then when I run my JUnit test
class,  ActionContext.getContext().getSession return null. (not
ActionContext.getContext().getSession().get(XXX) return null).
this action class is working fine in browser.
   
   
thanks for any help
   
Joey
   
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
   
   
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
  
 

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




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 Cuadradojjcuadr...@gmail.com wrote:
 Hi,

 That is wrong... if you do this, throws a NullPointerException...


 2008/2/1 Joey joey.informat...@gmail.com

 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 joey.informat...@gmail.com wrote:
  Thanks,  I just checked testing class in Struts2 package,  but I am a
  newbie for Struts2. I cannot understant Struts2 very well, so if you
  don't mind, pls tell me which testing class I can learn from.
 
  Thanks again
 
 
  On Feb 1, 2008 4:31 PM, Nils-Helge Garli Hegvik nil...@gmail.com
 wrote:
   You need to initialize the ActionContext in your unit tests. Take a
   look at the Struts 2 tests how it is solved there.
  
   Nils-H
  
  
   On Feb 1, 2008 9:28 AM, Joey Watson joey.informat...@gmail.com
 wrote:
Hi everybody.
   
I want to test a action class (Struts2) by JUnit. and then method in
this action need a value in session, then when I run my JUnit test
class,  ActionContext.getContext().getSession return null. (not
ActionContext.getContext().getSession().get(XXX) return null).
this action class is working fine in browser.
   
   
thanks for any help
   
Joey
   
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
   
   
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
  
 

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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(param) with xwork-2.1.2, you get a
NullPointerException, but if you do it with xwork-2.0.5, it works.

If any know what is happening, I would be extremely grateful.


2009/8/3 Nils-Helge Garli Hegvik nil...@gmail.com

 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 Cuadradojjcuadr...@gmail.com
 wrote:
  Hi,
 
  That is wrong... if you do this, throws a NullPointerException...
 
 
  2008/2/1 Joey joey.informat...@gmail.com
 
  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 joey.informat...@gmail.com wrote:
   Thanks,  I just checked testing class in Struts2 package,  but I am a
   newbie for Struts2. I cannot understant Struts2 very well, so if you
   don't mind, pls tell me which testing class I can learn from.
  
   Thanks again
  
  
   On Feb 1, 2008 4:31 PM, Nils-Helge Garli Hegvik nil...@gmail.com
  wrote:
You need to initialize the ActionContext in your unit tests. Take a
look at the Struts 2 tests how it is solved there.
   
Nils-H
   
   
On Feb 1, 2008 9:28 AM, Joey Watson joey.informat...@gmail.com
  wrote:
 Hi everybody.

 I want to test a action class (Struts2) by JUnit. and then method
 in
 this action need a value in session, then when I run my JUnit test
 class,  ActionContext.getContext().getSession return null. (not
 ActionContext.getContext().getSession().get(XXX) return null).
 this action class is working fine in browser.


 thanks for any help

 Joey


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


   
   
 -
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
   
   
  
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




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 see that the ActionContext is
lazily created for you when getContext() is invoked, whereas in 2.1.2,
the context is no longer being created if it does not exist.

Nils-H

On Mon, Aug 3, 2009 at 1:06 PM, Juanjo Cuadradojjcuadr...@gmail.com wrote:
 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(param) with xwork-2.1.2, you get a
 NullPointerException, but if you do it with xwork-2.0.5, it works.

 If any know what is happening, I would be extremely grateful.


 2009/8/3 Nils-Helge Garli Hegvik nil...@gmail.com

 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 Cuadradojjcuadr...@gmail.com
 wrote:
  Hi,
 
  That is wrong... if you do this, throws a NullPointerException...
 
 
  2008/2/1 Joey joey.informat...@gmail.com
 
  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 joey.informat...@gmail.com wrote:
   Thanks,  I just checked testing class in Struts2 package,  but I am a
   newbie for Struts2. I cannot understant Struts2 very well, so if you
   don't mind, pls tell me which testing class I can learn from.
  
   Thanks again
  
  
   On Feb 1, 2008 4:31 PM, Nils-Helge Garli Hegvik nil...@gmail.com
  wrote:
You need to initialize the ActionContext in your unit tests. Take a
look at the Struts 2 tests how it is solved there.
   
Nils-H
   
   
On Feb 1, 2008 9:28 AM, Joey Watson joey.informat...@gmail.com
  wrote:
 Hi everybody.

 I want to test a action class (Struts2) by JUnit. and then method
 in
 this action need a value in session, then when I run my JUnit test
 class,  ActionContext.getContext().getSession return null. (not
 ActionContext.getContext().getSession().get(XXX) return null).
 this action class is working fine in browser.


 thanks for any help

 Joey


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


   
   
 -
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
   
   
  
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 have I to create the ActionContext?
is it a bug?


2009/8/3 Nils-Helge Garli Hegvik nil...@gmail.com

 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 see that the ActionContext is
 lazily created for you when getContext() is invoked, whereas in 2.1.2,
 the context is no longer being created if it does not exist.

 Nils-H

 On Mon, Aug 3, 2009 at 1:06 PM, Juanjo Cuadradojjcuadr...@gmail.com
 wrote:
  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(param) with xwork-2.1.2, you get
 a
  NullPointerException, but if you do it with xwork-2.0.5, it works.
 
  If any know what is happening, I would be extremely grateful.
 
 
  2009/8/3 Nils-Helge Garli Hegvik nil...@gmail.com
 
  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 Cuadradojjcuadr...@gmail.com
  wrote:
   Hi,
  
   That is wrong... if you do this, throws a NullPointerException...
  
  
   2008/2/1 Joey joey.informat...@gmail.com
  
   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 joey.informat...@gmail.com wrote:
Thanks,  I just checked testing class in Struts2 package,  but I am
 a
newbie for Struts2. I cannot understant Struts2 very well, so if
 you
don't mind, pls tell me which testing class I can learn from.
   
Thanks again
   
   
On Feb 1, 2008 4:31 PM, Nils-Helge Garli Hegvik nil...@gmail.com
   wrote:
 You need to initialize the ActionContext in your unit tests. Take
 a
 look at the Struts 2 tests how it is solved there.

 Nils-H


 On Feb 1, 2008 9:28 AM, Joey Watson joey.informat...@gmail.com
   wrote:
  Hi everybody.
 
  I want to test a action class (Struts2) by JUnit. and then
 method
  in
  this action need a value in session, then when I run my JUnit
 test
  class,  ActionContext.getContext().getSession return null. (not
  ActionContext.getContext().getSession().get(XXX) return
 null).
  this action class is working fine in browser.
 
 
  thanks for any help
 
  Joey
 
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 


  -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


   
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
  
  
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




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 Cuadradojjcuadr...@gmail.com wrote:
 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 have I to create the ActionContext?
 is it a bug?


 2009/8/3 Nils-Helge Garli Hegvik nil...@gmail.com

 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 see that the ActionContext is
 lazily created for you when getContext() is invoked, whereas in 2.1.2,
 the context is no longer being created if it does not exist.

 Nils-H

 On Mon, Aug 3, 2009 at 1:06 PM, Juanjo Cuadradojjcuadr...@gmail.com
 wrote:
  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(param) with xwork-2.1.2, you get
 a
  NullPointerException, but if you do it with xwork-2.0.5, it works.
 
  If any know what is happening, I would be extremely grateful.
 
 
  2009/8/3 Nils-Helge Garli Hegvik nil...@gmail.com
 
  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 Cuadradojjcuadr...@gmail.com
  wrote:
   Hi,
  
   That is wrong... if you do this, throws a NullPointerException...
  
  
   2008/2/1 Joey joey.informat...@gmail.com
  
   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 joey.informat...@gmail.com wrote:
Thanks,  I just checked testing class in Struts2 package,  but I am
 a
newbie for Struts2. I cannot understant Struts2 very well, so if
 you
don't mind, pls tell me which testing class I can learn from.
   
Thanks again
   
   
On Feb 1, 2008 4:31 PM, Nils-Helge Garli Hegvik nil...@gmail.com
   wrote:
 You need to initialize the ActionContext in your unit tests. Take
 a
 look at the Struts 2 tests how it is solved there.

 Nils-H


 On Feb 1, 2008 9:28 AM, Joey Watson joey.informat...@gmail.com
   wrote:
  Hi everybody.
 
  I want to test a action class (Struts2) by JUnit. and then
 method
  in
  this action need a value in session, then when I run my JUnit
 test
  class,  ActionContext.getContext().getSession return null. (not
  ActionContext.getContext().getSession().get(XXX) return
 null).
  this action class is working fine in browser.
 
 
  thanks for any help
 
  Joey
 
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 


  -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org


   
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
  
  
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 nil...@gmail.com

 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 Cuadradojjcuadr...@gmail.com
 wrote:
  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()http://struts.apache.org/2.1.6/struts2-core/apidocs/com/opensymphony/xwork2/ActionContext.html#getContext%28%29
 
  Well, how have I to do the test now? How have I to create the
 ActionContext?
  is it a bug?
 
 
  2009/8/3 Nils-Helge Garli Hegvik nil...@gmail.com
 
  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 see that the ActionContext is
  lazily created for you when getContext() is invoked, whereas in 2.1.2,
  the context is no longer being created if it does not exist.
 
  Nils-H
 
  On Mon, Aug 3, 2009 at 1:06 PM, Juanjo Cuadradojjcuadr...@gmail.com
  wrote:
   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(param) with xwork-2.1.2, you
 get
  a
   NullPointerException, but if you do it with xwork-2.0.5, it works.
  
   If any know what is happening, I would be extremely grateful.
  
  
   2009/8/3 Nils-Helge Garli Hegvik nil...@gmail.com
  
   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
 jjcuadr...@gmail.com
   wrote:
Hi,
   
That is wrong... if you do this, throws a NullPointerException...
   
   
2008/2/1 Joey joey.informat...@gmail.com
   
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 joey.informat...@gmail.com wrote:
 Thanks,  I just checked testing class in Struts2 package,  but I
 am
  a
 newbie for Struts2. I cannot understant Struts2 very well, so if
  you
 don't mind, pls tell me which testing class I can learn from.

 Thanks again


 On Feb 1, 2008 4:31 PM, Nils-Helge Garli Hegvik 
 nil...@gmail.com
wrote:
  You need to initialize the ActionContext in your unit tests.
 Take
  a
  look at the Struts 2 tests how it is solved there.
 
  Nils-H
 
 
  On Feb 1, 2008 9:28 AM, Joey Watson 
 joey.informat...@gmail.com
wrote:
   Hi everybody.
  
   I want to test a action class (Struts2) by JUnit. and then
  method
   in
   this action need a value in session, then when I run my
 JUnit
  test
   class,  ActionContext.getContext().getSession return null.
 (not
   ActionContext.getContext().getSession().get(XXX) return
  null).
   this action class is working fine in browser.
  
  
   thanks for any help
  
   Joey
  
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail:
 user-h...@struts.apache.org
  
  
 
 
   -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 

   
   
 -
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
   
   
   
  
   -
   To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
   For additional commands, e-mail: user-h...@struts.apache.org
  
  
  
 
  -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




Re: How can I download Struts 2.1.7?

2009-08-03 Thread Wes Wannemacher
On Mon, Aug 3, 2009 at 6:03 AM, cmartin81christ...@topmartin.com 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. Although the problem was fixed
right away, we added some OGNL enhancements and updated many
dependencies to later versions which has postponed the 2.1.8 release.
We are currently working to get 2.1.8 out though, we will make an
announcement as soon as it's available.

-Wes

-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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, what you need to do is create a package in xml which
will be the parent package of your actions, and define the default ref
there. Then use @ParentPackage in your actions, or set
struts.convention.default.parent.package to the name of this
package.

musachy

On Sun, Aug 2, 2009 at 9:59 AM, Thomas Terracetterr...@gmail.com wrote:
 Hi everyone,In my app I use a base action class to define some simple helper
 methods which are used throughout my jsps (i.e. getCurrentTime(),
 getCurrentUser(), etc.).  Before switching to the Convention plugin, I used
 default-class-ref class=BaseAction/ to ensure that these methods were
 available for all my actionless jsps. With the convention plugin it looks
 like these actionless results are hard coded to use ActionSupport.

 My initial work around was to modify the ConventionUnknownHandler class and
 add in a constant - struts.convention.default.class.ref which is used in
 place of the ActionSupport reference. This works pretty well but I'd rather
 not have to use a custom jar, so I was wondering if there was any other way
 to get around this without reverting back to struts.xml.

 Thanks for your help,
 -Tom




-- 
Hey you! Would you help me to carry the stone? Pink Floyd

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 r...@fdy2.demon.co.ukwrote:


 Is there any documentation simpler than the project tutorials ?

 I'm looking for something that helps when the steps described in e.g.
 http://struts.apache.org/2.1.6/docs/ready-set-go.html don't work.

 Robert Swindells



 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




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' extension.
Changing the struts filter mapping would have also worked and maybe the
better solution.
So I would suggest you change the filter mapping so that any of your CXF
addresses are excluded from the struts filter.

On Sat, Aug 1, 2009 at 6:14 AM, Leegorous leegor...@gmail.com wrote:

 Hi all,

 Here my app contains web services, using CXF.
 When I try to use convention plugin to eliminate verbose config, the
 webservice is not working, it always redirect to default homepage.
 Does anyone have experience in using convention plugin and webservice
 together?

 Thanks in advance


 Lee

 --
 猛击 http://leegorous.net/blog/ 吧!

 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org




dojo form submit and json

2009-08-03 Thread Mitch Claborn
I have a working page that using the sx:submit targets=divname / 
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 started.  I
think I understand the JSON plugin on the server side, how to serialize
a response Object into JSON.

What do I need to do in the view to de-serialize the results into JSON
and make them available in javascript?



Mitch



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 get the introspection also working,

my interceptor and struts.xml roughly looks as follows.


public class PortletApplicationScopeHandler extends AbstractInterceptor {

public String intercept(ActionInvocation invocation) throws Exception {

 invocation.addPreResultListener(new PreResultListener(){
 
 @SuppressWarnings(unchecked)
public void beforeResult(ActionInvocation invocation, 
String resultCode)
{
//some logic here before it goes to the target 
jsp
   //

   }
 }   
 );
 return invocation.invoke();
}

}


and in my struts.xml  the interceptor looks as follows

package name=myStuff extends=struts-portlet-default
namespace=/myStuff

 interceptors
interceptor name=sessionScopeHandler
class=test.interceptor.PortletApplicationScopeHandler /
/interceptors

action name=testAction class=test.MyAction
interceptor-ref 
name=sessionScopeHandler/interceptor-ref
result/jsp/test/test.jsp/result
/action
...
..   

-- 
View this message in context: 
http://www.nabble.com/struts-2-portlet-interceptor-issue-tp24799881p24799881.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 
 decorator:getProperty property=paramName / within a Struts2 tag to 
 make a special include dynamically controllable by the decorated content 
 page. But as we all know a nested tag like
 
 s:include value=decorator:getProperty property=paramName / /
 
 won't work. Now my question:
 What alternative do I have to achieve what I want (if there is a 
 possibility at all) ?
 
 I'm using Struts 2.0.14 with the sitemesh-plugin and neither Freemarker 
 nor Velocity, just simple JSPs.
 
 
 Thanks in advance,
 Christian
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-S2--Avoiding-nested-tags---Using-Sitemesh-properties-within-Struts-2-tags-tp21386124p24800454.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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

2009-08-03 Thread Xyzr

Thanx a lot. This works!

Grish wrote:
 
 decorator:usePage id=myPage /
 s:set name=currentNav
 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.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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 context: 
http://www.nabble.com/Struts-2-performance-tp24732029p24801034.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



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, Xyzrxyyzz...@gmail.com 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
 JRockit:

 http://www.oracle.com/technology/products/jrockit/index.html


 --
 View this message in context: 
 http://www.nabble.com/Struts-2-performance-tp24732029p24801034.html
 Sent from the Struts - User mailing list archive at Nabble.com.


 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org





-- 
Hey you! Would you help me to carry the stone? Pink Floyd

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: struts 2 portlet interceptor issue

2009-08-03 Thread Nils-Helge Garli Hegvik
                action name=testAction class=test.MyAction
                        interceptor-ref 
 name=sessionScopeHandler/interceptor-ref
                        result/jsp/test/test.jsp/result
                /action

With this configuration, your sessionScopeHandler will be the only
interceptor running for this action. You either need to include the
portletDefaultStack or set up your own stack that also includes the
framework interceptors that does the introspection magic.

Nils-H

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org