Re: Calling Servlet from another servlet error using orion

2000-09-06 Thread Dave Smith
It is handled by the get or post depending on whether it is a get or post request - i.e. it goes to the same place it originally went in the first servlet. Cory Adams wrote: > When you use the forward methodology below how will the receiving Servlet > handle the request forwarded from another se

Re: Calling Servlet from another servlet error using orion

2000-09-06 Thread Cory Adams
When you use the forward methodology below how will the receiving Servlet handle the request forwarded from another servlet? Is it handled by the doGet or doPost or can it be forwarded to a specific method within the BookDBServlet Servlet? Thanks, Cory At 01:49 PM 9/6/00 +0200, Lars Heller wro

Re: Calling Servlet from another servlet error using orion

2000-09-06 Thread Lars Heller
> getServletConfig().getServletContext() > .getServlet("bookstore.BookDBServlet"); The method ServletContext.getServlet(String) is deprecated since version 2.1. In the spec it is stated, that servlet engines should always return null. Instead (for forwarding to this servlet), use the RequestDisp

Re: Calling Servlet from another servlet error using orion

2000-09-06 Thread Dave Smith
The getServlet method is deprecated.The Tomcat version always returns null, and I suspect the Orion version does as well. Why do you want to do this anyway? If you have logic that needs to be reusable then why not place it in an external class? begin:vcard n:Smith;Dave tel;cell:+44 797 0008867

Calling Servlet from another servlet error using orion

2000-09-06 Thread rosely kumoi
I got a null pointer exception when I try to get another servlet reference from other servlet using this command: BookDBServlet database = (BookDBServlet) getServletConfig().getServletContext().getServlet("bookstore.BookDBServlet"); BookDetails bd = database.getBookDetails(bookId); //null pointe