I am having some probs trying to transfer control from a servlet and
redisplay the information in a JSP page.  For some reason, the page
transfers, however there is no data, HTML or otherwise in the JSP page.  I
have tried to further limit the scope of the code I am working with however
I am still getting the same error.

Thanks in advance.

Michael Birlin
Web Applications Developer
918-497-5549
----------------------------------------------------------------------------
---------------------------

import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.net.*;

public class testy extends HttpServlet
 //1 class


 public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException, NullPointerException
 // 2 doget
      doPost(req, res);
      }

    public void doPost(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException, NullPointerException   {
          gotoPage("../jsp/helloworld.jsp",req,res);
          }

     private void gotoPage(String address,HttpServletRequest
req,HttpServletResponse res)
                             throws ServletException, IOException {

            RequestDispatcher dispatcher =
getServletContext().getRequestDispatcher(address);
            dispatcher.forward(req, res);
          }
}

___________________________________________________________________________
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