impossible in this way
all your javascript code in between <% %> will give you nothing but some syntax errors.
The biggest problem with your code is that javascript code and jsp code runs at different levels. Your jsp files will generate the javescript code. And your javascript code will probably run on the client, while jsp code runs on the server.
I guess you want to get some "count" value from the client side, a good try will be making some http requests with obj.download() function. check msdn dhtml reference for details.
The biggest problem with your code is that javascript code and jsp code runs at different levels. Your jsp files will generate the javescript code. And your javascript code will probably run on the client, while jsp code runs on the server.
I guess you want to get some "count" value from the client side, a good try will be making some http requests with obj.download() function. check msdn dhtml reference for details.