Re: Struts 2.2.1.1 : reload .properties files

2011-03-31 Thread Lukasz Lenart
2011/3/31 Sami Dalouche : >  - change pom.xml: 0 "scanIntervalSeconds Optional. The pause in seconds between sweeps of the webapp to check for changes and automatically hot redeploy if any are detected. By default this is 0, which disables hot deployment scanning. A number greater than 0 enables i

Re: How to free resources after form have been closed

2011-03-31 Thread Dave Newton
On Thu, Mar 31, 2011 at 2:51 PM, Ragner Magalhaes wrote: > appview1(jsp file) -> open -> appview2(jsp file) > > Where the appview2 has a FormAction and an Action > > What is the best way to know when appview2 was closed? What kind of resources are you trying to free? The only way is to monitor tr

Struts 2.2.1.1 : reload .properties files

2011-03-31 Thread Sami Dalouche
Hi, I cannot get auto-reload of .properties files to work with struts 2.2.1.1. (with the mail sample app) Steps to reproduce: - Download Struts 2.2.1.1 : http://struts.apache.org/download.cgi#struts2211 - Extract - cd src/apps/mailreader - change pom.xml: 0 - change src/main/java/struts.xm

How to free resources after form have been closed

2011-03-31 Thread Ragner Magalhaes
Hi all, I am newbie on Struts. I have the follow flow example: appview1(jsp file) -> open -> appview2(jsp file) Where the appview2 has a FormAction and an Action What is the best way to know when appview2 was closed? Sorry my newbie question! -- Ragner Magalhães

Re: Spring Security

2011-03-31 Thread Jason Ferguson
Here a Basics of Spring Security 3 presentation I gave at the St Louis Java User group, but didn't have much time to go into securing objects. http://www.slideshare.net/jasonferguson1/spring-security-3 On Thu, Mar 31, 2011 at 12:31 PM, CRANFORD, CHRIS wrote: > If anyone here has experience with

Re: Spring Security

2011-03-31 Thread Kushan Jayathilake
Yep.. I'm writing an article in my blog about Spring Security. Method level security will be the next post. Stay in touch. You can reach me through my blog. http://kushanxp.blogspot.com/ On Thu, Mar 31, 2011 at 11:01 PM, CRANFORD, CHRIS wrote: > If anyone here has experience with Spring Securi

Spring Security

2011-03-31 Thread CRANFORD, CHRIS
If anyone here has experience with Spring Security, particularly with securing methods and domain objects with ACL or ACL-like implementations, I'd like to have an off-list discussion about some issues I am facing that I am in need to working through somewhat quickly. Feel free to drop me a note.

Re: Help with Spring JDBC

2011-03-31 Thread Maurizio Cucchiara
Have you defined a bean for the struts action class inside your applicationContext.xml? Did it include your dao property? On 30 March 2011 20:12, alxer wrote: > Hello, > I am developing a web application with EclipseIDE and I am using the Struts2 > and Spring3 frameworks. > I am trying to configu

Re: Struts2 json plugin problem with jpa entity

2011-03-31 Thread Maurizio Cucchiara
Try this one: @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Beneficiario that = (Beneficiario) o; if (idBeneficiario != null ? !idBeneficiario.equals(that.idBeneficiario) : th

Re: Help with Spring JDBC

2011-03-31 Thread Ty Connell
Low hanging fruit comment: virtually 100% of the time I get a NPE when using spring, it's because I'm instantiating objects with "new" instead of letting the app context get the object for me (either explicitly or via injection). On Wed, Mar 30, 2011 at 2:12 PM, alxer wrote: > Hello, > I am dev

Re: Struts2 json plugin problem with jpa entity

2011-03-31 Thread Massimo Ugues
Hallo Maurizio. I tried to create an instance of that class (Beneficiario) in a detached way, but the problem persist. The action is created via spring Could it be a problem? I think the problem is the Beneficiario class, but to me it seems to be a Pojo as any other. Kind regards Massim

Re: Help with Spring JDBC

2011-03-31 Thread Dave Newton
On Thu, Mar 31, 2011 at 11:02 AM, Dave Newton wrote: > This is a Spring question? And are you using the Spring plugin? Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@

Re: Help with Spring JDBC

2011-03-31 Thread Dave Newton
This is a Spring question? Dave On Wed, Mar 30, 2011 at 2:12 PM, alxer wrote: > Hello, > I am developing a web application with EclipseIDE and I am using the Struts2 > and Spring3 frameworks. > I am trying to configure the web application acces to my MySQL database. > I am inexperienced with the

Help with Spring JDBC

2011-03-31 Thread alxer
Hello, I am developing a web application with EclipseIDE and I am using the Struts2 and Spring3 frameworks. I am trying to configure the web application acces to my MySQL database. I am inexperienced with the configuration of these frameworks so I would like someone to give me a help, I'm sure it i

Re: Struts2 json plugin problem with jpa entity

2011-03-31 Thread Maurizio Cucchiara
Ciao Massimo, I don't think it is something to do with JPA (anyway, have you tried to populate/stub the array with some detached value?) Could you send: 1. the action class source 2. the action definition. Which S2 version are we talking about? Are there any errors in log ? On 31 March 2011 16:

Re: Struts2 json plugin problem with jpa entity

2011-03-31 Thread Massimo Ugues
Here the post: Hallo all. I have a problem with the struts-json-plugin. My action has an association with some JPA entities objects: all of them are initialized in the action but when they are serialized via json they all are null. Here below is the json text that I receive in front of a ... pr

Re: Struts2 json plugin problem with jpa entity

2011-03-31 Thread Michal Ciasnocha
Hi Massimo, it might be similar problem with combination JPA and GWT. Read something about this on google code http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html (section Why Hibernate Objects ...). One solution is use own Data Transfer Objects. Regards, Michal Mass

Re: Struts2 json plugin problem with jpa entity

2011-03-31 Thread Dave Newton
Perhaps posting the question here would be of value. Dave On Thu, Mar 31, 2011 at 9:34 AM, Massimo Ugues wrote: > Hallo all. > I have a strange issue described here: > http://stackoverflow.com/questions/5497037/struts-json-plugin-problem-serializing-jpa-entity > >

Struts2 json plugin problem with jpa entity

2011-03-31 Thread Massimo Ugues
Hallo all. I have a strange issue described here: http://stackoverflow.com/questions/5497037/struts-json-plugin-problem-serializing-jpa-entity Any idea? Kind regards Massimo -- Massimo Ugues http://m4z

RE: Chinese character problem

2011-03-31 Thread Rohit
Sorry.. this is while submitting form. I started using this filter and the problem was solved. But is this the right way? encodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8

Re: Chinese character problem

2011-03-31 Thread Lukasz Lenart
2011/3/31 Rohit : > I am trying to handle Chinese word in my application (Struts2 bases), but > when the word "沃尔沃" in UI it becomes "沃尔沃". > > How can I handle this? Are you using property files? Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura h

Re: Chinese character problem

2011-03-31 Thread Dave Newton
When displaying? When submitting a form? When what? Is your encoding set properly? Are you escaping it somewhere? 2011/3/31 Rohit : > Hi, > > I am trying to handle Chinese word in my application (Struts2 bases), but > when the word "沃尔沃" in UI it becomes "沃尔沃". > > How can I handle this? > > Regar

Chinese character problem

2011-03-31 Thread Rohit
Hi, I am trying to handle Chinese word in my application (Struts2 bases), but when the word "沃尔沃" in UI it becomes "沃尔沃". How can I handle this? Regards, Rohit - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For a