Hello, Unknown Person! ("Next" can not be your name!) 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 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> Hi, NS> Sorry, I'm new to jsp. NS> Why this second expression doesn't work? NS> ---<cut>--- NS> Date : <%= new java.util.Date() %> NS> <br> NS> Date : <jsp:expression>new java.util.Date()<jsp:expression> Let me guess: if you do view source in your browser you see all <jsp:expression>new java.util.Date()<jsp:expression> there, don't you? The servlet container understood as normal template data and sent to the client as is... NS> ---<cut>--- NS> Output : NS> Date : Wed Feb 06 10:37:14 GMT+07:00 2002 NS> Date : new java.util.Date() NS> I'm using Tomcat 4.01 NS> TIA. NS> =========================================================================== NS> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". NS> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". NS> Some relevant FAQs on JSP/Servlets can be found at: NS> http://archives.java.sun.com/jsp-interest.html NS> http://java.sun.com/products/jsp/faq.html NS> http://www.esperanto.org.nz/jsp/jspfaq.jsp NS> http://www.jguru.com/faq/index.jsp NS> http://www.jspinsider.com NS> __________ NS> Некоторые падают, а некоторые нет - http://www.newhost.ru - 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