Hello, Next!

NS> Sorry, it was typo, it should be :
NS> Date : <jsp:expression>new java.util.Date()</jsp:expression>

>>I'm not an expert, but I believe you can not mix
>>normal <%= %> and jsp <jsp:expression> syntax.
>>If you want to use XML syntax you should go for
>>it completely by enclosing your whole page with
>><jsp:page> and all the stuff.

NS> Even with this (only), still doesn't not works.

NS> <jsp:expression>new java.util.Date()</jsp:expression>

>>Even if you do it, I'm not sure if Tomcat 4.0.1
>>will accept it.
>>
>>Hey, people! Does Tomcat 4.0.1 accept pages in the
>>XML syntax already?

NS> I think so, because it was "official reference" :), but i never success
NS> using "alternative" syntax.
NS> What is the other Container which support XML SYntax?

Okay, I have tried it, the following example works fine for me:

<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page";>
<jsp:text><![CDATA[
<HTML><BODY>
]]></jsp:text><jsp:expression>"aaa"+"bbb"</jsp:expression>
<jsp:text><![CDATA[
</BODY></HTML>]]></jsp:text>
</jsp:root>

on Tomcat 4.0.1, it produces

<HTML><BODY>
aaabbb
</BODY></HTML>

just as expected.

Good luck! :-)

- Anton
[EMAIL PROTECTED]
[EMAIL PROTECTED]

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to