Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-21 Thread Toni Lyytikäinen
I'm using 2.1.1-SNAPSHOT from the people.apache.org maven snapshot repository. I noticed 2.1.2-SNAPSHOT is already out, maybe I should try it. I have scope=prototype in the actions that I've defined in the Spring configuration file. The problem also affects actions that are not in the Spring

Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Toni Lyytikäinen
Hello, I'm in the process of converting a Struts 2.0.11 application to Struts 2.1.1, and ran into some trouble concerning the action result configuration in struts.xml. Basically this is what I had in 2.0.11: result name=edit type=redirect-action param name=actionNameUsers_edit/param param

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Don Brown
Hmm...what should happen is those exceptions should be logged as a warn, but the process should continue like normal. If that isn't the case, definitely file a bug and put it against 2.1.2 Don On Fri, Apr 18, 2008 at 11:11 PM, Toni Lyytikäinen [EMAIL PROTECTED] wrote: Hello, I'm in the

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Jukka Välimaa
For Struts 2.1.1, use type=redirectAction instead of type=redirect-action. I just had the pleasure of debugging some problems caused by it. On Fri, Apr 18, 2008 at 4:12 PM, Don Brown [EMAIL PROTECTED] wrote: Hmm...what should happen is those exceptions should be logged as a warn, but the

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Al Sutton
Toni, Try using redirectAction instead of redirect-action. Al. - Original Message - From: Don Brown [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, April 18, 2008 2:12 PM Subject: Re: Converting action configuration from 2.0 to 2.1 - how to

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Dave Newton
I'm confused; I didn't think redirect-action would even work; that result type isn't mapped in 2.1 and you should get an exception stating exactly that. Dave --- Jukka Välimaa [EMAIL PROTECTED] wrote: For Struts 2.1.1, use type=redirectAction instead of type=redirect-action. I just had the

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Toni Lyytikäinen
Yes I forgot to mention in the original post that I already changed the redirect-action to redirectAction as per the migration guide here: http://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html On Fri, Apr 18, 2008 at 4:26 PM, Dave Newton [EMAIL PROTECTED]

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Al Sutton
Toni, Can you post your updated action config and the full stack trace here, there may be something simple we can spot before needing to log a bug. Al. - Original Message - From: Toni Lyytikäinen [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday,

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Toni Lyytikäinen
Well, I found out that the problem is not the ognl expression, as trying to set static parameters won't work. I already filed a bug, WW-2600 My action config is quite large, I wonder which are the relevant parts...? Here's the interceptor stack: interceptor-stack

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Toni Lyytikäinen
Well, as I already posted in the issue, it turned out that this is somehow caused by the Spring plugin. If I disable the Spring plugin, it works fine (apart from the fact that my DAOs won't get injected to the actions, of course).

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Randy Burgess
Make sure to set your actions in your application context with scope=prototype. Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications From: Toni Lyytikäinen [EMAIL PROTECTED] Reply-To: Struts Users Mailing List user@struts.apache.org Date: Fri, 18 Apr 2008 21:54:14

Re: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Dave Newton
--- Toni Lyytikäinen [EMAIL PROTECTED] wrote: Well, as I already posted in the issue, it turned out that this is somehow caused by the Spring plugin. If I disable the Spring plugin, it works fine (apart from the fact that my DAOs won't get injected to the actions, of course). I'm wondering if

RE: Converting action configuration from 2.0 to 2.1 - how to convert parameters to actions

2008-04-18 Thread Brad A Cupit
I'm wondering if this is related to the CGLIB issue. Hrm...he's using the redirectAction which has been immune to the CGLIB issue (assuming we're talking about the same issue). The 'chain' result is prone to the CGLIB problem. Having said that, I haven't used Struts 2.1.x at all. The exception