package net.mybluemix.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Servlet implementation class SimpleServlet
 */
@WebServlet("/SimpleServlet")
public class SimpleServlet extends HttpServlet {
    private static final long serialVersionUID = 1L;

    /**
     * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response)
     */
    @Override
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        response.setContentType("text/html");
        response.getWriter().print(" World!");
    }

}

@@ -406,17 +406,16 @@
 et %7B%0A   
- 
 private 
@@ -460,20 +460,14 @@
 L;%0A%0A
-    /**%0A    
+%09/**%0A%09
  * @
@@ -484,18 +484,19 @@
 rvlet#do
-Ge
+Pos
 t(HttpSe
@@ -551,34 +551,14 @@
 se)%0A
-     */%0A    @Override%0A    
+%09 */%0A%09
 prot
@@ -572,13 +572,15 @@
 oid 
-doGet
+service
 (Htt
@@ -674,19 +674,72 @@
 tion
- %7B%0A        
+,NumberFormatException %7B%0A%09%09// TODO Auto-generated method stub%0A%09%09
 resp
@@ -775,61 +775,865 @@
 l%22);
-%0A
   
-      response.getWriter().print(%22 World!%22);%0A    %7D%0A
+%0A%09%09String operation = request.getParameter(%22operation%22);%0A%09%09PrintWriter out = response.getWriter();%0A%09%09RequestDispatcher rd;%0A%0A%09%09 if(operation.equals(%22login%22))%7B%0A%09%09%09%0A%09%09%09String username = request.getParameter(%22username%22);%0A%09%09%09String password = request.getParameter(%22password%22);%0A%09%09%0A%09%09%09%0A%09%09%09%0A%09%09%09%0A%09%09%09%0A%09%09%09if (username.equals(%22Keerthika%22) && password.equals(%221234%22)) %7B%0A%09%09%09%09%0A%09%09%09%09System.out.println(%22Welcome%22 +username);%0A%09%09%09%09%0A%09%09%09%09rd=request.getRequestDispatcher(%22LoginSuccess.html%22);%0A%09%09%09%09rd.forward(request, response);%0A%09%09%09%09%0A%09%09%09%09%0A%09%09%09%7D else if (username.equals(%22Jayapradha%22) && password.equals(%225678%22)) %7B%0A%09%09%09%09%0A%09%09%09%09System.out.println(%22Welcome%22 +username);%0A%09%09%09%09rd=request.getRequestDispatcher(%22LoginSuccess.html%22);%0A%09%09%09%09rd.forward(request, response);%0A%09%09%09%09%0A%09%09%7D%0A%09%09%09else%7B%0A%09%09%09%09rd=request.getRequestDispatcher(%22LoginFailed.html%22);%0A%09%09%09%09rd.forward(request, response);%0A%09%09%09%7D%0A%09%09 %7D%0A%09%7D%0A%7D
 %0A%7D%0A

Update SimpleServlet.java