Gunnar- String AStringWhichHoldsPostedOrQSValue; if(HttpServletRequest.getMethod() == "POST") { //Post only AStringWhichHoldsPostedOrQSValue = HttpServletRequest.getParameter("whatever"); } else { //Get Only.. AStringWhichHoldsPostedOrQSValue = HttpServletRequest.getQueryString(); } It has been my experience that getParameter<Whatever> does NOT retrieve POSTed values when Method = 'Get')
M- This e-mail communication and any attachments may contain confidential and privileged information for the use of the designated recipients named above. If you are not the intended recipient, you are hereby notified that you have received this communication in error and that any review, disclosure, dissemination, distribution or copying of it or its contents ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <users@tomcat.apache.org> Sent: Monday, October 16, 2006 11:09 AM Subject: Problem with filter and calling Perl-script with Tomcat 5.5.20 Hi, I've a problem with the new 5.5.20 Tomcat version. I think this has to do with this bug fix http://issues.apache.org/bugzilla/show_bug.cgi?id=37285. The problem is that I have a filter that adds a parameter before the CGI-filter calling out to a Perl-script. This code worked with Tomcat 5.5.17 and works with 5.5.20 if the request is a GET but not a POST. This is the relevant code: HttpServletRequest httpServletRequest = (HttpServletRequest) request; HashMap<String, String[]> parameters = new HashMap<String, String[]>( (HashMap<String, String[]>) httpServletRequest.getParameterMap()); fillUserInfo(parameters); httpServletRequest = generateWrapper(httpServletRequest, parameters); chain.doFilter(httpServletRequest, response); Can you advise me what to do? Regards Gunnar --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]