Package com.arrgsocal.entities

Examples of com.arrgsocal.entities.Todo


        request.getRequestDispatcher("/WEB-INF/ToDo/NewToDo.jsp").forward(request, response);
        return;
      }
    }
   
    Todo t = new Todo();
    t.setName(name);
    t.setDescription(description);
    t.setPriority(priority);
    t.setCreatedDate(new Date());
    todoManager.create(t);
    response.sendRedirect("./");
  }
View Full Code Here


  TodoManager todoManager;
 
  protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
  {
    int id = Integer.parseInt(request.getParameter("id"));
    Todo t = todoManager.getTodo(id);
    if (t == null)
    {
      response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, "Entity not found");
    }
    request.setAttribute("todo", t);
View Full Code Here

    try
    {
      id = Integer.parseInt(request.getParameter("id"));
      if (request.getParameter("update") != null)
      {
        Todo t = todoManager.getTodo(id);
        t.setName(request.getParameter("name"));
        t.setDescription(request.getParameter("description"));
        t.setPriority(Integer.parseInt(request.getParameter("priority")));
        todoManager.update(t);
      }
      else if (request.getParameter("delete") != null)
      {
        todoManager.delete(id);
View Full Code Here

TOP

Related Classes of com.arrgsocal.entities.Todo

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.