Changeset 27cd1a6


Ignore:
Timestamp:
Oct 21, 2016 9:38:55 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
06a599b
Parents:
b6521ed
Message:

Console: Remove calls to deprecated two-arg setStatus()

Location:
apps/routerconsole/jsp
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • apps/routerconsole/jsp/error.jsp

    rb6521ed r27cd1a6  
    1313    if (ERROR_CODE != null && ERROR_MESSAGE != null) {
    1414        // this is deprecated but we don't want sendError()
    15         response.setStatus(ERROR_CODE.intValue(), ERROR_MESSAGE);
     15        //response.setStatus(ERROR_CODE.intValue(), ERROR_MESSAGE);
     16        response.setStatus(ERROR_CODE.intValue());
    1617    }
    1718    // If it can't find the iframe or viewtheme.jsp I wonder if the whole thing blows up...
  • apps/routerconsole/jsp/error500.jsp

    rb6521ed r27cd1a6  
    1414    if (ERROR_CODE != null && ERROR_MESSAGE != null) {
    1515        // this is deprecated but we don't want sendError()
    16         response.setStatus(ERROR_CODE.intValue(), ERROR_MESSAGE);
     16        //response.setStatus(ERROR_CODE.intValue(), ERROR_MESSAGE);
     17        response.setStatus(ERROR_CODE.intValue());
    1718    }
    1819%>
  • apps/routerconsole/jsp/nowebapp.jsp

    rb6521ed r27cd1a6  
    33<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    44<%
    5     response.setStatus(404, "Not Found");
     5    response.setStatus(404);
    66%>
    77<html><head>
  • apps/routerconsole/jsp/search.jsp

    rb6521ed r27cd1a6  
    2020<%
    2121    } else {
    22         response.setStatus(403, "Bad");
     22        response.setStatus(403);
    2323        String query = request.getParameter("query");
    2424        if (query == null || query.trim().length() <= 0) {
Note: See TracChangeset for help on using the changeset viewer.