"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/main/java/com/openkm/servlet/admin/BaseServlet.java" between
OpenKM-document-management-system-6.3.10.tar.gz and OpenKM-document-management-system-6.3.11.tar.gz

About: OpenKM (Knowledge Management) is a document management system that allows easy management of documents, users, roles and finding your enterprise documents and records. Community version (source code).

BaseServlet.java  (OpenKM-document-management-system-6.3.10):BaseServlet.java  (OpenKM-document-management-system-6.3.11)
skipping to change at line 26 skipping to change at line 26
import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeUnit;
public class BaseServlet extends HttpServlet { public class BaseServlet extends HttpServlet {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
protected static final String METHOD_GET = "GET"; protected static final String METHOD_GET = "GET";
protected static final String METHOD_POST = "POST"; protected static final String METHOD_POST = "POST";
/** /**
* Dispatch errors * Dispatch errors
*/ */
protected void sendErrorRedirect(HttpServletRequest request, HttpServletR protected void sendErrorRedirect(HttpServletRequest request, HttpServletR
esponse response, esponse response, Throwable e) throws
Throwable e) throws ServletException, IO ServletException, IOException {
Exception {
request.setAttribute("javax.servlet.jsp.jspException", e); request.setAttribute("javax.servlet.jsp.jspException", e);
ServletContext sc = getServletConfig().getServletContext(); ServletContext sc = getServletConfig().getServletContext();
sc.getRequestDispatcher("/error.jsp").forward(request, response); sc.getRequestDispatcher("/error.jsp").forward(request, response);
} }
/** /**
* Dispatch errors * Dispatch errors
*/ */
protected void sendError(PrintWriter out, String msg) throws ServletExcep tion, IOException { protected void sendError(PrintWriter out, String msg) throws ServletExcep tion, IOException {
out.println("<div class=\"error\">" + msg + "</div>"); out.println("<div class=\"error\">" + msg + "</div>");
 End of changes. 1 change blocks. 
4 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)