1 Reply Latest reply on Nov 6, 2002 7:47 PM by Greg Wilkins

    getRequestURI in jetty

    Erik Turesson Novice


      This might be a question for some Jetty newsgroup, but I will ask it here too.

      I am developing a system where I am using a technique where I let the users access URLs that do actually not exist. If the user types in http://somehting.com/bigimage.gif that request is treated as a request to a page that does not exist. Every request that does not exist is forwarded to the page /error/errordetect.jsp.

      In that request I do a HttpServletRequest:getRequestURI() call and it have so far been returning /bigimage.gif. This makes it possible for me to fetch and return that image from the database. However in the jetty bundled with Jboss 3.0.4 that method is returning /error/errordetect.jsp.

      Is this the correct returnvalue or is the /bigimage.gif value the correct one?

      If it is the correct one is there some way to configure jetty to return /bigimage.gif.


        • 1. Re: getRequestURI in jetty
          Greg Wilkins Newbie

          I answered this in the Jetty mailing list. But will answer again here for the record....

          Jetty's old behaviour was not correct. The value returned
          by getRequestURI is the correct one.

          The original URL is available as an attribute: