hi Floyd,
        i am sarfaraz, i have post the same sort of question, and you are quit
right, but my problem is that now i have to port my site on apache and it
doesn't support jsdk 2.1.
        Do you now any of the solution for this.
Thanks.
sarfaraz

>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
      • sarfaraz

Reply via email to