Yes, i gave the full path means package name.classname for retrieveing the
class object. And also i gave the import statement for that package.

> ----------
> From:         Golden River[SMTP:[EMAIL PROTECTED]]
> Reply To:     A mailing list about Java Server Pages specification and
> reference
> Sent:         Tuesday, November 21, 2000 6:25 PM
> To:   [EMAIL PROTECTED]
> Subject:      Re: ClassCast Exception! Please help me to rectify that !
>
> Hello,
>
> Please check the return type for the method 'getAttribute("Attribute
> name");'
> in the Servlet Documentation. It has to be typecasted to appropriate type
> while retrieving.
> cheers
>
>
>
> ----- Original Message -----
> From: Bhuvaneswari Palanivel <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, November 21, 2000 12:22 PM
> Subject: ClassCast Exception! Please help me to rectify that !
>
>
> > Hi,
> >
> > I am using NES as my webserver. In my servlet, i am setting some
> attributes
> > to the request and using getRequestDispatcher.forward method to go to
> one
> > jsp. In that jsp, i am retrieveing that attribute from the request using
> > getAttribute("Attribute name");
> >         This method i.e getAttribute works fine for normal objects like
> > String and int. The same thing is not working for a object like
> > java.util.Vector or java.util.Hashtable or class object which i have
> created
> > and it is also in the package.
> >
> > I am getting ClassCastException. Please give some idea how can i
> overcome
> > this problem?
> >
> > Thanks,
> >
> > Bhuvana
> >
> >
> ==========================================================================
> =
> > 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