Announcement Announcement Module
Collapse
No announcement yet.
"URI Template Patterns with Regular Expressions".equals( "Rocket Science") Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • "URI Template Patterns with Regular Expressions".equals( "Rocket Science")

    Hi there,
    I am trying to use Spring's "URI Template Patterns with Regular Expressions"
    for a job site and I am facing a few problems.

    I would appreciate if you could help.

    I am hoping to use SEO friendly URLs for "ADVANCED" job searches.

    So, a user can search jobs by technology (optional), industry (optional)
    and country (optional).

    Here is how a URL could look like:

    http://www.example.com/jobs/ (search all types of jobs)
    http://www.example.com/jobs/t-java (search jobs by "java" technology)
    http://www.example.com/jobs/t-java_i-finance (search jobs by "java" technology and "finance" industry)
    http://www.example.com/jobs/t-java_i-finance_c-germany (search jobs by "java" technology and "finance" industry and "germany" country)

    The order should be irrelevant, for example I should be able to use the following URL:

    http://www.example.com/jobs/i-finance_c-germany_t-java

    or any order and any one of the optional fields:
    http://www.example.com/jobs/c-germany-i-finance
    http://www.example.com/jobs/c-germany

    Separation:
    t-{technology} = List jobs by technology
    i-{industry} = List jobs by industry
    c-{counry} = List jobs by country

    For example:
    http://www.example.com/jobs/t-{technology}_i-{industry}_c-{country}

    Please note that there is an underscore plus the separation characters mentioned above.
    Only the first field does not use an underscore before the separation characters, like this for example:
    http://www.example.com/jobs/t-{technology}

    Separation characters are t- (there is no underscore before t-, because this is the first
    field mentioned on the URL.


    You could save me from jumping off the cliff, please help!
Working...
X