...

View Full Version : embeding javascript code within jsp code



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.

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum