You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Ajit Raj <aj...@hotmail.com> on 2007/05/01 19:26:13 UTC

Problem of loop in client script with tapestry

Hi,

I try to use "for" or "while" in the scirpt of a tapestry page as shown 
below. But it keeps give the error of "Unable to parse 
jndi:/localhost/WebRpt/WEB-INF/secure/PageRender.script: The content of 
elements must consist of well-formed character data or markup." Could anyone 
let me know what the problem is?

Thanks,


Ajit

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

402 var i=0;
403 var msg = "";
404 var x = 1;
405 while (x <= 10)   <=========== complaining error here
406 {
407 msg = msg + x + "\n";
408 x++;
409 }
410

_________________________________________________________________
Don’t quit your job – Take Classes Online and Earn your Degree in 1 year. 
Start Today! 
http://www.classesusa.com/clickcount.cfm?id=866146&goto=http%3A%2F%2Fwww.classesusa.com%2Ffeaturedschools%2Fonlinedegreesmp%2Fform-dyn1.html%3Fsplovr%3D866144


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Problem of loop in client script with tapestry

Posted by Jesse Kuhnert <jk...@gmail.com>.
< isn't well formed character data. You can replace it with &lt; and it'll
probably work then.

On 5/1/07, Ajit Raj <aj...@hotmail.com> wrote:
>
> Hi,
>
> I try to use "for" or "while" in the scirpt of a tapestry page as shown
> below. But it keeps give the error of "Unable to parse
> jndi:/localhost/WebRpt/WEB-INF/secure/PageRender.script: The content of
> elements must consist of well-formed character data or markup." Could
> anyone
> let me know what the problem is?
>
> Thanks,
>
>
> Ajit
>
> <!DOCTYPE script PUBLIC
>         "-//Apache Software Foundation//Tapestry Script Specification 4.0
> //EN"
>         "http://jakarta.apache.org/tapestry/dtd/Script_4_0.dtd">
> ...
>
> 402 var i=0;
> 403 var msg = "";
> 404 var x = 1;
> 405 while (x <= 10)   <=========== complaining error here
> 406 {
> 407 msg = msg + x + "\n";
> 408 x++;
> 409 }
> 410
>
> _________________________________________________________________
> Don't quit your job – Take Classes Online and Earn your Degree in 1 year.
> Start Today!
>
> http://www.classesusa.com/clickcount.cfm?id=866146&goto=http%3A%2F%2Fwww.classesusa.com%2Ffeaturedschools%2Fonlinedegreesmp%2Fform-dyn1.html%3Fsplovr%3D866144
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Jesse Kuhnert
Tapestry/Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com