Hi All,

How to  convert mpx files to Html

Prem
----- Original Message -----
From: Ernie V <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 16, 2000 8:42 AM
Subject: Re: How can i call a servlet method from another servlet


> To call a servlet from another servlet, you need to get a reference to
> the servlet that you want to call by using the ServletContext. The
> servlet that you want to call from other servlets must put a reference
> to itself in the servlet context. Use getAttribute() and getAttribute()
> methods to accomplish this. This is usually done in the init() method of
> the callable servlet:
>
>  public void init(ServletConfig cfg) throws ServletException
>  {
>   super.init(cfg);
>   // Add this servlet to the context
>   getServletContext().setAttribute("callableServlet", this);
>  }
>
>
> Then put this in the calling servlet:
>
>
> CallableServlet cs =
>
> (CallableServlet)getServletContext().getAttribute("callableServlet");
>
>
> Now you can use the reference "cs" to invoke methods in the callable
> servlet.
>
>
> -ernie
>
>
>
> arun prakash wrote:
>
>
> Hi !!,
>
>    I need some help out from u guys. How can i call a
> specific servlet method from another servlet. Any
> suggestion will be extremely helpful and a code would
> be the best way to help me out.
>
>
> Thanks in advance.
> arun prakash
>
>
> __________________________________________________
> Do You Yahoo!?
> Talk to your friends online with Yahoo! Messenger.
> http://im.yahoo.com <http://im.yahoo.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
> <http://archives.java.sun.com/archives/servlet-interest.html>
> Resources: http://java.sun.com/products/servlet/external-resources.html
> <http://java.sun.com/products/servlet/external-resources.html>
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> <http://www.lsoft.com/manuals/user/user.html>
>
>
>

___________________________________________________________________________
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