Strange request.setAttribute() problem

2003-07-28 Thread Charles So
Hello, I come across a problem with TC4.1.24 and hope fellow list users can help me... I set a variable in a servlet by calling: request.setAttribute(itemnumber, Integer.valueOf(Integer.toString(itemnumber))); A JSP will then detect if this variable exists or not by: if (

Re: Strange request.setAttribute() problem

2003-07-28 Thread Charles So
-Tim Charles So wrote: Hello, I come across a problem with TC4.1.24 and hope fellow list users can help me... I set a variable in a servlet by calling: request.setAttribute(itemnumber, Integer.valueOf(Integer.toString(itemnumber))); A JSP will then detect if this variable exists

Re: Strange request.setAttribute() problem

2003-07-28 Thread Charles So
Thx Mike!!! I got the problem fixed!!! Thx! On Tuesday, July 29, 2003, at 01:22 AM, Mike Curwen wrote: %! private int itemnumber = -1; % Using a ! makes it scoped globally to all requests. If you check the source file of your JSP you'll see it's declared outside the service method. That's

Strange error when importing class in JSP under TC4.1.18

2003-01-18 Thread Charles So
Dear all, I am tearing my hair out trying to solve this problem... it seems to be a problem with TC. Here is the exception from TC: org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja va:248) at