Announcement Announcement Module
Collapse
No announcement yet.
resolving groovy filename Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    Moving thread to the grails forum. Would you please post your grails version?

    Comment


    • #3
      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, 06:53 AM.

      Comment


      • #4
        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?

        Comment

        Working...
        X