13 Replies Latest reply on Jun 24, 2013 9:15 AM by vgk2716

    Not able to access my ATG servlet through HTTP request

    01acd901-e8d9-40f3-93ba-851614396ef1

      I have a requirement to call the ATG servlet through a HTP request rather than a dsp tag. So I have done the following. As per my understanding, I'm doing it as follows, but I'm getting 404 page not found.


      Can you let me know what is the issue ??

      • Created a property file for /atg/dynamo/servlet/pipeline/ServletPathServlet. Overriden the servletPaths property as

      servletPaths+=\

                  /MyServlet

       

      • Created a property file for /atg/dynamo/servlet/pipeline/ServletPathDispatcher. Overriden the dispatcherServiceMap property as

      dispatcherServiceMap+=\

                          /MyServlet\=/com/my/package/MyServlet

       

      • Created a class (MyServlet) that extends DynamoServlet. Overriden the service(DynamoHttpServletRequest req, DynamoHttpServletResponse resp) method and placed the business logic in the service method

       

      • Restarted ATG and try to access your servlet at http://{myserver}/{contextroot}/dyn/MyServlet.