1 Reply Latest reply on Jan 29, 2010 7:35 AM by Adrian Mitev

    JSF inside custom Servlet

    Lanh Tran Newbie
      I have a custom Servlet where I receive parameters from clients in the form http://localhost/httpinterface/documents?id=XXXX&user=YYYY. The servlet extracts these parameters, performs query to the DB and returns a list of documents, which I want to display using JSF controls (e.g. data grid...) to help users navigate between the documents and also easier to manage the states.

      Without JSF, I would need to write to the Servlet Response the HTML code to control the states and display the documents somehow.

      I do a research on the internet for some days already but have not found a solution for this. I found this page: http://wiki.apache.org/myfaces/InvokingJsfPagesWithStandardUrls , but it doesn't work for me since I use Seam with Facelets. By doing as described in this article, I always get the error: java.lang.IllegalStateException: No active application scope.

      Could anyone help me please.

      Thanks.