Re: Hibernate problem with OGNL

2013-03-26 Thread Lukasz Lenart
2013/3/26 Markus Demetz : > Hi, > > I don't know if this is the right place to ask, but maybe there is anyone > who has experienced the same problem. > > I'm using Struts2 (latest version), with Hibernate (latest version) > My database models all have getId(). > > I have situations, where the getId

Re: common validator

2013-03-26 Thread Paul Benedict
Do not use UI validation to defend against SQL Injection Attacks. That's the job of JDBC Prepared Statements. Paul On Tue, Mar 26, 2013 at 5:15 PM, J.V. wrote: > I have to add checking each and every form field in my application for sql > injection attacks (I need a method that will return a bo

Re: common validator

2013-03-26 Thread Muralidhar Yaragalla
have u tried "PreparedStatement" and see how it goes with SQL injection. Long back i have done some work on this. So I dont remember exactly but i think this can solve. On Wed, Mar 27, 2013 at 3:45 AM, J.V. wrote: > I have to add checking each and every form field in my application for sql > in

common validator

2013-03-26 Thread J.V.
I have to add checking each and every form field in my application for sql injection attacks (I need a method that will return a boolean false if any character that is typically used in sql injection is found). Each of my form classes has a validator() method. I was thinking of creating my ow

Re: struts2 (2.2.1) adds field error and doesn't return input!!

2013-03-26 Thread Alejandro
he used onclick, cancel the click event 2013/3/26 Paul Benedict > Correct. Return true to submit; false to cancel the event. > > On Tue, Mar 26, 2013 at 1:10 PM, Maurizio Cucchiara > wrote: > > > I could be wrong, but if you don't return true on submit event, the > > form will never get submit

Re: struts2 (2.2.1) adds field error and doesn't return input!!

2013-03-26 Thread Paul Benedict
Correct. Return true to submit; false to cancel the event. On Tue, Mar 26, 2013 at 1:10 PM, Maurizio Cucchiara wrote: > I could be wrong, but if you don't return true on submit event, the > form will never get submitted. > > Twitter :http://www.twitter.com/m_cucchiara > G+ :https://p

Re: struts2 (2.2.1) adds field error and doesn't return input!!

2013-03-26 Thread Maurizio Cucchiara
I could be wrong, but if you don't return true on submit event, the form will never get submitted. Twitter :http://www.twitter.com/m_cucchiara G+ :https://plus.google.com/107903711540963855921 Linkedin:http://www.linkedin.com/in/mauriziocucchiara VisualizeMe: http://vizualize.me/m

Re: struts2 (2.2.1) adds field error and doesn't return input!!

2013-03-26 Thread Dave Newton
On Tue, Mar 26, 2013 at 1:42 PM, Alejandro wrote: > you don't put validate to true in the form > That's only for client-side validation. Dave

Hibernate problem with OGNL

2013-03-26 Thread Markus Demetz
Hi, I don't know if this is the right place to ask, but maybe there is anyone who has experienced the same problem. I'm using Struts2 (latest version), with Hibernate (latest version) My database models all have getId(). I have situations, where the getId() method of my model class returns n