dkabali wrote:
>
> session.setAttribute("userid", new String(passwd));
>
Well, it's very hard to be sure what your error is if
you don't tell us :-), but chances are you're using an
older version of the Servlet API. setAttribute and
friends were introduced with version 2.2. What version
are you using?
Also, you don't need to do a "new String(passwd)".
Strings are immutable so they can be shared.
poornima visvesvaran wrote:
>
> What is the difference betn session.setattrubute() and
> session.putValue() in session. Because as such I am
> using now session.putValue() only.
>
As indicated above, as of the 2.2 version of the
Servlet API set/putValue have been deprecated and
replaced with set/getAttribute.
You can find this stuff out on your own. Sun makes
the servlet specification freely available. Check
out:
<URL:http://java.sun.com/products/servlet>
The Servlet API javadocs are also informative, they're
available from the same source...
-cks
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html