Amir,

Couldn't quite tell from your output, but check that the script has the 
following structure... notice the DOCTYPE ("script" and "3_0"). This is 
working for me in 4.0beta12.

hth
- Phil

<!DOCTYPE script PUBLIC
  "-//Apache Software Foundation//Tapestry Script Specification 3.0//EN"
        "http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd";>
<script>

<body>
        // functions
</body>

<initialization>
        // code to be run onload
</initialization>

</script>


On Wed, 9 Nov 2005 08:24, [EMAIL PROTECTED] wrote:
> Sorry,
>
> I forgot to mention that the script is located under the /WEB-INF
> directory.
>
> Thanks,
> Amir
>
> [EMAIL PROTECTED] wrote:
> Hi,
>
> I am new to Tapestry and I am having some problems with the Script
> component.
>
> I get the an exception when I try to include a script.
>
> Here is my .html:
>
> ...
>
>
>
>
>
>
> ...
>
> And my .page:
>
>
>
> ...
>
>
>
>
>
>
>
> Here is the excpetion:
>
> org.apache.hivemind.ApplicationRuntimeExceptionUnable to parse script
> context:/focus.script.location:context:/focus.script, line 4, column 61
> 1256 [input] 78function setupFocus() {9${component}.focus();  
> org.apache.tapestry.util.xml.DocumentParseExceptionUnable to parse
> jndi:/localhost/ifd-dev/focus.script:
> jakarta.apache.orglocation:context:/focus.script, line 4, column 61 1256
> [input] 78function setupFocus() {9${component}.focus();
>
> I am using Tapestry 4.0 beta 12.
>
>
>
> Thanks,
>
> Amir

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to