Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!