
is it possible to use jsp inside the javascript while using java script in body tag on that time i am calculate number of records in mysql, so that i am using jsp.if count value is positive, javascript do some operation ,if count value is negative, javascript do some operation.

Please visit the following link:
Use JSP variable in Javascript
Here you will get an example that will pass the jsp variable to javascript.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.