Java – JSP page instructions with language attributes
I read that with this attribute, I can choose which scripting language to use
Now I use Java, but is there a container that can use groovy, jruby or other to generate servlet code?
If there is a language different from Java, is it correct to use it with JSP? It should be compiled into bytecode compatible with the JVM So should the web container be able to convert it into a servlet?
Solution
According to JSP specification, this attribute is used to declare the scriptlet, expression and language used in the declaration in JSP pages
In JSP 2.1 (the latest specification), the only defined and required scripting language. The value of this attribute is Java (all lowercase, case sensitive) This is correct for the previous specification
At present, as far as I know, no container supports other languages required by the specification But if so; As you said; It should compile it into a standard servlet
If you plan to use jruby, you may need to check Ruby on rails; Groovy's Grails