Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Login;
- import java.io.*;
- import javax.servlet.*;
- import javax.servlet.http.*;
- public class LoginApp extends HttpServlet {
- String message = "asdasd";
- public void doGet(HttpServletRequest request, HttpServletResponse response)
- throws ServletException, IOException {
- response.setContentType("text/html");
- PrintWriter out = response.getWriter();
- /* String title = "Cook Book";
- String docType =
- "<!doctype html public \"-//w3c//dtd html 4.0 " + "transitional//en\">\n";
- out.println(docType +
- "<html>\n" +
- "<head><title>" + title + "</title></head>\n" +
- "<body bgcolor = \"#f0f0f0\">\n" +
- "<h1 align = \"center\">" + title + "</h1>\n" +
- "<ul>\n" +
- " <li><b>Maths Flag : </b>: "
- + request.getParameter("maths") + "\n" +
- " <li><b>Physics Flag: </b>: "
- + request.getParameter("physics") + "\n" +
- " <li><b>Chemistry Flag: </b>: "
- + request.getParameter("chemistry") + "\n" +
- "</ul>\n" +
- "</body>"+
- "</html>"
- );*/
- }
- public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException{
- }
- public void destroy() {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement