protected void processRequest(HttpServletRequest request, HttpServletResponse response)
   throws ServletException, IOException
   {
      HttpSession session = request.getSession(false);
      if (session == null)
      {
         session.setAttribute("CurrAct", CAppConsts.LinkLoginPage);
         RequestDispatcher rd = request.getRequestDispatcher(CAppConsts.LinkCentral);
         rd.forward(request, response);
         return;
      }
      CUserItem myuser = (CUserItem) session.getAttribute("UserItem");

      manapp.CAppProps props = (manapp.CAppProps) session.getAttribute("AppProps");
      if (props == null)
      {
         props = new manapp.CAppProps();
         session.setAttribute("AppProps", props);
      }

      ServletContext scontext = this.getServletContext();
      CDbConnMan dbconnman = (CDbConnMan) scontext.getAttribute("DbConnMan");

      String btntxt = request.getParameter("BtnAct");

      if (btntxt != null && btntxt.equals("Cancel"))
      {
         session.setAttribute("CurrAct", "StatusPage");
         RequestDispatcher rd = request.getRequestDispatcher(CAppConsts.LinkCentral);
         rd.forward(request, response);
         return;
      }

      if (btntxt != null && btntxt.equals("Save"))
      {
          System.out.println("save request= " +request);
         CTestItem testcase = (CTestItem) session.getAttribute("TestCase");
         try
         {
            testcase.updateItem(request);
            if (CAppConsts.TagNoValue.equals(testcase.testgroupid))
            {
               session.setAttribute("CurrAct", "EditPage");
               RequestDispatcher rd = request.getRequestDispatcher(CAppConsts.LinkCentral);
               rd.forward(request, response);
               return;
            }
            Connection conn = dbconnman.getConnection();
            testcase.dbWriteItem(conn);
            testcase.dbWriteDetail(conn);
            dbconnman.returnConnection(conn);

         }
         catch (Exception ex)
         {
            CLogError.logError(CAppConsts.ErrorFile, false, "CTestItem.updateItem ", ex);
         }

         session.setAttribute("CurrAct", "StatusPage");
         RequestDispatcher rd = request.getRequestDispatcher(CAppConsts.LinkCentral);
         rd.forward(request, response);
         return;
      }

 /*     if (btntxt != null && btntxt.equals("Scale"))
      {
         CTestItem testcase = (CTestItem) session.getAttribute("TestCase");
         try
         {
            testcase.updateItem(request);
            if (CAppConsts.TagNoValue.equals(testcase.testgroupid))
            {
               session.setAttribute("CurrAct", "EditPage");
               RequestDispatcher rd = request.getRequestDispatcher(CAppConsts.LinkCentral);
               rd.forward(request, response);
               return;
            }
            Connection conn = dbconnman.getConnection();
            testcase.dbWriteItem(conn);
            testcase.dbWriteDetail(conn);

            String oldstr = request.getParameter("HideDate");
            String newstr = request.getParameter("BaseDate");
            if (oldstr == null || oldstr.length() < 8 ||
                newstr == null || newstr.length() < 8)
            {
               dbconnman.returnConnection(conn);
               session.setAttribute("CurrAct", "EditPage");
               RequestDispatcher rd = request.getRequestDispatcher(CAppConsts.LinkCentral);
               rd.forward(request, response);
               return;
            }
            testcase.updateBaseDate(oldstr, newstr);
            testcase.dbWriteItem(conn);
            testcase.dbWriteDetail(conn);
            dbconnman.returnConnection(conn);
         }
         catch (Exception ex)
         {
            CLogError.logError(CAppConsts.ErrorFile, false, "DoEdit Scale ", ex);
         }

         session.setAttribute("CurrAct", "EditPage");
         RequestDispatcher rd = request.getRequestDispatcher(CAppConsts.LinkCentral);
         rd.forward(request, response);
         return;
      }

      if (btntxt != null && btntxt.equals("Calc"))
      {
         CTestItem testcase = (CTestItem) session.getAttribute("TestCase");
         try
         {
            testcase.updateItem(request);
            if (CAppConsts.TagNoValue.equals(testcase.testgroupid))
            {
               session.setAttribute("CurrAct", "EditPage");
               RequestDispatcher rd = request.getRequestDispatcher(CAppConsts.LinkCentral);
               rd.forward(request, response);
               return;
            }
            Connection conn = dbconnman.getConnection();
            testcase.dbWriteItem(conn);
            testcase.dbWriteDetail(conn);
            dbconnman.returnConnection(conn);
         }
         catch (Exception ex)
         {
            CLogError.logError(CAppConsts.ErrorFile, false, "DoEdit Calc ", ex);
         }

         session.setAttribute("CurrAct", "EditPage");
         RequestDispatcher rd = request.getRequestDispatcher(CAppConsts.LinkCentral);
         rd.forward(request, response);
         return;
      }
*/
      // fall through -- return from whence you came
      session.setAttribute("CurrAct", "EditPage");
      RequestDispatcher rd = request.getRequestDispatcher(CAppConsts.LinkCentral);
      rd.forward(request, response);
      return;
   }