0 Replies Latest reply on Dec 11, 2006 5:09 AM by Purna chand

    Calling a servlet from bean

    Purna chand Newbie

      Hi,

      I am using jboss-portal with myfaces.

      I have an application which contain a managed bean. When i click one button, it will call bean method. From that method i have to access a Servlet which is in other application. So wht should i do?

      I tried to use dispatch method like below, but it is giving me IllegalStateException.

      FacesContext.getCurrentInstance().getExternalContext().dispatch(url);
      

      Plz give some clues

      Thanks in advance..