Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-6570

request.getRequestURL() returns jsp path instead of servlet path

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • No Release
    • JBossAS-5.0.0.GA
    • None
    • None

    Description

      We are in process of migrating our application from Jboss 3.2.7running on Java 1.4.2 to JBoss 5.0.0 GA running on Java 1.6 version.
      There are multiple instances where we are using request.getRequestURL() in our JSP's.

      From the site address as below:

      http://site-name.com/context/servlet1.jspx?param1=ab&param2=bc

      request.getRequestURL() returns :
      http://site-name.com/context/servlet1.jspx in JBoss 3.2.7.

      Using the same in JBoss 5.0.0 GA this returns:
      http://site-name.com/context/servlet1/servlet.jsp, the actual JSP serving the page.

      This is not expected behavior and is breaking our code in multiple places.

      I was unable to find any bug in the issues regarding this and hence I am posting this as a bug. Do let me know if this is expected behavior, or is there a existing workaround to get the same behavior as in JBoss 3.2.7.

      Attachments

        Activity

          People

            Unassigned Unassigned
            singhpavneet Pavneet Singh (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: