Hi ,

Scala has an interpreter which I intend to call in the eval method of my
script engine to run scripts.
To check whether it's loading I did the following,

I have set the mime type using "setMimeTypes" as "text/scala" and name using
"setNames" as "scala" in the Script Factory. Using the example provided in
discover Sling in 15 minutes as a reference I edited the html.esp as
follows,

<html>
  <body>
    <script type="text/scala" name="scala">
      document.write("<p><b>Hello World!<\/b>")
    </script>
  </body>
</html>

then I renamed it as html.scala.

using curl I deployed the html.scala file to content/mynode.

when i navigate to "http://localhost:8888/content/mynode.html";  the browser
doesn't show the "Hello World!" message .

1. I think there's something wrong in this approach though I can't figure it
out. Should I change some setting in sling to      display the message ?.

2. How can I run scripts written in languages other than javascript that's
currently supported by sling ?


janandith.

Reply via email to