@Override
public void jspError(String fname, int line, int column, String errMsg,
Exception ex) throws JasperException {
- throw new JasperException(fname + "(line: " + line + ", column: " +
- column + ")" + " " + errMsg, ex);
+ throw new JasperException(fname + " (" +
+ Localizer.getMessage("jsp.error.location",
+ Integer.toString(line), Integer.toString(column)) +
+ ") " + errMsg, ex);
}
/*
jsp.error.single.line.number=An error occurred at line: {0} in the jsp file: {1}
jsp.error.multiple.line.number=\n\nAn error occurred between lines: {0} and {1} in the jsp file: {2}\n\n
jsp.error.java.line.number=An error occurred at line: {0} in the generated java file
+jsp.error.location=line: {0}, column {1}
jsp.error.corresponding.servlet=Generated servlet error:\n
jsp.error.empty.body.not.allowed=Empty body not allowed for {0}
jsp.error.jspbody.required=Must use jsp:body to specify tag body for {0} if jsp:attribute is used.