--

try this:

HttpServletResponse res;

...

res.sendRedirect("http://domain.com");


>From: "Popova, Marina" <[EMAIL PROTECTED]>
>Reply-To: "Java Apache Users" <[EMAIL PROTECTED]>
>To: 'JServList' <[EMAIL PROTECTED]>
>Subject: Cannot call one servlet from another...
>Date: Mon, 12 Jul 1999 13:53:12 -0400
>
>--
>
>Hi, all!
>
>I'm sorry if this question is too simple - I have just started to
>explore JServ...  I was working with
>  servletrunner until now, and just couple of days ago
>I have installed Apache1.3.6+JServ1.0 (JDK1.1.7) on our Solaris box
>(what a pain was that configuration process!).
>Now I'm trying to run the same servlets with JServ and I've got
>a problem:
>
>   in a 'production' zone I have a servlet called LoginScreen,
>which is called from an html page as :
>     http://idsdevel2/production/login
>(in production.properties file it is aliased to this name:
>     servlet.login.code=LoginScreen  )
>This works fine.
>Now, after a user enters some information in a form, the servlet
>  stores it in the HttpSession object and calls another
>  servlet from the same zone like this:
>           String url = "http://idsdevel2/production/retrieve_frame";
>           res.setStatus(res.SC_MOVED_TEMPORARILY);
>           res.setHeader("Location", url + "\n\n");
>This servlet reads information from the HttpSession and displays a new 
>page.
>Well, it WAS doing this with servletrunner, but now I get an error :
>               500 Internal Server Error
>and in jserv.log file I see:
>[12/07/1999 12:48:52:328] (ERROR) ajp11: Servlet Error:
>java.lang.NullPointerException: null
>[12/07/1999 12:48:52:329] (ERROR) an error returned handling request via
>protocol "ajpv11"
>
>   Could someone, please, help me out with this? I think I'm missing
>something
>very simple...
>
>   thank you very much,
>   Marina
>
>
>
>--
>--------------------------------------------------------------
>To subscribe:        [EMAIL PROTECTED]
>To unsubscribe:      [EMAIL PROTECTED]
>READ THE FAQ!!!!     <http://java.apache.org/faq/>
>Archives and Other:  <http://java.apache.org/main/mail.html/>
>Problems?:           [EMAIL PROTECTED]
>


_______________________________________________________________
Get Free Email and Do More On The Web. Visit http://www.msn.com


--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to