aspose 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
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/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jsp polling