You could also try making your own bean that uses Calender if
GregorianCalendar does not work for your project.

Check the API docs for Calendar and look at its constructors.
http://java.sun.com/j2se/1.3/docs/api/java/util/Calendar.html

Since they are protected you cannot create a bean from the class as you were
trying.

Jayson Falkner
V.P./CTO, Amberjack Software LLC
[EMAIL PROTECTED]
www.jspinsider.com



----- Original Message -----
From: "Mrudula Madiraju" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, January 08, 2001 9:47 PM
Subject: Re: <jsp:useBean id="xxx" class="java.util.Calendar"
/>ClassNotFoundException


> 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
>

===========================================================================
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