JSP, BSF, Taglibs and mycgiserver.com

From: Phil Powell (soazine_at_erols.com)
Date: 11/26/03

  • Next message: Amardeep Verma: "Re: Why not only one interface for a EJB ??"
    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:&nbsp;
    <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


  • Next message: Amardeep Verma: "Re: Why not only one interface for a EJB ??"

    Relevant Pages

    • JSP, BSF, Taglibs and mycgiserver.com
      ... here is my JSP code: ... HTML. ... >get the following error thrown each time I run ... >What steps do I need to do to ensure BSF working in ...
      (comp.lang.java.programmer)
    • JSP, BSF, Taglibs and mycgiserver.com
      ... here is my JSP code: ... HTML. ... >get the following error thrown each time I run ... >What steps do I need to do to ensure BSF working in ...
      (comp.lang.java.help)
    • A struts 2 label error
      ... Below is my JSP code. ... Preview it in tomcat, an error comes out. ...
      (comp.lang.java.programmer)
    • Does FrontPage mess up JSP code?
      ... We maintain our Web sites using Microsoft FrontPage. ... adding some JSP code to the HTML pages, but people have told us that ... FrontPage messes up JSP code or can't display the JSP portions on the Page ...
      (comp.lang.java.programmer)