Hi,

I am using a simple code to retrieve values from database. but i am getting error while i retreive an Integer value on line number 3 , 4 5.

<%  line1		while(rs.next()){
	      line2		String productname = rs.getString(1);
	      line3		int productprice = rs.getInteger(2);
	      line4		int cartid  =rs.getInteger(3);
	      line5		int qty = rs.getInteger(4);					
			counter ++;
%>

please help. I am using MS Access database

Try with rs.getInt(2), not with getInteger(2).

Hi,

I am using a simple code to retrieve values from database. but i am getting error while i retreive an Integer value on line number 3 , 4 5.

<%  line1		while(rs.next()){
	      line2		String productname = rs.getString(1);
	      line3		int productprice = rs.getInteger(2);
	      line4		int cartid  =rs.getInteger(3);
	      line5		int qty = rs.getInteger(4);					
			counter ++;
%>

please help. I am using MS Access database