This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Problem executing SQL in SERVLET. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic
Author

Problem executing SQL in SERVLET.

Arya Quskhan Shah
Greenhorn

Joined: May 06, 2006
Posts: 6
Hi all,
This is the first message,I need your help please.
I develope servlet which retrieve data from mobile and process it through httpconnection then compare it with database.
I have the problem in servlet while trying to executeQuery from SQL.
Here is the full code of servlet :


The problem is while trying to execute SQL there are always throw to the "else stage" even if the orderNumber which key-in correct as same in the database. Thats mean ResultSet cannot execute query of SQL.
How to execute query SQL with the correct ways???
Anyone...please advice me how to solve this servlet problem..
Thanks you for immediately response.
[ May 07, 2006: Message edited by: Bear Bibeault ]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60785
    
  65

Please do not cross-post the same question in multiple forums. It wastes people's time when multiple redundant conversations take place.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem executing SQL in SERVLET.
 
Similar Threads
Unable to find specific product
Problem in getting the data from DB using servlets
Access database from a class file
J2ME connecting database in Server using Servlet
exception while running code