|
I wonder if your request is used in doGet, doPost and other methods or DAO for general data operations? If it is in the doGet and doPost methods, this kind of exception does not usually occur. If it is in DAO, declare it in the parameter line of the function.
such as
public void myMethod (HttpServletRequest request) {
// do somethings
}
Then in and out of the servlet or Aciton, the object of the HttpservletRequest declared in the function header can be used. It should not be wrong. |
|