Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sun's JSP Syntax card: spaces not allowed around equals sign

 
Al Pearson
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
At the top of the card, as a general comment, it reads:
"Spaces are not allowed between an equals sign and an attribute value".
However, the following Spaces.jsp compiles and runs ok on Tomcat 4.0.3:
--------------
<%@ page session="true" buffer = "8kb"%>
<center>
<h3>This is from Spaces.jsp.
The date is
<%= new java.util.Date() %>
</h3>
</center>
--------------
giving:
-------------
<center>
<h3>This is from Spaces.jsp.
The date is
Fri Dec 13 16:06:02 CET 2002
</h3>
</center>
-------------
Note the spaces before and after the equals sign of the buffer attribute.
In the JSP 1.2 spec I can't find a similar prohibition of spaces around
the equal sign.
Someone please lighten my darkness.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic