0 Replies Latest reply on Jun 27, 2007 5:29 AM by guib

    Pbm with missing contexts

    guib

      Hi,

      First of all, I'm using Jboss Seam 1.2.1.
      I've made an application wich uses a Servlet to "catch" multipart request wich contains voice messages. My Servlet extends ResourceServlet and is declared in the web.xml file.
      But, in this servlet I can't access to contexts : there are not active. I've added this in components.xml file :

      <web:context-filter url-pattern="/deposit/postRelease.record" />


      and this in web.xml :

      <servlet>
      <servlet-name>Recording Servlet</servlet-name>
      <servlet-class>
      com.eservglobal.mailis.vxml.deposit.MailisRecordingServlet
      </servlet-class>
      <load-on-startup>1</load-on-startup>
      </servlet>

      <servlet-mapping>
      <servlet-name>Recording Servlet</servlet-name>
      <url-pattern>/deposit/postRelease.record</url-pattern>
      </servlet-mapping>


      In this case its works fine.

      But, at the end of my servlet doPost method I want to forward to another page wich needs context too. So I did :

      RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/deposit/postRelease.seam");
      dispatcher.forward(req, res);


      Is it the right method to use ?

      Why my context is not active in this new page ?

      How can I fix this problem.

      Thx to all.