Re: Spring configuration error

2010-08-18 Thread Dave Newton
Are you deploying the Spring plugin? Dave On Aug 18, 2010 12:19 AM, Rakeshkumar Parmar rakeshkumar_par...@persistent.co.in wrote: Hi, I am not using spring to configure Hello World sample application. But it still gives me listener not registered error for spring context. I am using struts

Re: [ANN] Struts 2.2.1 GA release available

2010-08-18 Thread Per Johansson
The release is also available through the central Maven repository under Group ID org.apache.struts. I cannot find version 2.2.1 under http://mvnrepository.com/artifact/org.apache.struts/struts2-parent /Per Johansson

Re: [ANN] Struts 2.2.1 GA release available

2010-08-18 Thread Lukasz Lenart
2010/8/18 Per Johansson perj...@gmail.com: The release is also available through the central Maven repository under Group ID org.apache.struts. I cannot find version 2.2.1 under http://mvnrepository.com/artifact/org.apache.struts/struts2-parent Here you have

Re: [S2.2.1] Javassist dependency

2010-08-18 Thread Lukasz Lenart
Reposting just for future reference 2010/8/18 Dave Newton davelnew...@gmail.com: Oh, you're right, it says it's provided. Which confuses me even more :/ On Wed, Aug 18, 2010 at 7:43 AM, Lukasz Lenart lukasz.len...@googlemail.com wrote: 2010/8/18 Dave Newton davelnew...@gmail.com: Hmm, I

Re: [S2.2.1] Javassist dependency

2010-08-18 Thread Dave Newton
What, to prove to historians that I'm usually confused?! On Wed, Aug 18, 2010 at 9:05 AM, Lukasz Lenart lukasz.len...@googlemail.com wrote: Reposting just for future reference 2010/8/18 Dave Newton davelnew...@gmail.com: Oh, you're right, it says it's provided. Which confuses me even more

Re: [S2.2.1] Javassist dependency

2010-08-18 Thread Lukasz Lenart
W dniu 18 sierpnia 2010 15:17 użytkownik Dave Newton davelnew...@gmail.com napisał: What, to prove to historians that I'm usually confused?! Just to put it on the list. If you didn't notice, I answered directly to you ;-) Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Kapituła

How do you write unit tests for annotation based validation?

2010-08-18 Thread Dready
Hi! I am using annotation based validation in my actions and tried to write a unittest for it, with no success. I found several links, one looked very promising but is not working with 2.1.8.1. (NullPointerException):

Struts 2.2.1 - Unit Testing Interceptors

2010-08-18 Thread Stephen Turner
Unit tests for interceptors in Struts 2.2.1 In TokenInterceptorTest I see a reference to org.apache.struts2.TestConfigurationProvider, but I can't find this class in a jar file. I do see the source code though. Which jar should I be using for TestConfigurationProvider? Thanks, Steve

Re: Turning freemarker logging off

2010-08-18 Thread ricoq
nodje wrote: Hi, I'm using Struts 2.1.2. I've configured log4j logging with the following line log4j.logger.com.opensymphony.xwork2.ognl=ERROR in order to turn off what seemed to be xwork logging. However, I'm still getting hundreds of line like these: Could not find template in

Re: Turning freemarker logging off

2010-08-18 Thread ricoq
In your log4j.properties file add the following line: log4j.logger.freemarker.beans=WARN, CA This assigns the level of WARNING to the freemarker.beans package only. All other packages will inherit the root logger level (usually set to DEBUG). You can set other packages as well, like:

Choosing a result dynamically based on session attribute?

2010-08-18 Thread java . rgm
Is it possible to choose an action result based on a value in the HttpSession? I have read the following page: http://struts.apache.org/2.0.11.1/docs/parameters-in-configuration-results.html I understand how to reference properties from the action itself, but is it possible if the

Performance issues

2010-08-18 Thread Nathan Meeker
I have a small Struts 2 application that displays a JSP page with a table of about 300 rows. Each row in turn contains about 20 links to other actions. The JSP is created using Struts2 tags (OGNL). There is a loop that iterates over a collection and pulls properties of the elements combining them

Re: Struts 2.2.1 - Unit Testing Interceptors

2010-08-18 Thread Lukasz Lenart
2010/8/18 Stephen Turner stur...@mit.edu: Unit tests for interceptors in Struts 2.2.1 In TokenInterceptorTest I see a reference to org.apache.struts2.TestConfigurationProvider, but I can't find this class in a jar file. I do see the source code though. Which jar should I be using for

