chinni005 Posted November 10, 2012 Author Report Posted November 10, 2012 [quote name='kiran karthik' timestamp='1352575973' post='1302775566'] infact im also eagerly waitin fo the solution in jquery replies follow avuthunna [/quote] it worked yesterday with one of the JSp.. but no luck now
Aamayakudu Posted November 10, 2012 Report Posted November 10, 2012 [quote name='Hava5' timestamp='1352575815' post='1302775547'] not working [/quote] best way to debug is using alert box mama ... prathi ID ki alert box peti debug cheyee mama ... ante eeka ..
chinni005 Posted November 10, 2012 Author Report Posted November 10, 2012 k[quote name='Aamayakudu' timestamp='1352576048' post='1302775576'] best way to debug is using alert box mama ... prathi ID ki alert box peti debug cheyee mama ... ante eeka .. [/quote]
Aamayakudu Posted November 10, 2012 Report Posted November 10, 2012 $('#CustomerUpdate').submit(function() { alert('Handler for .submit() called.'); return false; }); eedhi eevu when u press submit alert box will be called
Aamayakudu Posted November 10, 2012 Report Posted November 10, 2012 or try this code </style> <script> $(document).ready(function(){ $("#commentForm").validate(); }); </script> </head> <body> <form class="cmxform" id="commentForm" method="get" action=""> <fieldset> <legend>A simple comment form with submit validation and default messages</legend> <p> <label for="cname">Name</label> <em>*</em><input id="cname" name="name" size="25" class="required" minlength="2" /> </p> <p> <label for="cemail">E-Mail</label> <em>*</em><input id="cemail" name="email" size="25" class="required email" /> </p> <p> <label for="curl">URL</label> <em> </em><input id="curl" name="url" size="25" class="url" value="" /> </p> <p> <label for="ccomment">Your comment</label> <em>*</em><textarea id="ccomment" name="comment" cols="22" class="required"></textarea> </p> <p> <input class="submit" type="submit" value="Submit"/> </p> </fieldset> </form> </body> </html>
chinni005 Posted November 10, 2012 Author Report Posted November 10, 2012 endho idhi bore koduthundhi
Aamayakudu Posted November 10, 2012 Report Posted November 10, 2012 [quote name='Hava5' timestamp='1352576445' post='1302775623'] endho idhi bore koduthundhi [/quote] edhi assignment kabati bore koduthundhi .. repu job loo kuda edhe situation vasthe pulusu karipothadhi ..... don't accept defeat . man . nenu naa first job motam UI meda chesa Jquery and struts naa team lead gadu night 2 daka maa team andarini kurchopeti cheyenchadu .. vani question dagalemu kani work ayepovali ... pulusu karipoyendhi naaku ...
chinni005 Posted November 10, 2012 Author Report Posted November 10, 2012 [quote name='Aamayakudu' timestamp='1352576660' post='1302775644'] edhi assignment kabati bore koduthundhi .. repu job loo kuda edhe situation vasthe pulusu karipothadhi ..... don't accept defeat . man . nenu naa first job motam UI meda chesa Jquery and struts naa team lead gadu night 2 daka maa team andarini kurchopeti cheyenchadu .. vani question dagalemu kani work ayepovali ... pulusu karipoyendhi naaku ... [/quote] chestha ayithe ipudu
chinni005 Posted November 10, 2012 Author Report Posted November 10, 2012 asalu errors em levu.. JSP lo kaani .Java files lo kaani.. kaani..! submit chesthunte.. insert avvatle db lo
Aamayakudu Posted November 10, 2012 Report Posted November 10, 2012 [quote name='Hava5' timestamp='1352576784' post='1302775657'] asalu errors em levu.. JSP lo kaani .Java files lo kaani.. kaani..! submit chesthunte.. insert avvatle db lo [/quote] feild validation correct ga vasthunda .. like email ee format loo undali phone number 10 digits unali ani ??? db loo insertion ki verey problems undachu mundhu form validation ayepothe next ki podam
kiran karthik Posted November 10, 2012 Report Posted November 10, 2012 [quote name='Aamayakudu' timestamp='1352576660' post='1302775644'] edhi assignment kabati bore koduthundhi .. repu job loo kuda edhe situation vasthe pulusu karipothadhi ..... don't accept defeat . man . nenu naa first job motam UI meda chesa Jquery and struts naa team lead gadu night 2 daka maa team andarini kurchopeti cheyenchadu .. vani question dagalemu kani work ayepovali ... pulusu karipoyendhi naaku ... [/quote] agreed
chinni005 Posted November 10, 2012 Author Report Posted November 10, 2012 [quote name='Aamayakudu' timestamp='1352576917' post='1302775676'] feild validation correct ga vasthunda .. like email ee format loo undali phone number 10 digits unali ani ??? db loo insertion ki verey problems undachu mundhu form validation ayepothe next ki podam [/quote] validation done mama.. db insertion is problem now
Aamayakudu Posted November 10, 2012 Report Posted November 10, 2012 mundhu jdbc connection correct gaa undhoo ledhu chusukoo ..... like connection object is not null... 1.for testing db loo a. yedhina test data enter cheyee .. and b. okka select statement rayee ... and c. aa resultset ni console loo print cheyee.. so that neeku connection undhi ani teslusthundhi. 2 .next nuvu ee jsp ki okka action class rasav gaa i.e servlet in ur case. dani loo first get feilds withthere names .. like request.getParameter(phone number). print in console so that u can make sure the data which u r submitted is in request object . 3. if both 1 and 2 satisfied then give insert statement in prepared statement object.
chinni005 Posted November 10, 2012 Author Report Posted November 10, 2012 [quote name='Aamayakudu' timestamp='1352577569' post='1302775749'] mundhu jdbc connection correct gaa undhoo ledhu chusukoo ..... like connection object is not null... 1.for testing db loo a. yedhina test data enter cheyee .. and b. okka select statement rayee ... and c. aa resultset ni console loo print cheyee.. so that neeku connection undhi ani teslusthundhi. 2 .next nuvu ee jsp ki okka action class rasav gaa i.e servlet in ur case. dani loo first get feilds withthere names .. like request.getParameter(phone number). print in console so that u can make sure the data which u r submitted is in request object . 3. if both 1 and 2 satisfied then give insert statement in prepared statement object. [/quote] con = DriverManager.getConnection(dburl,dbuserName,dbpassword); System.out.println(con); idhi chesthunte con object em print avvatledhu enti console lo?
Aamayakudu Posted November 10, 2012 Report Posted November 10, 2012 [quote name='Hava5' timestamp='1352578592' post='1302775834'] con = DriverManager.getConnection(dburl,dbuserName,dbpassword); System.out.println(con); idhi chesthunte con object em print avvatledhu enti console lo? [/quote] atleast null ana ravali kada...
Recommended Posts