Vamsi Mohan wrote:A Java Server Page is a completely web based content. JSP pages contain a mixture of HTML, Java scripts (not to be confused with JavaScript) ...
Although the use of Java scriptlets in JSP pages is considered a poor practice at this juncture, replaced by the JSTL and EL.
And, a JSP can certainly contain JavaScript. Think of a JSP as a template for an HTML page.