When JSP was first introduced, room was left for implementations that use languages other than
Java. This is why we have the
language attribute in the
page directive. At the time, Microsoft's ASP gave the developer the ability to write their server side code in either VBScript or Javascript. I'm guessing this is where the idea originated.
To the best of my knowledge, nobody has ever implemented a JSP compiler that accepts anything but Java.