Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > JSP Basics
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 14th, 2004, 08:07 AM
Authorized User
 
Join Date: Oct 2004
Location: , , .
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default updation prob..........

i have an jsp page which is used to update the two tables named
1) pay_header 2) pay_detail.

In which the values of chq_amt of table 1 should be equal to values of db_amt of table 2.

i have used the following query:

PreparedStatement pstatement = conn.prepareStatement(
"UPDATE pay_header,pay_detail SET pay_header.chq_amt=pay_detail.db_amt where pay_header.vou_no = pay_detail.vou_no");


pstatement.setFloat(1,Float.parseFloat(request.get Parameter("chq_amt")));
pstatement.setFloat(2,Float.parseFloat(request.get Parameter("db_amt")));
pstatement.setString(3,request.getParameter("vou_n o"));

int rowCount = pstatement.executeUpdate();
conn.setAutoCommit(false);
conn.setAutoCommit(true);


its coming error

help


Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help in updation sanjeev jha Classic ASP Basics 0 November 12th, 2007 04:17 AM
updation prob.......... abhit_kumar MySQL 0 December 14th, 2004 08:06 AM
Problem in updation abhit_kumar JSP Basics 3 November 30th, 2004 09:47 AM
updation problem abhit_kumar Pro JSP 0 November 25th, 2004 01:44 AM
updation of datasource abhimca_1 ADO.NET 0 August 5th, 2003 07:23 AM



All times are GMT -4. The time now is 02:51 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.