This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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: 63208
    
  69

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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Problem executing SQL in SERVLET.
 
It's not a secret anymore!