I am using sql server 2005 and the connection using java connector is successfully established,but is unable to populate records .The error i am getting is
DB query
SELECT item_id,item_name,item_code FROM item_mast
Error during data selecting
Invalid SQL: SELECT item_id,item_name,item_code FROM item_mast
ResultSet may only be accessed in a forward direction.
the servlet is correctly mapped 'coz i am getting the result output printed to my console using system.out.println().Please see the attached java file. itemmasterservlet.rar (630 Bytes)
Code looks correctly for me.
Which webserver you are using? ( local test were done on Tomcat, but it must work on any servlet capable server, as code doesn’t use any specific APIs )