import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class Login extends HttpServlet{
public void doPost(HttpServletRequest request,HttpServletResponse response)
throws ServletException,IOException
{
response.setContentType("Text/html");
PrintWriter out=response.getWriter();
// the user name & password
String name=request.getParameter("name");
String passwd=request.getParameter("passwd");
HttpSession session=request.getSession(true);
session.setAttribute("userid", new String(passwd));
}
}
when I try to compiles above mentioned program I am getting
error in session.setAttribute
Thanks in advance
dkabali
___________________________________________________________________________
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