//Servlet ServeHTML Version 1.00
import java.io.*;
import java.util.*;
import java.net.*;
import java.servlet.http.*;
public class ServeHTML extends FormServlet{
        public void sendResponse (HttpServletResponse res, Hashtable tab) throws IOException{
                String urlget=(String)tab.get("URL");
                URL htmlurl=new URL(urlget);
                URLConnection Verbindung=htmlurl.openConnection();
                DataInputStream dis=new DataInputStream(Verbindung.getInputStream());
                res.setContentType("text/html");
                PrintStream out=new PrintStream(res.getOutputStream());
                String Zeilenlesen;
                while((Zeilenlesen=dis.readLine())!=null){
                        out.println(Zeilenlesen);
                }
                dis.close();
                out.close();
        }
}
