Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4496

better reconciliation of static url mappings

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.3.20
    • 6.1.0
    • None
    • None

    Description

      the struts static url mappings are great for simplifying URL paths and including "data" in the URL structures. We're having collisions that are causing problems though:

      eg.

      class1:
      @Namespace("/dataset/")
      ...
      @Action("{id}")

      ...
      class3:
      @Namespace("/dataset")
      ...
      @Action("columns/{id}")

      In this case, Class1's mapping seem to "own" everything under /dataset regardless of what other classes like (class2) define. It'd be nice if struts could, as it scans all of the namespaces and actions, evaluated left-to-right non-programatically specified values ahead of those that are variables. E.g. /dataset/columns/{id} would be evaluated prior to matching /dataset/{id}

      Attachments

        Activity

          People

            Unassigned Unassigned
            abrin adam brin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: