• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic