Mmmmm, interesting Question

According to JSP spec version 1.1..

2.1.3 Start and End Tags

Elements that have distinct start and end tags (with enclosed body) must
start and end in the
same file. You cannot begin a tag in one file and end it in another.
This applies also to elements in the alternate syntax. For example, a
scriptlet has the syntax
<% scriptlet %>. Both the opening <% characters and the closing %>
characters must be in
the same physical file.

2.1.4 Empty Elements

Following the XML specification, an element described using an empty tag is
indistinguishable from one using a start tag, an empty body, and an end tag.


7.4.2 Scriptlets

In the XML document corresponding to JSP pages, directives are represented
using the
syntax:
<jsp:scriptlet> code fragment goes here </jsp:scriptlet>
DTD Fragment

<!ELEMENT jsp:scriptlet (#PCDATA) >


As #PCDATA can be an empty string I would think that <%%> should be valid
(and certainly whitespace)

Comments ??

Justin MacCarthy

>-----Original Message-----
>From: Michael Mertel [mailto:[EMAIL PROTECTED]]
>Sent: Monday, December 18, 2000 3:54 PM
>To: JRun-Talk
>Subject: empty scriptlets allowed?
>
>
>Hi fellow JRunners,
>
>we are currently implementing an e-Commerce solution and the
>company delivered .jsp files with empty scriptlets:
>
><%
>%>
>
>or
>
><% %>
>
>which JRun returns with an
>
>allaire.jrun.jsp.ParseException: Encountered "%>" at line 1, column 4.
>Was expecting:
>     ...
>
>
>So ... simple question ... are empty scriptlets are allowed per definition?
>Just need to know which company I should contact, Allaire if its a JRun
>bug or the e-Commerce company.
>
>JRun 3.0 SP1 running under linux with sun jdk 1.3.0
>
>Thanks in advance.
>
>
>
>
>//
>// Mit freundlichen Gruessen - Kind regards
>// Michael Mertel
>//
>// Bit World Computing eK
>//  Sedanstrasse 27, 97082 Wuerzburg, Germany
>// Phone +49 931 45335 0  -  FAX +49 931 45335 99
>// http://www.bwc.de
>// Amtsgericht Wuerzburg HRA 4937
>//
>// one bit ahead ... since 1993
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to