Any one pleasse help me, really urgent

Dear friends and every one,
How to store a array of datas into database.....i am print in the next page but not able to store....
i will show you the codings, please give your valuable suggestions
<%
String s1=(String)session.getAttribute("eid");
String s3[]=request.getParameterValues("language");
int j=0;
try {
for (int i = 0; i < s3.length; i++)
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:langskill");
PreparedStatement pStmt = con.prepareStatement("update lang set(language) values (?) where eid=? ");
// pStmt.setString(2, s3);
pStmt.setString(1, s1);
pStmt.execute();
catch(Exception e)
System.out.println(e);
%>
<%
if(j>0)
%>
datas are updated
<%
else
%>
datas are not updated
<%
%>
Thanxs in advance

Please use code tags ( select all relevant text and click the code button on top of the message window while posting ) it makes things easier for everyone.
What exactly is the problem? What exception are you getting? Please post the stack trace.
As far as I can tell, you're not setting the second placeholder in your preparedStatement and also, is your SQL query for update correct? I'm not sure about the syntax but it seems to be wrong to me.
Edit:
This is repost from here: http://forum.java.sun.com/thread.jspa?threadID=5166401&tstart=0
Message was edited by:
nogoodatcoding

Similar Messages

Maybe you are looking for

  • Can't get rid of an unwanted update...

    Since upgrading to Yosemite, I had the usual updates in the App Store for Keynote, Pages, etc. But Apple Remote Desktop also showed up as having an upgrade even though I have the latest version.  I did not purchase ARD through the App Store, it was a

  • How to create a String with a specific size?

    how to create a String with a specific size? For example I want to create different Strings with the size of 100 , 1000 or 63k byte?

  • What are the available software and apps for ipod nano

    what are the available software and apps for ipod nano

  • FORGOT MY USERNAME AND PASSWORD!

    please help. i want to change my wireless protection, but i forgot my username and password. model of router is WRT120N. thanks.

  • Report-wrong o/p

    hi all, in the code below am getting a wrong o/p that o/p values are repeated,kindly check n plz help me... loop at it_docu where awtyp = 'BKPF'. select AUGBL              INTO TABLE IT1                from bseg                where   bukrs = '1000'