Order Jason Hunter's book "Java Servlet Programming" it is excellent!
- steveb
Hi all,
can any body give me clue how
can i use HttpSession in Servlet.
it is not giving any error in compiling
but when i call from a browser it is
giving
java.lang.NoSuchMethodError: javax.servlet.http.HttpServletRequest: method
getSession
(Z)Ljavax/servlet/http/HttpSession; not found at
SessionServlet.doGet(SessionServlet.java:10) * at
javax.servlet.http.HttpServlet.service(HttpServlet.java:252) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:330) at
sun.servlet.netscape.NSRunner.run(NSRunner.java:144)
at netscape.server.applet.ServerApplet.handleRequest(ServerApplet.java:69)
at
netscape.server.applet.HttpApplet.handleRequest(HttpApplet.java:680)
how can i use cookie on NES.
in my code i m doing
public void doGet (HttpServletRequest req, HttpServletResponse res)
.
.
.
Cookie[] cookies = res.getCookies();
.
.
.
during compilation it is giving
no such method HttpServletResponse.getCookies();
ps help
akash
___________________________________________________________________________
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
----------------------------------------------------------------
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any action in reliance upon, this information by persons or
entities other than the intended recipient is prohibited. If you received
this in error, please contact the sender and delete the material from any
computer.
___________________________________________________________________________
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