3 Replies Latest reply on Jun 8, 2017 4:11 AM by st22895

    Spring MVC and bb-manifest for modules /module types

    jb31639

      Hi

      I'm trying to use Spring 4.3.X for a new Module/Module type.

       

      I'm not sure how to write the bb manifest for a Spring developed module where referring directly to JSPs isn't required. How do I refer to a request mapping for this to work?

       

      In the module defs of a regular JSP type module you specify the folder and the view JSP. I can see how to do this for course tools etc but I can't find any examples or documentation for a module type. One option might be to put a request/forward into a JSP file to the appropriate request mapping.

       

      How does this work where the Spring view is set in the controller e.g.

      @RequestMapping("/")

       

       

       

      This is a regular module-def

      <module-defs>

        <module-type ext-ref="test1" title="test1"

        uicreatable="true">

        <jsp-dir>WEB-INF/jsp</jsp-dir>

        <jsp>

        <view>thing.jsp</view>

        <admin>admin.jsp</admin>

        </jsp>

        </module-type>

        <module type="test1" is-course-tool="true" isadmin="true"

        useraddable="true" uicreatable="true" isDeletable="false"

        title="test1">

        <description>This is a test....

        </description>

        <ExtraInfo />

        <module-groups>

        <module-group id="Everyone" />

        </module-groups>

        </module>

        </module-defs>

       

       

      Thanks

      Jason