Results 1 to 4 of 4

Thread: resolving groovy filename

  1. #1
    Join Date
    Apr 2011
    Posts
    6

    Default resolving groovy filename

    Working through first G project. One page would not load unless I added file extension .gsp. Why would this be so?

    example http://localhost:9090/racetrack/suser/login
    results in 404 error while
    http://localhost:9090/racetrack/suser/login.gsp loads ok?

    I am using

    SpringSource Tool Suite

    Version: 2.6.0.RELEASE
    Build Id: 201103161000

  2. #2
    Join Date
    Aug 2008
    Location
    Vancouver, BC
    Posts
    747

    Default

    Moving thread to the grails forum. Would you please post your grails version?
    Andrew Eisenberg, Ph.D.
    SpringSource, a division of VMware
    SpringSource Tools Team
    More about AJDT, Groovy-Eclipse, and Grails tooling

  3. #3
    Join Date
    Apr 2011
    Posts
    6

    Default

    Application Status
    App version: 0.1
    Grails version: 1.3.7
    Groovy version: 1.7.8
    JVM version: 1.6.0_23
    Controllers: 4
    Domains: 4
    Services: 0
    Tag Libraries: 10
    Installed Plugins
    i18n - 1.3.7
    logging - 1.3.7
    core - 1.3.7
    filters - 1.3.7
    codecs - 1.3.7
    dataSource - 1.3.7
    tomcat - 1.3.7
    groovyPages - 1.3.7
    servlets - 1.3.7
    urlMappings - 1.3.7
    controllers - 1.3.7
    domainClass - 1.3.7
    mimeTypes - 1.3.7
    converters - 1.3.7
    scaffolding - 1.3.7
    hibernate - 1.3.7
    validation - 1.3.7
    services - 1.3.7
    Last edited by selement; Apr 12th, 2011 at 06:53 AM.

  4. #4
    Join Date
    Jun 2010
    Location
    London
    Posts
    304

    Default

    It looks like you are missing an appropriate URL mapping. Do you want the URL:

    http://localhost:9090/racetrack/suser/login

    to be handled by the login.gsp directory? Or a controller action? If the latter, which controller action should be handling the request? And finally, what's in your grails-app/conf/UrlMappings.groovy file?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •