Hello all,
thanks for your responses.
I have both doPost() and doGet() in my servlet..
doGet() just calls doPost()
I am using Tomcat3.0 on NT (Is there something I should know about using
Tomcat?). Right now, I am putting my class file under
/examples/web-inf/servlets directory.
My html file is /examples/servlets
here is some code from my doPost()
Any insight is appreciated
kiran
----------------------------------
public void doGet(HttpServletRequest req, HttpServletResponse res) throws
ServletException,IOException
{
doPost(req,res);
}
public void doPost(HttpServletRequest req,HttpServletResponse res) throws
ServletException,IOException
{
HttpSession session =req.getSession(true);
Integer icount=(Integer) session.getValue("icount");
if(icount == null)
{
icount= new Integer(0);
}
PrintWriter out=res.getWriter();
...
.......
}
----------------------------------------------------------------
> If you want the same feature retained for doPost, like doGet
> add the following code with your pgm.
>
> public void doPost(HttpServletRequest req, HttpServletResponse
> res) throws ServletException, IOException
> {
> doGet(req, res);
> }
>
> That is all!!!
>
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com
___________________________________________________________________________
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