Return-Path: Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 66290 invoked from network); 4 Oct 2000 03:29:23 -0000 Received: from msp-26-164-174.mn.rr.com (HELO localhost.localdomain) (24.26.164.174) by locus.apache.org with SMTP; 4 Oct 2000 03:29:23 -0000 Received: from fatman (IDENT:nobody@localhost [127.0.0.1]) by localhost.localdomain (8.9.3/8.9.3) with SMTP id VAA13118 for ; Tue, 3 Oct 2000 21:27:22 -0500 Message-ID: <135540036.970626442118.JavaMail.nobody@fatman> Date: Tue, 3 Oct 2000 21:27:22 -0500 (CDT) From: BugRat Mail System Reply-To: BugRat Mail System To: tomcat-bugs@cortexity.com Subject: BugRat Report #202 has been filed. Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="135547242.970626442087.JavaMail.nobody@fatman" X-Mailer: org.gjt.mail.EnhancedMimeMsg, Organization: The Giant Java Tree, X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N --135547242.970626442087.JavaMail.nobody@fatman Content-Type: text/plain Content-Transfer-Encoding: 7bit Bug report #202 has just been filed. You can view the report at the following URL: REPORT #202 Details. Project: Tomcat Category: Bug Report SubCategory: New Bug Report Class: swbug State: received Priority: low Severity: non-critical Confidence: public Environment: Release: Tomcat 3.1 JVM Release: 1.2.2 Operating System: Win NT OS Release: 4 Platform: Intel Synopsis: XML notation for JSP scriptlet causes scriptlet not to run Description: Using JDeveloper, I can compile and run successfully a JSP using a scriptlet defined as follows: <% if (request.getQueryString() == null) actions = "NEW"; else actions = request.getQueryString(); %> or as follows: if (request.getQueryString() == null) actions = "NEW"; else actions = request.getQueryString(); however if the second version of the JSP is deployed to Tomcat the scriptlet never gets executed when the page is loaded. I pulled my hair out trying to understand why my variable (declared earlier in the page) wasn't filled and a null pointer was occurring! When I made the syntax shorthand (<%) instead of longhand () it deployed fine. Is this a bug? According to the Fileds/Kolb book (Web Devt with JSP) the forms should be interchangeable. Thanks, Simon (simon.cullen@alcoa.com.au) --135547242.970626442087.JavaMail.nobody@fatman Content-Type: text/html; name=Report-202.html Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=Report-202.html Content-Description: DataSource attachment 'Report-202.html' BugRat Report # 202

BugRat Report # 202

Project: Tomcat Release: Tomcat 3.1
Category: Bug Report SubCategory: New Bug Report
Class: swbug State: received
Priority: low Severity: non-critical
Confidence: public

Submitter: _Anonymous ( anonymous-bug@cortexity.com )
Date Submitted: Oct 3 2000, 09:27:22 CDT
Responsible: Z_Tomcat Alias ( tomcat-bugs@cortexity.com )

Synopsis:
XML notation for JSP scriptlet causes scriptlet not to run
Environment: (jvm, os, osrel, platform)
1.2.2, Win NT, 4, Intel

Additional Environment Description:

Report Description:
Using JDeveloper, I can compile and run successfully a JSP using a scriptlet defined as follows: <% if (request.getQueryString() == null) actions = "NEW"; else actions = request.getQueryString(); %> or as follows: if (request.getQueryString() == null) actions = "NEW"; else actions = request.getQueryString(); however if the second version of the JSP is deployed to Tomcat the scriptlet never gets executed when the page is loaded. I pulled my hair out trying to understand why my variable (declared earlier in the page) wasn't filled and a null pointer was occurring! When I made the syntax shorthand (<%) instead of longhand () it deployed fine. Is this a bug? According to the Fileds/Kolb book (Web Devt with JSP) the forms should be interchangeable. Thanks, Simon (simon.cullen@alcoa.com.au)

Workaround:
null

View this report online...
--135547242.970626442087.JavaMail.nobody@fatman--