import java.util.Collection;//һԲ򷵻ؼϵרþ̬
import java.io.IOException;//IO쳣
import javax.servlet.ServletException;//servlet쳣
import javax.servlet.http.HttpServlet;//servletĸ
import javax.servlet.http.HttpServletRequest;//requestࣨûݵݣ
import javax.servlet.http.HttpServletResponse;//response(ûӦ) 

public class AdminServlet extends HttpServlet
{
    public static final String COMMAND_PARAM = "command";
     
    public String getCommand(HttpServletRequest request)
        throws ServletException
    {
        String command = request.getParameter(COMMAND_PARAM);
        if (command == null)
        {
            throw new ServletException("Missing parameter ["
                + COMMAND_PARAM + "]");
        }
        return command;
    }

    public void callView(HttpServletRequest request,
        HttpServletResponse response) 
        throws IOException, ServletException
    {
        request.getRequestDispatcher("/results.jsp").forward(request, response);//ҳתforward ڷڲ, ȫ֪·һҳresponse. ʱҳյrequestǴֱӷ,ܼ.
            
    }