package Send;
//Version: $Revision: 1.2 $

import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;



public class SendServlet extends HttpServlet{


	public void doGet(HttpServletRequest request,
                          HttpServletResponse response)
                          throws IOException, ServletException{


	    //Get the data out from the form.
	    String recipient = request.getParameter("recipient");
            String message = request.getParameter("text");

	   //redirect them out to SMS finder.
           response.sendRedirect("http://172.17.29.233:81/sendmsg?user=admin&passwd=admin&cat=1&to=" + recipient + "&text=" + message);


        }


         public void doPost(HttpServletRequest request,
                          HttpServletResponse response)
                          throws IOException, ServletException{

            doGet(request,response);

          }



}