Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-36

Including Servlets/JSPs in templates

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • 0.9.840
    • 0.9.793
    • {Unused} Wiki features
    • None

    Description

      Hello,
      I need to be able to include a Servlet or JSP from inside of /templates/*.vm files (specifically header and footer).

      I tried things like:

      $request.getRequestDispatcher("/xxx.jsp").include( $request, $response )

      But for some reason (buffering in Velocity I guess) it renders included page before anything else, no matter where it's actually placed. Is there some workaround? If not, I think I have an idea how to implement a kind of "#includeServlet" directive, could it be included in XWiki then?

      Greetings, Lilianne E. Blaze

      Attachments

        Activity

          People

            jeremi jeremi Joslin
            ludovic Ludovic Dubost
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: