You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Ph...@Mitel.COM on 2000/11/01 16:54:46 UTC

Bug using HttpUtils.parsePostData ?

Hi all,

I call HttpUtils.parsePostData() in my servlet which works fine.

When I have finished processing the data I forward the request to a jsp page
using :-

getServletConfig().getServletContext().getRequestDispatcher("/mypage.jsp").forward(request,response)


At this point I get an internal server error with a
java.lang.IllegalArgumentException error.
The exception originates from a subsequent call to HttpUtils.parsePostData()  by
the server when processing my jsp page.

If I replace the call to HttpUtils.parsePostData() (in my servlet) with
request.getParameter() for each form element, then everything works fine.

Does the call to HttpUtils.parsePostData() from my servlet somehow invalidate
the subsequent call to the same method ?
Is this a bug ?

I'm using Tomcat and Linux.

Thanks,
Phil Hedley