It's an important detail, and the spec seems clear enough (2.1.6):

"This specification follows the whitespace behavior defined for XML, that
is; all white space within the body text of a document is not significant, but
is preserved."

Therefore, the whitespace between the two expressions should have been
preserved, i.e., passed through as template text. So I'd say it's a JRun bug, at
least per the 1.0 spec.

But maybe my interpretation of the spec is wrong, so I'm copying
jsp-spec-comments with a request for clarification.

Bob Foster
Symantec Internet Tools  http://www.visualcafe.com/


______________________________ Reply Separator _________________________________
Subject: Re: no spaces - bug in JRun?
Author:  David Wall <[EMAIL PROTECTED]> at Internet
Date:    6/17/99 2:02 PM


> Greetings,
>
> The following piece of code puts no spaces between elements:
>
> <%= r.getElement(1) %>   <%= r.getElement(2) %>
>
> is that the way it should be?  I'm forced to put &nbsp; to have a space
> between these two strings.
>
> Any one had this problem?
>
> dave.


HTML and JSPs are supposed to ignore whitespace, but this may just be going
too far.  Regardless, adding an &nbsp; doesn't seem like a hardship, and I
suspect arguing whether it's a bug will be pointless since I doubt that the
JSP spec is really all that clear on such a detail.

David

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to