Program.in

By Santosh Wadghule

Archive for December 2007

Deleting multiple records through Checkbox with jsp

without comments

In my project To-Do List , I had a problem about how to delete multiple records through checkbox, for that I was searching code and I got link which was very suitable for for my project. Make following code as delete.jsp

<%@ page import="java.sql.*"%>
<%

String deleteArray[] = request.getParameterValues("select");
String selected="";

if (deleteArray != null) {

if(deleteArray.length == 1) {

// Only one item is selected
selected = deleteArray[0];

} else {

// multiple items selected
for (int i = 0; i < deleteArray.length; i++) {

selected += deleteArray[i];

if( i < deleteArray.length -1) {
selected += ",";
}
}
}
}
%>
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection c = DriverManager.getConnection("jdbc:odbc:Task","","");
Statement st = c.createStatement();
PreparedStatement pst = c.prepareStatement("DELETE FROM tasklist WHERE task_id IN
("+selected+")");
pst.executeUpdate();
%>

If you want to know more about it,then follow this link http://forum.java.sun.com/thread.jspa?threadID=629227&messageID=3633428

Written by Santosh Wadghule

December 31, 2007 at 7:55 pm

Posted in Java, Uncategorized

Youngest FAN OF A R Rahman

without comments

Today,
I was searching the A R Rahman’s music video on youtube.com. Then i got interesting video which is that one years child’s fav song — Tere Bina from movie Guru — If you play any other song he will cry if you play this song he will be in peace– Check it out.
Youngest FAN OF A R Rahman

Written by Santosh Wadghule

December 28, 2007 at 7:30 am

Posted in Uncategorized

Will buy Nokia 3500 classic in this month !!!

with one comment

Last tow months I was thinking that to buy new mobile. For that I was searching  different moblies. At last I decided NOKIA 3500 classic will my new mobile which is fit for function which is I want. Its pretty good looking.

Nokia 3500

If you want to know more about Nokia 3500 classic then click here

Written by Santosh Wadghule

December 2, 2007 at 3:14 pm

Posted in Uncategorized