public javax.servlet.jsp.tagext.ValidationMessage[] | validate(java.lang.String prefix, java.lang.String uri, javax.servlet.jsp.tagext.PageData page)Validate a JSP page. This will get invoked once per directive in the
JSP page. This method will return null if the page is
valid; otherwise the method should return an array of
ValidationMessage objects. An array of length zero is
also interpreted as no errors.
System.out.println("---------- Prefix=" + prefix + " URI=" + uri +
"----------");
InputStream is = page.getInputStream();
while (true) {
try {
int ch = is.read();
if (ch < 0)
break;
System.out.print((char) ch);
} catch (IOException e) {
break;
}
}
System.out.println();
System.out.println("-----------------------------------------------");
return (null);
|