Next Step wrote:

> At 12:46 AM 2/7/2002 +0300, you wrote:
>
>> Hello, Unknown Person! ("Next" can not be your name!)
>
>
> Sorry, it was typo, it should be :
> 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.
>
>
> Even with this (only), still doesn't not works.
>
> <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?
>
>
> I think so, because it was "official reference" :), but i never success
> using "alternative" syntax.
> What is the other Container which support XML SYntax?


Are you sure you're JSP page is an accurate JSP Document (i.e.,
has <jsp:root> as the root element, etc.)? See Chapter 5 in the
JSP 1.2 specification for details. The XML syntax is only supported
in a JSP Document (i.e., you can not just replace <%= ... %> with
<jsp:expression>...</jsp:expression>).

I would be very surprised if it doesn't work in Tomcat 4, but if you
like to try another container, any one that supports JSP 1.2 will
do. You can find out which ones that do at:

   <http://java.sun.com/products/jsp/industry.html>

The list may not be 100% up-to-date, but it's a start.

Hans
--
Hans Bergsten           [EMAIL PROTECTED]
Gefion Software         http://www.gefionsoftware.com
JavaServer Pages        http://TheJSPBook.com

===========================================================================
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