View Full Version : embeding javascript code within jsp code

11-27-2008, 07:30 AM

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.

11-27-2008, 07:19 PM
javascript runs only on the browser and jsps run only on the server...they don't run together...ever