Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2550

@mvc controller with custom mapping

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.4.RELEASE
    • Fix Version/s: 1.1.5.RELEASE
    • Component/s: WEB MVC
    • Labels:
      None

      Description

      Hi,

      Basically, the issue is that an extra / is shown in the documentation for web mvc controller.

      Roo documentation for web mvc controller shows:

      optional --preferredMapping: Indicates a specific request mapping path for this controller (eg /foo/); no default value

      When creating a custom controller web mvc controller --class ~.admin.LoginController --preferredMapping /admin/login/ (notice the mapping ends with a slash, just as in the documentation), Roo generates double slashes in various places, such as in the controller, *.tagx and views.xml files. Example:

          @RequestMapping
          public String index() {
              return "admin/login//index";
          }
      }}

        Attachments

          Activity

            People

            Assignee:
            sschmidt Stefan Schmidt
            Reporter:
            posto84 Dumitru Postoronca
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: