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

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

XMLWordPrintable

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

      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">

            weli@redhat.com Weinan Li
            weli@redhat.com Weinan Li
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: