RE: Documentation about Struts2 performance improvement

2010-11-27 Thread Martin Gainty
I would suiggest working either PMD or Clover into your build routine PMD is used to find unused code PMD for Ant http://sourceforge.net/projects/pmd PMD for Maven http://maven.apache.org/plugins/maven-pmd-plugin/ to find execution percentages class by class Clover for ANT http://confluence.atl

Documentation about Struts2 performance improvement

2010-11-27 Thread Oscar
Hi to all, i was wondering if there's some resource, documentation or something like that to improve Struts2 performance, i don't know, like disabling components that i don't use (for example i never use struts themes in S2) or something like that, this because i am working in a project with struts

Re: javax.servlet.ServletException: BeanUtils.populate

2010-11-27 Thread Li Ying
What happens when (1)liste is null or (2)liste is filled by null element or (3)index accessed is out of bound? 2010/11/27 Peter Nguyen : > Li, > > I think the issue is here is most likely point 3. When the form is submitted, > I suspect struts is trying to call getListe(int) to retrieve a

RE: javax.servlet.ServletException: BeanUtils.populate

2010-11-27 Thread Peter Nguyen
Li, I think the issue is here is most likely point 3. When the form is submitted, I suspect struts is trying to call getListe(int) to retrieve a Personne bean before calling the respective setters. So in this case, Dominque probably just needs an additional getter in the action form that will

Enunicate vs REST plugins

2010-11-27 Thread Frans Thamura
a little chat with david about enunicate, which better than REST plugins can anyone have any experience to share thx F

OData

2010-11-27 Thread Frans Thamura
hi all anyone working with OData, or may be odata4j http://code.google.com/p/odata4j/ just wanna to get idea around this protocol interesting idea, if we can extend REST plugins using this F

Re: javax.servlet.ServletException: BeanUtils.populate

2010-11-27 Thread Li Ying
There will be only one class, which will be the class of the elements in the List. I just want to find the Constructor with the least parameters if there are more than one constructors for this class. Once I get the constructor, I can use it to create instance and append it to List automatically.

RE: javax.servlet.ServletException: BeanUtils.populate

2010-11-27 Thread Martin Gainty
The day after Black Friday and most folks are still at the WalMart so I'll take a stab at some testcases private E createElementByConstructor() { try { Constructor[] constrArray = (Constructor[]) elementClass .getCo

Re: javax.servlet.ServletException: BeanUtils.populate

2010-11-27 Thread Li Ying
I have dug it out from my old project. The code is not very beautiful, you can modify it if you wish, but please don't change the author information. Here is the code: package com.ewsoft.common.utils; import java.lang.reflect.Constructor; import java.ut

Re: javax.servlet.ServletException: BeanUtils.populate

2010-11-27 Thread Li Ying
I think the reason of the Exception maybe: (1)the data you post is named like "liste[0].nom" (2)Struts1 accept this http param, and try to translate it to a form property, by using a lib named Apache Commons BeanUtils See: http://commons.apache.org/beanutils/ (3)BeanUtils treats nested property