package test; import java.io.*; import java.util.Map; import java.util.Hashtable; import javax.servlet.*; import javax.servlet.http.*; public class Error extends HttpServlet { public void doPost( HttpServletRequest requete, HttpServletResponse reponse ) throws ServletException, IOException { doGet( requete, reponse ); } public void doGet( HttpServletRequest requete, HttpServletResponse reponse ) throws ServletException, IOException { // termine la session HttpSession session = requete.getSession(); session.invalidate(); // génération du document reponse.setContentType( "text/html; charset=\"UTF-8\"" ); PrintWriter doc = reponse.getWriter(); doc.println( "" ); doc.println( "" ); doc.println( " " ); doc.println( " Evaluation d'expressions postfixes" ); doc.println( " " ); doc.println( " " ); doc.println( " " ); doc.println( " " ); doc.println( "
" ); doc.println( "

" ); doc.println( "

" ); doc.println( " " ); doc.println( " " ); doc.println( " " ); doc.println( " " ); doc.println( " " ); doc.println( " " ); doc.println( " " ); doc.println( " " ); doc.println( " " ); doc.println( " " ); doc.println( " " ); doc.println( " " ); doc.println( " " ); doc.println( "
Une erreur s'est produite.
Veuillez retourner à la page principale.
 
" ); doc.println( "
" ); doc.println( "

" ); doc.println( "
" ); doc.println( " " ); doc.println( "" ); // post-traitement(s) doc.close(); } }