Embedded TCL in JSP produces no output using BSF

P

Phil Powell

I am using ColdFusion MX 6.1 App Server with JRun under the hood, Win
2000 Pro. I was successfully able to install the JAR files necessary
to write JSP templates using BSF (Bean Scripting Framework) according
to info in http://jakarta.apache.org to do so.

I have my TLD file in the /WEB-INF folder; I included the right tags
in my build.xml file in /WEB-INF, and I have all JAR files, including
jacl.jar, in my JVM classpath utilized by JRun within ColdFusion 6.1
MX App Server.

Upon executing my JSP files whenever I have as my BSF scripting
language Javascript, everything runs fine; however, when I change the
language to any other language out there, including those supported by
BSF itself (which includes TCL), I get no output.

Here is the code snippet I'm running:

<bsf:scriptlet language="tcl">
$out println {Hello World}
$out println [clock format [clock scan now] -format "%m %d %YYYY"]
</bsf>

As output I see absolutely nothing, however, all HTML, other JSP tags
and BSF tags using Javascript execute just fine before and after this
snippet.

Again I checked and jacl.jar is in the classpath and all pertinent
files are within jacl.jar and also in bsf.jar, yet I can only operate
Javascript.

Anyone out there with some expertise in this matter please let me know
what else I should be doing.

Thanks
Phil
 
P

Phil Powell

Yes I was gonna say that did not work either, same results.. no output
either with "puts" nor with "$out println"..

Phil

Aric Bills said:
Never mind...

Aric Bills said:
<bsf:scriptlet language="tcl">
$out println {Hello World}
$out println [clock format [clock scan now] -format "%m %d %YYYY"]
</bsf>

Maybe you need "puts" instead of "println"?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top