The first snippet works if and only if your jsp file is entirely
XML-formatted.
That was not true in earlier versions of the JSP specification, and is
explicitly changed in JSP v2.0. XML syntax in user author pages is only
broken in the current JSP specification.
--- Noel
--
To
Do yourself a favor and skip learning the XML syntax. It's for tools, not
people.
Oh, I would argue that considerably. In fact I did. That is no longer true
in JSP v2.0.
It is absolutely an absurdity to treat jsp:action|custom-tag differently
from
Noel J. Bergman wrote:
Do yourself a favor and skip learning the XML syntax. It's for tools, not
people.
Oh, I would argue that considerably. In fact I did. That is no longer true
in JSP v2.0.
It is absolutely an absurdity to treat jsp:action|custom-tag differently
from
On Tue, 14 Jan 2003, Erik Price wrote:
Date: Tue, 14 Jan 2003 10:11:32 -0500
From: Erik Price [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: jsp versus xml syntax
Noel J. Bergman wrote:
Do yourself a favor and skip
Craig R. McClanahan wrote:
To get the whole answer, you need to download and read the JSP spec.
http://java.sun.com/products/jsp/download.html
That's on my to-read list, after the HTTP spec and the servlet spec. I
don't think it's going to happen overnight ;) .
The short answer: In
So for the record, what is allowed and what isn't? Sorry that I am so
confused about this.
JSP 1.0 and 1.1 were somewhat loose on the XML representation of JSP pages.
JSP 1.2 introduced a fully formal representation known as a JSP Document,
complete with jsp:root element, and explicitly says:
On Tue, 14 Jan 2003, Noel J. Bergman wrote:
[snip]
I happen to agree with Craig that it is a waste of time for a newbie to
learn both syntaxes. But it should be clear from my argument which syntax I
consider appropriate for teaching.
I wonder if we agree on something else as well :-).
I
Craig R. McClanahan wrote:
I feel that users who use variable declarations, function declarations,
and scriptlets in JSP pages *at all* (no matter what syntax) are probably
making a mistake. Mixing Java code with JSP code is likely to lead to a
morass of spaghetti that mixes business logic
My best guess is that you're referring to creating a custom tag of
some sort that displays the navigation, and the logic for what to
display should be tucked away into the tag definition? I'm only
guessing here. If you could expound a bit that would be helpful for a
lot of us, I'm sure.
I wonder if we agree on something else as well :-).
I feel that users who use variable declarations, function declarations,
and scriptlets in JSP pages *at all* (no matter what syntax) are probably
making a mistake.
It is however, useful for rapid prototyping, and in JSP v2 you can *and want
On Tue, 14 Jan 2003, Erik Price wrote:
Date: Tue, 14 Jan 2003 16:45:43 -0500
From: Erik Price [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Re: jsp versus xml syntax
Craig R. McClanahan wrote:
I feel that users who
On Wed, 15 Jan 2003 10:45, Erik Price wrote:
But in that JSP, there is a conditional test to determine whether or not
certain links should be displayed. Namely, administrative functions
should not be displayed to users who don't have administrative access.
The way I have it right now is an
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 14, 2003 3:48 PM
To: Tomcat Users List
Subject: Re: jsp versus xml syntax
On Tue, 14 Jan 2003, Erik Price wrote:
Date: Tue, 14 Jan 2003 16:45:43 -0500
From: Erik Price [EMAIL PROTECTED
to not have scriptlet code has been reduce to a suggestion.
Thanks,
James
-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 14, 2003 3:48 PM
To: Tomcat Users List
Subject: Re: jsp versus xml syntax
On Tue, 14 Jan 2003, Erik Price wrote
On Tue, 14 Jan 2003, Tolles, James wrote:
Date: Tue, 14 Jan 2003 18:37:46 -0800
From: Tolles, James [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: jsp versus xml syntax
I've just completed a long grueling year of jsp
Hello!
I'm using (learning) tomcat-4.1.18 and I'm trying to
get the following example page to work:
HTML
jsp:declaration
// this is a local helper bean for processing the
HTML form
static public class localBean
{
private String value;
public String getValue() { return value;}
On Mon, 13 Jan 2003, Jeff Ousley wrote:
Date: Mon, 13 Jan 2003 10:49:51 -0800 (PST)
From: Jeff Ousley [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: jsp versus xml syntax
Hello!
I'm using (learning) tomcat-4.1.18 and I'm trying to
get
Hi,
I think I'm having trouble first of all because much
of the syntax is in xml form not jsp form. Is this
correct? How do I use the xml syntax under tomcat 4?
I'm very new and still learning.
It goes:
jsp - xml (or html) - rendered by browser
i.e. the jsp is executed by the server to
So, under tomcat 4.1 am I not able to do this:
jsp:declaration
// this is a local helper bean for processing the
HTML form
static public class localBean
{
private String value;
public String getValue() { return value;}
public void setValue(String s) { value = s; }
}
To: Tomcat Users List
Subject: Re: jsp versus xml syntax
So, under tomcat 4.1 am I not able to do this:
jsp:declaration
// this is a local helper bean for processing the
HTML form
static public class localBean
{
private String value;
public String getValue() { return
20 matches
Mail list logo