File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes jsp polling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSP
Reply locked New topic
Author

jsp polling

kanan devi
Greenhorn

Joined: Oct 27, 2008
Posts: 9
i tried following code but it is not working


try
{
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
Connection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://database:1433","sa","123");
Statement st2=conn.createStatement();
String sql1 = "INSERT INTO tab.dbo.poll (a) VALUES ('"+radioVal+"')";
Statement st1=conn.createStatement();
st1.executeUpdate(sql1);
st1.close();
conn.close();
}
catch(Exception ex)
{
out.println(ex.getMessage());
}
%>
Adeel Ansari
Ranch Hand

Joined: Aug 15, 2004
Posts: 2874
Duplicate post.
http://www.coderanch.com/forums/
 
wood burning stoves
 
subject: jsp polling
 
Similar Threads
jdbc problem problem problem
How must i "synchronize" my servlets?
polling in jsp
java.sql.SQLException: ORA-01858: a non-numeric character was found where a numeric was expected
Error while inserting data into from a JSP Page