Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-2465

RequestDispatcher throws NullPointer Exception when forwarding to /system/userManager/user.create.html

    XMLWordPrintableJSON

Details

    Description

      @Component
      @Service(Servlet.class)
      @Properties(

      { @Property(name = "service.description", value = "Creates a new User and sends an Activation Email to the given Address."), @Property(name = "service.vendor", value = "IPVS"), @Property(name = "sling.servlet.methods", value = "POST"), @Property(name = "sling.servlet.paths", value = "/satlab/user/create") }

      )
      public class UserCreateServlet extends SlingAllMethodsServlet {

      @Override
      protected void doPost(SlingHttpServletRequest request,
      SlingHttpServletResponse response) throws ServletException,
      IOException

      { // Redirect Request to the Sling CreateUserServlet. RequestDispatcher dispatcher = request .getRequestDispatcher("/system/userManager/user.create.html"); dispatcher.forward(request, response); }

      Attachments

        Activity

          People

            thecarlhall Carl Franklin Hall
            odiny Chris Papademos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: