>I have a simple servlet .In doPost Method , it called a jsp page, but failed in every 
>time.
>Can you tell me what's wrong? thank you! The codes of servlet are metioned below.
>  ((HttpServiceResponse)response).callPage("/jsp/SaveError.jsp", 
>(HttpServiceRequest)request);

   The method you are using to call the JSP is deprecated, if you are using
servlet 2.1 api, then the following should work:

this.getServletContext().getRequestDispatcher("/jsp/SaveError.jsp").forward(req, res);

hope this helps,

Floyd

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
  • ... ÕÂÆæ(¤¢¤¤¤·¤Æ¤ë)ZhangQi
    • ... Floyd Marinescu

Reply via email to