Re: XML Syntax

2002-02-07 Thread Anton Tagunov
Hello, Next! NS> Sorry, it was typo, it should be : NS> Date : new java.util.Date() >>I'm not an expert, but I believe you can not mix >>normal <%= %> and jsp syntax. >>If you want to use XML syntax you should go for >>it completely by enclosing your whole page with >> and all the stuff. NS> E

Re: XML Syntax

2002-02-06 Thread Hans Bergsten
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 : new java.util.Date() > >> I'm not an expert, but I believe you can not mix >> normal <%= %> and jsp syntax. >> If you want to use

Re: XML Syntax

2002-02-06 Thread Next Step
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 : new java.util.Date() >I'm not an expert, but I believe you can not mix >normal <%= %> and jsp syntax. >If you want to use XML syntax you should go for >it comp

Re: XML Syntax

2002-02-06 Thread Anton Tagunov
Hello, Unknown Person! ("Next" can not be your name!) I'm not an expert, but I believe you can not mix normal <%= %> and jsp syntax. If you want to use XML syntax you should go for it completely by enclosing your whole page with and all the stuff. Even if you do it, I'm not sure if Tomcat 4.0.

Re: XML Syntax

2002-02-06 Thread Richard Yee
TIA, If you want to put some java code in your JSP, you need to put it inside a scriptlet like this <% Date myDate = new Date(); %> then, you can output the value of myDate using an expression scriptlet: . . Date: <%= myDate %> . . As far as XML goes, Tags are either in the form of or body tex

Re: XML Syntax

2002-02-06 Thread Gardner Monte
try new java.util.Date() in XML each container tag starts with a and ends with an end tag --Monte Glenn Gardner On Wed, 6 Feb 2002, Next Step wrote: > Hi, > Sorry, I'm new to jsp. > Why this second expression doesn't work? > > -- > Date : <%= new java.util.Date() %> > > Date : new jav

Re: XML Syntax

2002-02-06 Thread Ryan
you need to close the xml syntax as such Date: new java.util.Date() this page has the quick reference pdfs on syntax http://java.sun.com/products/jsp/technical.html - Original Message - From: Next Step <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 05, 2002 11:41 P

Re: XML syntax in JSP

2000-07-28 Thread Karl Avedal
Hello Kevin and Stanley, Kevin: Orion does indeed support that and has for well over a year, or maybe you meant something else? Stanley: As Craig McClanahan pointed out, Tomcat does not support the XML mapping yet and the mapping is rather immature in JSP 1.1. Wait for JSP 1.2 for this to beco

Re: XML syntax in JSP

2000-07-27 Thread Craig R. McClanahan
Stanley Santiago wrote: > I think my question has been misunderstood. I am not trying to generate XML from > the JSP. > > I am trying to use the alternative XML -syntax- that chapter 7 of the JSP 1.1 > spec proposes. > > For example: > > <%@ page ... > could be written as > > <%@ include ... %>

Re: XML syntax in JSP

2000-07-27 Thread Stanley Santiago
I think my question has been misunderstood. I am not trying to generate XML from the JSP. I am trying to use the alternative XML -syntax- that chapter 7 of the JSP 1.1 spec proposes. For example: <%@ page ... > could be written as <%@ include ... %> could be written as Tomcat does not see

Re: XML syntax in JSP

2000-07-27 Thread Kevin Duffey
The browser doesn't understand it from what I can tell. I did this too and had the same problem in JRUN, Resin and Orion. Generally you would have JSP output XML so that you can feed that xml output to an XSLT engine which would then translate it to HTML. Otherwise, your sending XML to the browser

Re: XML syntax and JSP 1.0

1999-05-06 Thread Eduardo Pelegri-Llopart
The JSP 1.0 specification just defines the notion of an XML document that is equivalent to a JSP page. It does nothing more than that. This is intentional because accepting such a document may be non-trivial to do and we do not want to impose this requirement on the implementors now. So, take t