JSP, BSF, Taglibs and mycgiserver.com
From: Phil Powell (soazine_at_erols.com)
Date: 11/26/03
- Previous message: Phil Powell: "Re: Embedded TCL in JSP produces no output using BSF"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 25 Nov 2003 23:44:53 -0500
Update.. here is my JSP code:
<%@ taglib uri="bsf.tld" prefix="bsf" %>
<html>
<head>
<title>Tcl Test</title>
</head>
<body>
x
<bsf:scriptlet language="tcl">
$out println {Hello World}
puts $out "Time in TCL: [clock format [clock scan now] -format "%A
%b/%d/%Y"]"
</bsf:scriptlet>
y
<table border=0>
<bsf:scriptlet language="javascript">
out.println("<tr><td colspan=2>JAVASCRIPT - VARF" +
String.fromCharCode(246).toUpperCase() +
"RS?</td></tr>");
for (i=60; i<=100; i+=10) {
out.println ("<tr ALIGN=RIGHT BGCOLOR=\"#CCCCCC\">")
out.println ("<td>" + i + "</td>")
out.println ("<td>" + Math.round((i - 32)*5/9) + "</td>")
out.println ("</tr>")
}
</bsf:scriptlet>
</table>
<bsf:expression language="javascript"> new java.util.Date()
</bsf:expression>
<p><p>
Time in TCL:
<bsf:expression language="tcl">
[clock format [clock scan now] -format "%A %b/%d/%Y"]
</bsf:expression>
<p>
</body>
</html>
The script (at http://www.mycgiserver.com/~ppowell/tcltest.jsp) no longer
throws an error. Unfortunately, it does nothing else either except display
HTML. What else do I need to do? Do I need to have appropriate JAR files,
etc.? I really could use some help I'm floundering here.
Thanks
Phil
Phillip Powell (ppowell) wrote:
>
>http://www.mycgiserver.com/~ppowell/tcltest.jsp
>is my JSP page with BSF, however, I continually
>get the following error thrown each time I run
>this page:
>
>java.lang.ClassNotFoundException:
>bsf.scriptlet
>
>What steps do I need to do to ensure BSF working in
>this environment since I cannot access web.xml
>to do anything? I really need some help here.
>
>Thanx
>Phil
- Previous message: Phil Powell: "Re: Embedded TCL in JSP produces no output using BSF"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|