import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class IncludeServlet extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, java.io.IOException {
response.setContentType("text/html");
java.io.PrintWriter out = response.getWriter();
out.println("");
out.println("");
out.println("Include Servlet");
out.println("");
out.println("");
out.println("Welcome To Our Universe
");
out.println("Imagine the rest of the page here.
");
//Include the copyright information
RequestDispatcher dispatcher = request.getRequestDispatcher("/CopyRight");
dispatcher.include(request, response);
out.println("");
out.println("");
out.close();
}
}