Class CmsUgcActionElement


Form action element class for use in rendering user-generated content forms.

  • Constructor Details

    • CmsUgcActionElement

      public CmsUgcActionElement(javax.servlet.jsp.PageContext pageContext, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
      Creates a new instance.

      Parameters:
      pageContext - the JSP page context
      request - the current request
      response - the current response
  • Method Details

    • createSessionForResource

      public String createSessionForResource(String configPath, String fileName) throws CmsUgcException
      Creates a new form session to edit the file with the given name using the given form configuration.
      Parameters:
      configPath - the site path of the form configuration
      fileName - the name (not path) of the XML content to edit
      Returns:
      the id of the newly created form session
      Throws:
      CmsUgcException - if something goes wrong