Announcement Announcement Module
Collapse
No announcement yet.
Problem with test application Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem with test application

    I am new to Java/Spring. I have been trying http://static.springframework.org/do...tep/part1.html

    When I go to http://localhost:8080/springapp/hello.htm it does not redirect to hello.jsp.

    What am I missing? I checked all the code to ensure it correctly matches the tutorial.

    Thanks.

  • #2
    So what does it do if the redirect does not happen?

    Comment


    • #3
      Gives a 404 page not found error.

      Comment


      • #4
        It sounds like your sevlet-mapping isn't working properly. Check that 'springapp/war/WEB-INF/web.xml' is the same as in the example - particularly the servlet and servlet-mapping parts.

        Also check that you have used the same naming conventions throughout (capitalisation etc.)- I had the same problem when I did it and that was the cause.

        Also check that you haven't put 'hello.html' anywhere instead of '.htm'.

        Hope this helps, let us know if you can't solve it.

        Comment


        • #5
          I checked everything but just could not figure out what the problem was. I finally landed up deleting the entire project and recreating it. It works now.

          Comment

          Working...
          X