Re: OGNL ClassCastException

2009-02-14 Thread Adam Hardy
Yes, it is a JPA entity bean proxied by OpenJPA. It has a list property - the bean is a parent in a parent-child relationship and this property is the list of children. This is the incoming HTTP parameter: portfolio.weightings[0]=123 Despite debugging it I am still not sure what has

Struts2-Spring Integration Issue

2009-02-14 Thread Sundararaman, Anand
Hello, I am using Struts2-Spring-Hibernate in my web application. I have configured the Struts-Spring plugin to make the Spring framework load the action classes. I am facing a problem with the non-execute (do*) methods in my action classes. In my applicationcontext.xml, if I do not specify

Re: Struts2-Spring Integration Issue

2009-02-14 Thread Lukasz Lenart
2009/2/14 Sundararaman, Anand anand.sundarara...@ps.net: It seems to me that I will never be able to use the Struts non-execute (do*) methods, if I integrate with Spring. I need Spring Framework since it helps a lot with hibernate calls. Would anyone be able to guide me, if I am missing

RE: Struts2-Spring Integration Issue

2009-02-14 Thread Sundararaman, Anand
Hi Lukasz, I am not using AOP. Will it make any difference if I use the Spring-AOP? Thanks, Anand From: Lukasz Lenart [lukasz.len...@googlemail.com] Sent: Saturday, February 14, 2009 9:51 AM To: Struts Users Mailing List Subject: Re: Struts2-Spring

Re: Struts2-Spring Integration Issue

2009-02-14 Thread Lukasz Lenart
Could you copy-paste your struts.xml and Spring config regarding actions? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail:

Struts2 interceptor with JTA in Sprign

2009-02-14 Thread Frans Thamura
hi all i use an interceptor that do query, so i injected the hibernate using spring - my struts2 using spring and i want to implement JTA in my persistance factory i try use the non interceptor version, work well, but i find the interceptor cannot work with JTA related injection can help all

How can you get OGNL to go faster?

2009-02-14 Thread Matthew Seaborn
I am currently running Struts 2.0.11 (planning to upgrade soon) with OGNL 2.6.11 and am having significant trouble with the appalling performance of OGNL. The following XML using Struts 2 Tags and ORNL takes (using the s2 profiling) 2328ms to render %@ page contentType=text/xml %%-- --%%@

RE: Struts2-Spring Integration Issue

2009-02-14 Thread Sundararaman, Anand
Hi, Here are the files. I have just pasted only the contents to highlight the problem. The CreateUserAction has two methods, execute() and doActivateUser(). The execute is called for saveUser action. The doActivateUser() is called for activateUser action. If I specify the scope=prototype, the

RE: Struts2-Spring Integration Issue

2009-02-14 Thread Sundararaman, Anand
Hi, Here are the files. I have just pasted only the contents to highlight the problem. The CreateUserAction has two methods, execute() and doActivateUser(). The execute is called for saveUser action. The doActivateUser() is called for activateUser action. If I specify the scope=prototype, the

Re: Struts2-Spring Integration Issue

2009-02-14 Thread Lukasz Lenart
2009/2/14 Sundararaman, Anand anand.sundarara...@ps.net: action name=activateUser class=createUser method=activateUser result name=success/jsp/user/useractivated.jsp/result result name=error/jsp/user/login.jsp/result /action /package That's really strange, did

RE: Struts2-Spring Integration Issue

2009-02-14 Thread Sundararaman, Anand
No I did not try that. I will try that and let you know. Thanks for the help and time. From: Lukasz Lenart [lukasz.len...@googlemail.com] Sent: Saturday, February 14, 2009 10:39 AM To: Struts Users Mailing List Subject: Re: Struts2-Spring Integration

How-to disable Struts2 / Tlies2 debug messages

2009-02-14 Thread Jiří Chaloupka
Hallo, I am developing Struts2 application and run for test in MyEclipse envirinment on JBoss app server. In eclipse console I have a lot of debug messages as: 12:15:47,859 INFO [STDOUT] 12:15:47,843 DEBUG XmlConfigurationProvider:57 - Loading action configurations from: struts-default.xml

Re: StrutsTestCase and Struts2

2009-02-14 Thread Dave Newton
Enric Jaen wrote: Hello, I'd to test the StrutsTestCase's version for Struts2 [1] but I have not found any example. There are plenty of examples for Struts1, however. Any idea how to use it? Have you looked at any of the existing tests for S2? Dave

RE: Struts2-Spring Integration Issue

2009-02-14 Thread Sundararaman, Anand
No it did not work with that change as well. Initially I was getting a NoSuchMethodException on the method activateUser in the action class. Now after the change you suggested, it asked for an input result type in the action class. If I give the input result type it just does not go to that

RE: StrutsTestCase and Struts2

2009-02-14 Thread Enric Jaen
Thanks Dave, they are there. I failed to guess that all were using JWebUnit. /Enric - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: conventions @Result params support OGNL exprs

2009-02-14 Thread Dave Newton
Musachy Barroso wrote: you can put the whole view?resourceId=${resource.id} in the params. Just to clarify (as I ran into this converting a small app to Convention)... It doesn't seem possible to put the whole URL into the location parameter, instead I had to: @Result(name=...,

Re: Struts2: change method to invoke on the fly??

2009-02-14 Thread Daniel Ruan
Thanks, Scott. Yes, I had something else in mind. I need to give a URL to a third party site for call back and I will also need to pass a parameter, but that third party always strips off all query parameters. One idea I had was to append the parameter to the action name as if a wild card