Hi all,
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.

import java.io.*;
import java.lang.*;
import javax.servlet.*;
import javax.servlet.http.*;
import com.sun.server.http.*;
import com.ibm.servlet.*;

public class TempletSave extends javax.servlet.http.HttpServlet {
}
public void doPost(javax.servlet.http.HttpServletRequest request, 
javax.servlet.http.HttpServletResponse response) {
  try
  {
  ((HttpServiceResponse)response).callPage("/jsp/SaveError.jsp", 
(HttpServiceRequest)request);
  }
  catch(ServletException e)
  {
     ........
   }
  catch(IOException e)
  {
     ........
   }
}

___________________________________________________________________________
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