Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-542

Absolute path used in contacts.jsp of resteasy-springMVC example

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 2.2.RC1
    • 1.2.1.GA
    • jaxrs
    • None
    • Low

    Description

      Absolute path used in contacts.jsp of resteasy-springMVC example:

      Line 15 of contacts.jsp: <form action="/contacts" method="post">

      This will make the example always post request to top level uri: http://<hostname>/contacts

      But when the example is deployed in application, such as JBoss, it will serve at relative path: http://<hostname>/resteasy-springMVC/contacts.

      Which will cost a 404 error.

      Remove the slash in form action will eliminate the problem: <form action="contacts" method="post">

      Attachments

        Issue Links

          Activity

            People

              weinanli Weinan Li
              weinanli Weinan Li
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: