I'm not entirely sure what you are looking for. It's certainly possible to put JavaScript in JSP, so that the JavaScript is sent to the browser with the HTML. It's also possible with some JSP containers to write the dynamic parts of your JSP in server-side JavaScript instead of Java. What do you need this for? If you give a few more details I'm sure we can help solve your problem.