Re: hi please help me struts2
thanks for the reply so by using the struts 2.1.8 jar files from apache the validation by giving he validation="true" has to worked for that i asked on using hibernate the hibernate will make the class by anotation and for the validation also we has to do the same how can i make a crud with hibernate as model jsp as view struts2 as controller. in the struts2 is that the interceptor is excluded for the validation to remove for inpit and how On Fri, Jul 9, 2010 at 6:19 PM, Brian Thompson wrote: > For client-side validation: Just write a javascript function and have > it run for either the onclick event of the form submit button or the > onsubmit event for the form itself. > > For "Hibernate by property file", I'm not sure what you mean. I've > always used either hibernate.cfg.xml files or annotations in the model > classes. Could you post an example of what you're trying to do? > > -Brian > > > > On Fri, Jul 9, 2010 at 7:39 AM, Salish S wrote: > > -- Forwarded message ------ > > From: Salish S > > Date: Fri, Jul 9, 2010 at 6:07 PM > > Subject: hi please help me struts2 > > To: "es...@vaannila.com" > > > > > > Hi > > i had gone through the struts2 crud in the > > > http://www.vaannila.com/struts-2/struts-2-example/struts-2-crud-example-1.html > > > > its fine and goog pgm for me > > but the problem came when i want to add client side validation how i add > > clientside validation > > i had gone though the hibernate validation also its also fine > > > http://www.vaannila.com/struts-2/struts-2-tutorial/struts-2-hibernate-validation-tutorial-1.html > > > > is that clientside validation is doing therer > > and very important is that > > How can i use hibernate by property file not that by the > hibernate.cfg.xml > > file to connectt to db in the same example > > > > please help me > > thenkuse > > > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > >
hi please help me struts2 with hibernate
hi hello i had done the project as described in this site example http://www.vaannila.com/struts-2/struts-2-example/struts-2-crud-example-1.html its working fine just the change is that the Db i used is mysql thatall But how can i do the clientside validtion by xml file and how can i do the same with hibernate config file not with a cfg file Please check and tell me Thanks in advance
Re: hi please help me struts2
For client-side validation: Just write a javascript function and have it run for either the onclick event of the form submit button or the onsubmit event for the form itself. For "Hibernate by property file", I'm not sure what you mean. I've always used either hibernate.cfg.xml files or annotations in the model classes. Could you post an example of what you're trying to do? -Brian On Fri, Jul 9, 2010 at 7:39 AM, Salish S wrote: > -- Forwarded message -- > From: Salish S > Date: Fri, Jul 9, 2010 at 6:07 PM > Subject: hi please help me struts2 > To: "es...@vaannila.com" > > > Hi > i had gone through the struts2 crud in the > http://www.vaannila.com/struts-2/struts-2-example/struts-2-crud-example-1.html > > its fine and goog pgm for me > but the problem came when i want to add client side validation how i add > clientside validation > i had gone though the hibernate validation also its also fine > http://www.vaannila.com/struts-2/struts-2-tutorial/struts-2-hibernate-validation-tutorial-1.html > > is that clientside validation is doing therer > and very important is that > How can i use hibernate by property file not that by the hibernate.cfg.xml > file to connectt to db in the same example > > please help me > thenkuse > - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Fwd: hi please help me struts2
-- Forwarded message -- From: Salish S Date: Fri, Jul 9, 2010 at 6:07 PM Subject: hi please help me struts2 To: "es...@vaannila.com" Hi i had gone through the struts2 crud in the http://www.vaannila.com/struts-2/struts-2-example/struts-2-crud-example-1.html its fine and goog pgm for me but the problem came when i want to add client side validation how i add clientside validation i had gone though the hibernate validation also its also fine http://www.vaannila.com/struts-2/struts-2-tutorial/struts-2-hibernate-validation-tutorial-1.html is that clientside validation is doing therer and very important is that How can i use hibernate by property file not that by the hibernate.cfg.xml file to connectt to db in the same example please help me thenkuse