+ property
+ "\")));");
} else {
- StringBuilder msg =
- new StringBuilder("jsp:getProperty for bean with name '");
+ StringBuilder msg = new StringBuilder();
+ msg.append("file:");
+ msg.append(n.getStart());
+ msg.append(" jsp:getProperty for bean with name '");
msg.append(name);
msg.append(
"'. Name was not previously introduced as per JSP.5.3");
if (impl == null) {
TldLocation location = ctxt.getTldLocation(uri);
impl = new TagLibraryInfoImpl(ctxt, parserController,
- pageInfo, prefix, uri, location, err);
+ pageInfo, prefix, uri, location, err,
+ reader.mark());
if (ctxt.getOptions().isCaching()) {
ctxt.getOptions().getCache().put(uri, impl);
}
/**
* Constructor.
*/
- public TagLibraryInfoImpl(JspCompilationContext ctxt, ParserController pc, PageInfo pi,
- String prefix, String uriIn, TldLocation location, ErrorDispatcher err)
+ public TagLibraryInfoImpl(JspCompilationContext ctxt, ParserController pc,
+ PageInfo pi, String prefix, String uriIn, TldLocation location,
+ ErrorDispatcher err, Mark mark)
throws JasperException {
super(prefix, uriIn);
throw new FileNotFoundException(tldName);
}
} catch (FileNotFoundException ex) {
- err.jspError("jsp.error.file.not.found", tldName);
+ err.jspError(mark, "jsp.error.file.not.found", tldName);
}
parseTLD(tldName, in, null);
in = jarResource.getEntry(tldName).openStream();
parseTLD(jarResource.getUrl(), in, jarResource);
} catch (Exception ex) {
- err.jspError("jsp.error.tld.unable_to_read", jarResource.getUrl(),
+ err.jspError(mark, "jsp.error.tld.unable_to_read", jarResource.getUrl(),
jarResource.getUrl(), ex.toString());
}
}
<subsection name="Jasper">
<changelog>
<fix>
+ <bug>49665</bug>: Provide better information including JSP file name and
+ location when a missing file is detected during TLD handling. Patch
+ provided by Ted Leung. (markt)
+ </fix>
+ <fix>
<bug>49726</bug>: Specifying a default content type via a JSP property
group should not prevent a page from setting some other content type.
(markt)