Forum Stats

  • 3,874,415 Users
  • 2,266,731 Discussions


The difference between ApplicationHttpRequest and HttpServletRequest !!

451006 Member Posts: 26
edited May 27, 2009 4:26AM in QA/Testing
Hi, i am confusing with org.apache.catalina.core.ApplicationHttpRequest and javax.servlet.http.HttpServletRequest .
i write the following code in a jsp
String ar = request.getParameter("ar");

when the type of request is org.apache.catalina.core.ApplicationHttpRequest, it works well.
but when the type is javax.servlet.http.HttpServletRequest , it throw nullpoint exception.

so i think the two request scope is different, but i can't find valuable information threw google.

can anybody tell me why the two request is different ??
thank you !!!

Edited by: taomingzhe on May 22, 2009 10:29 AM


This discussion has been closed.