Re: jsp tag



On Dec 30, 11:49 pm, Alain <alain.dha...@xxxxxxxxx> wrote:
Is there a reason why  a jsp tag in a xml format doesn't work with the
implicit out object?

<jsp:scriptlet>

            out.println("<p><b>text</b></p>");

        </jsp:scriptlet>

I get following error :  unterminated <jsp:scriptlet> tag

When i use
<%
    out.println("<p><b>text</b></p>");
%>
it works.

thx,

The content model of a <jsp:scriptlet> tag does not prevent <p> from
being interpreted as a tag. Try placing the script within a CDATA
section:

<jsp:scriptlet><![CDATA[
out.println("<p><b>text</b></p>");
]]></jsp:scriptlet>


.



Relevant Pages

  • Validating to a higher 4.01 standard (long)
    ... The next step is to copy these HTML documents to a new directory (so you do ... onmousedown %Script; #IMPLIED ... datafld CDATA #IMPLIED ... href %URI; #IMPLIED ...
    (alt.html)
  • Re: RFD: How To Recognize Bad Javascript Code
    ... Elements consist of tags ... Your example `script' elements are empty where they should have ... | Using the pseudo-protocol javascript in the href is never valid. ... Some web developers use this to work ...
    (comp.lang.javascript)
  • Re: how to create a MultiLine string
    ... that is necessary for script tags. ... for ETAGO followed by 'SCRIPT'. ... CDATA at the very first ETAGO, and HTML authors have no justification ... (It is also worth noting that ISO 8879 Appendix B is explanatory text ...
    (comp.lang.javascript)
  • Re: Community problem
    ... >I belong to a small web community that is based around a horse racing game. ... >On the site we have a disscussion forum for the members to post messages, ... The script he uses is placed in the message ... Any unclosed tag in the same position would probably do the same. ...
    (comp.lang.javascript)
  • Re: Retrieving special characters
    ... getting more confused about handling special characters. ... In HTML will be concidered as a tag, ... does not concider them as control characters such as tag delimiters. ... Script Archive is the most classic exploited script. ...
    (comp.lang.php)