Using Scripting
JSP technology allows a container to support any scripting language that can call Java objects. If you wish to use a scripting language other than the default,
java, you must specify it in thelanguageattribute of thepagedirective at the beginning of a JSP page:Because scripting elements are converted to programming language statements in the JSP page's servlet class, you must import any classes and packages used by a JSP page. If the page language is
java, you import a class or package with theimportattribute of thepagedirective:The
webclientJSP pageresponse.jspuses the followingpagedirective to import the classes needed to access the JAX-RPC stub class and the web service client classes: