RE: Who's wrong?

2001-03-28 Thread Nimret Sandhu

according to the jsp spec, there should be no ';' at the end afaik .. jrun
is in violation imo.

from:
http://java.sun.com/products/jsp/tags/syntaxref.fm4.html

When you use the Java language for scripting, remember these points: 
. You cannot use a semicolon to end an expression (however, the same
expression within scriptlet tags requires the semicolon; see Scriptlet). 
. The expression tag can contain any expression that is valid according to
the Java Language Specification

regs ~
nimret

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ing. Nicola Folino
Sent: Wednesday, March 28, 2001 8:19 AM
To: Orion-Interest
Subject: Who's wrong?


Orion don't agree on this line of code in a jsp page:
%=variable;%
The semicolon is an error? But JRun accepts it! Who's wrong?
Thanx...




RE: Who's wrong?

2001-03-28 Thread Jason Smith

There is another way to resolve problems like this:
Look at the technical specification instead of blindly trusting 3rd parties!

From the JSP 1.1 Specification,  look at Chapter 2 "Standard Syntax and
Semantics", or more specifically at Section 2.10.3 "Expressions".  You will
get a nice paragraph description and an example:
%= (new java.util.Date()).toLocaleString() %
as well as Syntax:
%= expression %

-jason

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kemp Randy-W18971
Sent: Wednesday, March 28, 2001 10:07 AM
To: Orion-Interest
Subject: RE: Who's wrong?


There are three ways to resolve a dispute:
1. Subject matter experts from this list.
2. See what experts in the books say
3. Download another free JSP engine, like Tomcat (jakarta.apache.org), or
LiteWebServer (http://www.gefionsoftware.com/), and see what you get.
-Original Message-
From: Ing. Nicola Folino [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 28, 2001 10:19 AM
To: Orion-Interest
Subject: Who's wrong?


Orion don't agree on this line of code in a jsp page:
%=variable;%
The semicolon is an error? But JRun accepts it! Who's wrong?
Thanx...





RE: Who's wrong?

2001-03-28 Thread Juan Lorandi (Chile)



ciao 
ingenieri,

%= 
% is the jsp literal, it shows an expression; if it ends with a semicolon 
(";"), then it is a statement

HTH

JP

  -Original Message-From: Ing. Nicola Folino 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, March 28, 2001 
  12:19 PMTo: Orion-InterestSubject: Who's 
  wrong?
  Orion don't agree on this line of code in a jsp 
  page:
  %=variable;%
  The semicolon is an error? But JRun accepts it! 
  Who's wrong?
  Thanx...