tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BugRat Mail System <>
Subject BugRat Report #202 has been filed.
Date Wed, 04 Oct 2000 02:27:22 GMT
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
   Release: Tomcat 3.1
   JVM Release: 1.2.2
   Operating System: Win NT
   OS Release: 4
   Platform: Intel

XML notation for JSP scriptlet causes scriptlet not to run

Using JDeveloper, I can compile and run successfully a JSP using a scriptlet defined as follows:

<%  if (request.getQueryString() == null)
      actions = "NEW";
      actions = request.getQueryString(); %>

or as follows:

    if (request.getQueryString() == null)
      actions = "NEW";
      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 (<jsp:scriptlet>) it deployed

Is this a bug?  According to the Fileds/Kolb book (Web Devt with JSP) the forms should be

Simon (

View raw message