Re: "`javascript' is not supported as a JSP scripting language."
JavaJosh <[email protected]> Wed, 10 May 2006 08:05:33 -0700
| Newsgroups | gmane.text.xml.resin.user |
|---|---|
| Organization | JavaJosh Enterprises, LLC |
| Message-ID | <[email protected]> |
JavaJosh wrote: > I thought Resin was unique in that it supported server-side Javascript, Consider http://caucho.com/resin-3.0/jsp/directives.xtp#language "<%@ page language="lang" %> Sets the JSP script language to lang. Defaults to Java. All JSP 1.0 implementations must support Java. Some implementations, like Resin, may support other scripting languages, e.g. JavaScript." Alas, this: <%@ page language="JavaScript" %> gets you get this: <html> <head><title>500 Servlet Exception</title></head> <body> <h1>500 Servlet Exception</h1> <code><pre> /ahoy.jsp:1: `JavaScript' is not supported as a JSP scripting language. </pre></code> <hr /><small> Resin-3.0.18 (built Fri, 24 Feb 2006 02:47:03 PST) </small> </body></html> Que paso, Caucho? (And actually, come to think of it this doesn't bother me all that much for my purpose, since it would actually be better for me to be able to explicitly call the JavaScript engine from Java - e.g. something like a custom tag: <jj:javascript "/script.js" "function-name" "string arguments possibly EL, possibly a DOM reference"/> ['jj' stands for the javajosh taglib, of course] That would allow me to continue using handy-dandy Java tags in the rest of the page and call out to js when dynam(ic)ite scripting is needed. With a page directive I'm kinda stuck with one or the other. Or maybe even include a script in the body of the tag? (That would be sweeet) If you can give me a pointer on doing this all is forgiven with the broken page directive thing. :) -Josh