"Sachin S. Khanna" wrote:

> You don't have to do that Vijays everything in java is an object besides the
> primitive types. You donot require the cast.

This is correct for the "set" call, but you will need a cast on the corresponding
"get" call.

> There is nothing wrong with the
> code only it is running under an api which is an old one.

This is not correct.  In version 2.0 of the servlet spec, the appropriate call was
putValue() -- setAttribute() was added in version 2.1, and should be used for all
development under newer servlet containers.

>
> Have a nice day.
> With regards,
> Sachin S. Khanna.

Craig McClanahan

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

Reply via email to