anchor.diff:                if (uploadedFile != null && (uploadedFile.canWrite() || uploadedFile.createNewFile())) {
                   item.write(uploadedFile);
                 } else {
  -                throw new BadInputException(" ");
  +                throw new BadInputException("Ошибка сохранения");
                 }
               } else {
  -              throw new BadInputException(" ");
  +              throw new BadInputException("Ошибка загрузки");
               }
             } else {
               // Form field
  
positive.code: <%@ page pageEncoding="koi8-r" contentType="text/html; charset=utf-8"%>
  <%@ page import="java.io.File, java.io.IOException, java.net.URLEncoder, java.sql.Connection, java.sql.PreparedStatement"  %>
  <%@ page import="java.sql.ResultSet" %>
  <%@ page import="java.sql.Statement" %>
  
negative.code:       pst.setInt(2, user.getId());
        pst.executeUpdate();
  
        logger.info("Установлена фотография пользователем " + user.getNick());
  
        response.sendRedirect(tmpl.getMainUrl() + "whois.jsp?nick=" + URLEncoder.encode(user.getNick()) + "&nocache=" + random.nextInt());
      } catch (IOException ex) {
  