The following test to see if there is anything to
report and if not displays a back button and text.
The button shows up fine in IE but not in Netscape 4.0
and I can't figure out why.
<%
if (usageReport.getNumberOfRows() == 0) {
out.println("<BODY>");
out.println("<CENTER>");
out.println("<TABLE BORDER='0' WIDTH='100%'
>");
out.println("<TR>");
out.println("<TD BGCOLOR='#CCCCCC' ><FONT
SIZE=-1>Item Usage Report</FONT></TD>");
out.println("</TR>");
out.println("</TABLE>");
out.println("<BR><BR><BR><BR>");
out.println("<INPUT type=\"button\"
name=\"back\" value=\"Back\" onClick=\"backBtn()\">");
out.println("<BR><BR><BR><BR><BR><BR>");
out.println("<B>No items found that match the
search parameters.</B>");
out.println("</CENTER></BODY></HTML>");
return;
}
%>
=====
Gary Osborn
Web Developer
[EMAIL PROTECTED]
You can lead management to good business solutions, but
you can't make them implement!!!
__________________________________________________
Do You Yahoo!?
Talk to your friends online and get email alerts with Yahoo! Messenger.
http://im.yahoo.com/
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets