3 Replies Latest reply on Aug 15, 2002 7:02 AM by mattp

    deploy struts app to / with jetty

    mattp

      Hi all -

      I'm trying to get my struts app to work in the / context with jetty. Works fine with Tomcat.

      The trouble I'm getting is that struts wants to prepend an extra / to my actions. So if my action is /saveTheme.do the generated html form points to to //saveTheme.do

      Any idears? I spent hours on this... I need a hug!

      -matt

        • 1. Re: deploy struts app to / with jetty
          tbfmicke

          There seems to be a bug in jetty here.

          request.getContextPath() returns '/' instead of '' at least sometimes...

          A jsp that is called directly that has
          :<%= request.getContextPath() %>:
          correctly shows
          ::
          as output.

          But a jsp that I get to from a Struts forward with
          the same expression shows
          :/:
          as output.

          • 2. Re: deploy struts app to / with jetty
            tbfmicke

            *checking a bit more*

            The previous test was done with the 3.0.0 download.

            A new test with 3.0.1 shows that this seems to be fixed there!

            So, download 3.0.1 and you should be happily strutsing :-)

            (Hoping you keep your feet dry too)

            Regards


            • 3. Re: deploy struts app to / with jetty
              mattp

              Yes 3.0.1 fixes it! Very nice to have it working.

              I should have looked for your response earlier -- I spent an hour monkeying with it & pestering the Greg at Jetty about it.

              Thanks very much!
              Matt