Hi all,

I'm trying to fiddle about a bit with filters in Tomcat 4.0.3 connected to Apache
1.3.19 using mod_webapp. The connection is fine, as other servlets and jsp's are
continuing to run perfectly fine.

I have a filter that takes a servlet request/reponse pair and wraps the request
using a HttpServletRequestWrapper. That HttpServletRequestWrapper re-implements the
getParameter(String s) method. The first line in this new getParameter() is a
System.out.println that echoes the parameter being requested (for debugging
purposes). However, that println never seems to appear, either in the catalina.out
or on the console when run using the 'run' rather than the 'start' command.

The reason for wanting to do that debugging is that the wrapper is there to provide
a layer over a servlet. The servlet performs certain activities based on a single
request parameter. To provide a simple interface, filters are being used to allow
different methods of specifying what to perform, so each filter looks at a separate
parameter, and returns an appropriate value when the original parameter is request
- The servlet asks for parameter 'x', so the wrapper looks at parameter 'y' and
returns an appropriate value for x. The problem was that the modifications from 'y'
were never returned, so I wanted to check that the new method was being called.

Can anyone give me a reason why this System.out line is disappearing into the
ether?

Thanks all,

Lloyd Colling

This  email  and  any  attachments  are confidential and intended for the addressee
only.   If  you are not the named recipient, you must not use, disclose, reproduce,
copy  or  distribute the contents of this communication.  If you have received this
in error, please contact the sender and then delete this email from your system.



--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to