anchor.diff: -<%@ page pageEncoding="koi8-r" contentType="text/html; charset=utf-8"%>
  +<%@ page pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
   <%@ page import="java.sql.Connection,java.sql.PreparedStatement,java.sql.ResultSet"  %>
   <%@ page import="java.util.logging.Logger"%>
   <%@ page import="ru.org.linux.site.*" %>
  
positive.code: %>
  <jsp:include page="WEB-INF/jsp/head.jsp"/>
  
          <title> </title>
  <jsp:include page="WEB-INF/jsp/header.jsp"/>
  
  <%
  
negative.code:     ResultSet lockResult = lock.executeQuery(); // lock another undelete.jsp on this row
  
      if (lockResult.next() && !lockResult.getBoolean("deleted")) {
        throw new UserErrorException("Сообщение уже восстановлено");
      }
  
      st1.executeUpdate();
      st2.executeUpdate();
  
      out.print("Сообщение восстановлено");
      logger.info("Восстановлено сообщение " + msgid + " пользователем " + nick);
  
      st1.close();
      st2.close();
  