swethak
11-27-2008, 06:30 AM
hi,
i have a javascript variable
var monthNum and i assigned some value in javascript.Now i use that variable in jsp as
<%
pstatement2 = connection.prepareStatement("Select * from importtimetable where month='"+monthNum+"'");
%>
In that where condition monthNum is jascript variable. I used like that i got a error.
Could plz tell that correct syntax i have to use in that place.
i have a javascript variable
var monthNum and i assigned some value in javascript.Now i use that variable in jsp as
<%
pstatement2 = connection.prepareStatement("Select * from importtimetable where month='"+monthNum+"'");
%>
In that where condition monthNum is jascript variable. I used like that i got a error.
Could plz tell that correct syntax i have to use in that place.