4 Replies Latest reply on Sep 25, 2008 5:32 AM by Anil Langote

    How to get Request URL in JSFUnit using FacesContext

    Anil Langote Newbie

      Hi All,

      I am using JSFUnit to testing in my product. I want to get the requested URL for eg (http://localhost:8000/Facelets/ServletTestRunner?suite=com.test.MyJSFUnitTest&xsl=cactus-report.xsl)

      I want this URL to do decide whether it is an JSFUnit request or other request.

      I tried same through FacesContext object like

      String reqPath = FacesContext.getCurrentInstance().getExternalContext().getRequestServletPath();

      I am getting different string is there any way to get the following string


      Any thoughts?