JSP tags are only meaningful when translating JSP pages. If you have
JSP tags embedded in javascript code, then the javascript code has to be
present inline in the page, or included from an include directive.
The latter is probably your best bet for sharing this code (make sure
it's an include
script language=Javascript1.2 src=html:rewrite
page=/myjs.jsp//script
and my myjs.jsp looks like:
%@ page language=java %
%@ page contentType=application/x-javascript %
%@ taglib uri=/WEB-INF/struts-html.tld prefix=html %
// javascript and JSP tags go here...
--
Voytek Jarnot
Quidquid latine
2 matches
Mail list logo