wood burning stoves 2.0*
The moose likes Servlets and the fly likes Java Servlet database transaction problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Java Servlet database transaction problem" Watch "Java Servlet database transaction problem" New topic
Author

Java Servlet database transaction problem

muntago Richard
Ranch Hand

Joined: Nov 13, 2010
Posts: 82
Good day everybody, This code was aimed in performing price transaction but when i run it it display an error shown below



below is the main code thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

This is basic Java. You can't use an uninitialized variable in an expression.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

Also, please follow Java naming conventions. Variables should begin with a lower-case character.
muntago Richard
Ranch Hand

Joined: Nov 13, 2010
Posts: 82
I used lower case but the error persist
thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60782
    
  65

Did you read my previous reply?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Servlet database transaction problem
 
Similar Threads
Finally Block issue with close methods
Connection Pooling Problem
error on statement
Need Code Review
BLOB insertion into the database hangs