*/
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/html");
Usuario user = new Usuario();
UsuarioDao dao = new UsuarioDao();
boolean retorno = false;
PrintWriter saida = response.getWriter();
String acao = request.getParameter("acao");
if(request.getParameter("id") != "")
user.setId(request.getParameter("id"));
if(request.getParameter("nome") != "")
user.setNomeDoUsuario(request.getParameter("nome"));
if(request.getParameter("usuario") != "")
user.setLogin(request.getParameter("usuario"));
if(request.getParameter("senha") != "")
user.setSenha(request.getParameter("senha"));
if(request.getParameter("perfil") != "")
user.setPerfil(request.getParameter("perfil"));
String nova_senha = request.getParameter("nova_senha");
if(acao.equals("cadastrar")){
dao.inserir(user);