Re: Performance issues

2010-08-18 Thread Lukasz Lenart
Did you enabled FreeMarker cache? http://struts.apache.org/2.x/docs/freemarker.html Cache sesction Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Kapituła Javarsovia 2010 http://javarsovia.pl - To unsubscribe,

Re: Performance issues

2010-08-18 Thread Nathan Meeker
I just enabled the cache (using the settings you suggested) and the time is down to 15 seconds (from 60-70). Is there anything else I should be doing? Thanks! On Wed, Aug 18, 2010 at 2:24 PM, Lukasz Lenart lukasz.len...@googlemail.com wrote: Did you enabled FreeMarker cache?

Re: Struts 2.2.1 - Unit Testing Interceptors

2010-08-18 Thread Stephen Turner
On Wed, 18 Aug 2010 16:22:37 -0400, Lukasz Lenart lukasz.len...@googlemail.com wrote: 2010/8/18 Stephen Turner stur...@mit.edu: Unit tests for interceptors in Struts 2.2.1 In TokenInterceptorTest I see a reference to org.apache.struts2.TestConfigurationProvider, but I can't find this

Re: Struts 2.2.1 - Unit Testing Interceptors

2010-08-18 Thread Lukasz Lenart
2010/8/18 Stephen Turner stur...@mit.edu: I'm looking in struts2-junit-plugin-2.2.1.jar that came as part of struts2-2.2.1-all.zip and I see only these classes in the org/apache/struts2 folder: StrutsTestCase.class StrutsTestCase$1.class StrutsSpringTestCase.class What am I missing? This

Re: Performance issues

2010-08-18 Thread Greg Lindholm
I have found most the struts tags to be really slow but s:form seems to stick out. For really high performance pages I find I have to not use struts tags. See this old thread: http://old.nabble.com/S2-%3Cs%3Aform%3E-in-interator-really-slow-tc28073962.html On Wed, Aug 18, 2010 at 4:46 PM, Nathan

Retrieving Value from Row in Struts2 Table While using Displaytag

2010-08-18 Thread raychang
Hi, I am trying to access the value of a particular row in my table (to perform edit or remove actions), but I can't seem to get the value... Here is the code for my table in my JSP page: display:table name=table pagesize=25 requestURI= display:column title=Action s:form

Struts 2-Spring Plugin with Spring 3 - Looks good so far...

2010-08-18 Thread Burton Rhodes
I have queried this list in the past about using Struts 2-Spring Plugin with Spring 3. A few commented that you've intergrated with no issue. While upgrading to 2.2.1, I decided to also try a Spring 3 upgrade as well. It seems to be working correctly. However, taking a closer look at the source

Re: Performance issues

2010-08-18 Thread Nathan Meeker
Well, I added Javatemplate plugin: http://struts.apache.org/2.x/docs/javatemplates-plugin.html and now the page renders in about 3 seconds. That solves the immediate issue for me. Not sure what's going on with struts2 tags, but in the default configuration they seem to be hideously slow. Am I

Re: Struts 2-Spring Plugin with Spring 3 - Looks good so far...

2010-08-18 Thread Frans Thamura
we have a code using SpringMVC 3 and Struts 2.2.1, if we make both one by one, implementation work well, but if we make one .war, crash happen here i put the code here http://ugforge.gunadarma.ac.id/gf/project/cimande/scmsvn/?action=browsepath=/branches/rest-springmvc-struts2/ my idea wanna to

Re: Choosing a result dynamically based on session attribute?

2010-08-18 Thread Dave Newton
Did you try using normal OGNL syntax for accessing value stack properties? On Aug 18, 2010 4:16 PM, java@spamgourmet.com wrote: Is it possible to choose an action result based on a value in the HttpSession? I have read the following page:

2.2.1 Local Freemarker Templates ignored?

2010-08-18 Thread dusty
Has anyone noticed that local Freemarker templates they kept in /template are no longer being picked up in favor of the .jar templates? Any ideas if there is a constant or change to where we put templates to fix this? -- View this message in context:

Re: 2.2.1 Local Freemarker Templates ignored?

2010-08-18 Thread Sean Ford
Hi Dustin, I am experiencing the same problem. I actually sent an email to this list yesterday about it... Sorry, I don't have a fix or workaround for it yet :-( Sean On Wed, Aug 18, 2010 at 10:01 PM, dusty dustin_pea...@yahoo.com wrote: Has anyone noticed that local Freemarker templates they