HI all,

Following is a snippet of code of 2 servlets i am getting the following
error when
i run this servlet thro an html.

HTML FILE
==========
<html>
<head>
<title>Testing</title>
</head>
<body>
<form action="http://164.164.61.24/servlet/Mailbox">
<input type=submit value="clicking">
</form>
</body>
</html>

First Servlet
========
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class Mailbox extends HttpServlet{
   public void doGet(HttpServletRequest req, HttpServletResponse res)
throws
                                ServletException, IOException{
   String x="http://";
   String name=req.getServerName();
   x+=name;
   x+=req.getRequestURI();
   x+="?name=srini";
   ServletContext context = getServletContext();
   RequestDispatcher rd =
context.getRequestDispatcher("http://164.164.61.24/servlet/returnservlet");

   rd.forward(req,res);
 }
}

I am trying to forward a parameter of 1 servlet to another.

Actual Servlet
==========
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class returnservlet extends HttpServlet{
  public void doPost(HttpServletRequest req, HttpServletResponse res)
throws
                    ServletException, IOException{
    ServletOutputStream out = res.getOutputStream();
   out.println("Remote Host2: " + req.getRemoteHost());
    String name = req.getParameter("name");
    out.println("The name is " + name);
    out.close();
  }
}

Error
=====
500 Internal Server Error

Mailbox:

javax.servlet.ServletException: No mappings found for
'http://164.164.61.24/servlet/returnservlet'.

Environment
=========
IIS4.0
Jsdk2.1
Jrun 2.3

Please help me to solve this error.

Thanks
Srini

___________________________________________________________________________
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

Reply via email to