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
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
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
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.
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
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
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
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
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 ... %>
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
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
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
12 matches
Mail list logo