esoe 1 year ago
parent
commit
439fd6d2ae
  1. 2
      src/main/java/ru/molokoin/home/servlets/Storage.java
  2. 3
      src/main/sql-scripts/home.sql
  3. BIN
      target/classes/ru/molokoin/home/servlets/Storage.class
  4. BIN
      target/home.war
  5. BIN
      target/home/WEB-INF/classes/ru/molokoin/home/servlets/Storage.class

2
src/main/java/ru/molokoin/home/servlets/Storage.java

@ -93,6 +93,8 @@ public class Storage extends HttpServlet{
@Override @Override
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {
request.setCharacterEncoding("UTF-8");
response.setContentType("text/html; charset=UTF-8");
//page(request, response); //page(request, response);
//скачивание файла //скачивание файла
try { try {

3
src/main/sql-scripts/home.sql

@ -8,4 +8,5 @@ create table home.repository (
parent INT DEFAULT(0) parent INT DEFAULT(0)
); );
ALTER TABLE home.repository ADD data LARGEBLOB; ALTER TABLE home.repository ADD data LARGEBLOB;

BIN
target/classes/ru/molokoin/home/servlets/Storage.class

Binary file not shown.

BIN
target/home.war

Binary file not shown.

BIN
target/home/WEB-INF/classes/ru/molokoin/home/servlets/Storage.class

Binary file not shown.
Loading…
Cancel
Save