Calendar is a abstract class, ie it cannot be instantiated and the jsp:useBean will
try to just that.
You could try using GregorianCalendar instead.

Neill Laney wrote:

> The above tag will not compile in the following page using JDK1.3 and Tomcat
> 4.0-m5 on Windows 2000:
>
> <%@ page language="java" contentType="text/html" %>
> <html>
>   <body>
>       <jsp:useBean id="xxx" class="java.util.Calendar"/>
>
>       xyz
>
>   </body>
> </html>
>
> The same tag using class="java.util.Date" will compile.
>
> Both classes are in src.jar, so why can't runtime find Calendar?
>
> I'm trying to add a simple date-time stamp to a mostly static HTML and I'm
> new to Java. Any help will be greatly appreciated.
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> 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

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
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

Reply via email to