Subversion Repositories bacoAlunos

Rev

Blame | Last modification | View Log | RSS feed

package pt.estgp.es.exemplos.hibernate.web;

import pt.estgp.es.exemplos.hibernate.HibernateUtils;
import pt.estgp.es.exemplos.hibernate.Pagina;
import pt.estgp.es.exemplos.hibernate.Seccao;
import pt.estgp.es.exemplos.hibernate.services.ServicoPaginas;

import java.io.IOException;

public class PaginasDeleteServlet extends javax.servlet.http.HttpServlet
{


    protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, 1.5.0/docs/api/java/io/IOException.html">IOException {


        1.5.0/docs/api/java/lang/String.html">String idSeccao = request.getParameter("idSeccao");


        long idPagina = new ServicoPaginas().deleteSeccaoService(idSeccao);

        request.setAttribute("id",idPagina);
        request.getRequestDispatcher("apresentaPagina.jsp").forward(request,response);
    }

    protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, 1.5.0/docs/api/java/io/IOException.html">IOException {
        doPost(request,response);
    }

}