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++)
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);
catch(Exception e)
datas are updated
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.
This is repost from here:
Message was edited by:

Similar Messages

Maybe you are looking for

  • Docking station display doesn't activate after upgrading display driver

    I have a ThinkPad T400. I just reinstalled Windows 7 (64-bit) using a clean image. The automatic display driver that Windows found was for ATI Mobility Radeon HD 3400 Series from 2010. When I put the laptop onto the ThinkPad docking station, the moni

  • Thinkpad W520/T61p Bad experience

    I am sharing this story in retrospect of the events.  I posted this on a popular tech blog on a thread discussing bad experience with different computer companies and I decided why not post it here as well.  I am still grieving over my dead T61p as i

  • Wifi on ipad 2

    Is there something that will extend the reach of my wifi on ipad 2?  I didn't get it with 3G.

  • Qosmio G30 installation problem

    Hello all guys I have a huge problem I have a Qosmio G30, recently recurrence, or used the disk, format it, confg. RAID, it will restart the formatting begins, ends restarts, and the problem here. At the restart should take at the end of installation

  • Mail Alias support

    Another question before I'd change to Blackberry: I use a mail account with several alias-adresses. On Android I installed K9-Mail where I can set more identities per mail account and which also will reply with the correct mail address. That means: i