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

  • Looking for a Hard Case/Shell for my new Retina MacBook Pro 15"?

    I am looking to buy a shell/case for my rMBP (October 2013) it hasn't arrived yet, but obviously I want it to be protected asap. I don't know what the model number is, but it is the lower spec 15" Retina MacBook Pro that I have purchased. How can I m

  • Passing arguments to a WorkFlow launched from a Link field in a form

    Hi. Anybody knows if it's possible to pass some argument to a WF launching it from a form? In the form from which I call the WF, I have a var that contains a list. This list has to be passed as an argument to the WF. The code: <Field>   <Display clas

  • Integration_Directory_HMI connection test is very slow

    HI all This RFC connection test is success by giveing 500 status code. But it is taking lot of time like 20Min. Can some one suggest what is the problem. How can I tune it?

  • Itunes force quitting

    whenever i click on a certian imported movie all itune does it force quit i cant delete it and i cant do anything to it i need some help no matter what i try to do to the movie itunes automatically forcequits and i cant do anything to stop it

  • Goods receipt for STO'S

    Hi Gurus We create STO'S ( with in same plant  and between two storage locations) and followed by delivery ,PGI with 641 movement type.When we run the MD04  list we have the open items because we haven't done the goods receipt when goods issue is don