Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in printing data in JSP  RSS feed

 
Vinayak patil
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have the following code in my JSP:


i.e there is no space immediately after "<". In this case, I only get a partial output i.e till (var i=0;i only.

However if I put a space after <, i< test then I get the full display

(var i=0;i< test;i++)

I guess it is because when there is no space it is treated as a opening tag and so the display stops.
Is is due to the above? Or is there another explanation.

Thanks in advance for any light you can shed on this.

-Vinayak
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36417
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes. <test means a tag to HTML. Have you tried &lt;test? The ampersand tells the HTML that it is meant to be a literal string.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!