Subj : Using Rhino Javascript within BSF for JSP pages To : netscape.public.mozilla.jseng,comp.lang.javascript,comp.lang.java.help,comp.lang.java.programmer,comp.lang.java.misc From : "Phil Powell" Date : Fri Nov 28 2003 02:28 pm I have a page I am trying to develop using BSF within JSP (site: http://www.mycgiserver.com/~ppowell/tcltest.jsp) where I am learning BSF for the first time and, so far, not producing any favorable results. I have it so the page does not throw errors, unfortunately, it does nothing else as well. I am having to do this remotely I'm afraid as well. Here is the JSP code: <%@ taglib uri="http://jakarta.apache.org/taglibs/bsf-2.0" prefix="bsf" %> Tcl Test x $out println {Hello World} puts $out "Time in TCL: [clock format [clock scan now] -format "%A %b/%d/%Y"]" y out.println(""); for (i=60; i<=100; i+=10) { out.println ("") out.println ("") out.println ("") out.println ("") }
JAVASCRIPT - VARF" + String.fromCharCode(246).toUpperCase() + "RS?
" + i + "" + Math.round((i - 32)*5/9) + "
new java.util.Date()

Time in TCL:  [clock format [clock scan now] -format "%A %b/%d/%Y"]

And the bsf.tld XML-based tag library descriptor is housed in the same directory as the JSP script. The bsf.jar file is housed outside of my directory toward the root and I have no direct access to it. I would love for someone with some experience in this to help me out as I just can't get the danged thing to work to save my life! Thanx Phil .