Is there an easy way to get Jetty to show all the headers in an HTTP request? I am thinking about writing a simple handler that could be put in a handler stack...
Kent Johnson
KJohnson@...
Oct 2, 2000 8:18 pm
591
Well, the Handler is trivial, here it is. Kent ... // =========================================================================== // $Id:...
Kent Johnson
KJohnson@...
Oct 2, 2000 8:41 pm
592
How do I go about setting an attribute in the ServletContext used by my HttpServer so that I can refer to that attribute in the doPost method of my Servlet? I...
Jim Crossley
jcrossley@...
Oct 2, 2000 9:02 pm
593
Is running a network trace sufficient for your needs? If it is, then I recommend the free Microsoft Network Monitor. There are ones for Windows 95, 98, NT...
Katy McCullough
KatyM@...
Oct 2, 2000 9:10 pm
594
Or you could just run with the -DDEBUG -DDEBUG_VERBOSE=9999 options... But the handler will produce much cleaner output (although you can play with...
Greg Wilkins
gregw@...
Oct 2, 2000 9:36 pm
595
Jim, You are not allowed to get a HandlerContext from a servlet - only a servlet context. This is part of the servlet security model, so you now can't even...
Greg Wilkins
gregw@...
Oct 2, 2000 9:45 pm
596
... Not exactly. I want to set an app-specific attribute of the ServletContext at the time I create and initialize the HttpServer. That way, all servlets...
Jim Crossley
jim@...
Oct 3, 2000 12:29 am
597
Sound's like ServletContext init parameters, which can be set in your web.xml (J2EE web application deployment descriptor) ... if the value is a String....
Howard Ship
hship@...
Oct 3, 2000 1:00 am
598
... That will work, but it can be simpler. Since servletContext delegates its attributes to HandlerContext the above is equivalent to: HttpServer server = new...
Greg Wilkins
gregw@...
Oct 3, 2000 7:50 am
599
I have finally got a few days free(ish) to continue Jetty3 development. I have just checked into CVS a bunch of changes for: + Improved Log rollover. +...
Greg Wilkins
gregw@...
Oct 3, 2000 8:31 am
600
I just commited some working code for RequestDispatcher.forward() It worked out fairly neatly in the end as I had already wrapped HttpRequest in a...
Greg Wilkins
gregw@...
Oct 3, 2000 1:24 pm
601
... Caucho Resin also adjusts getRequestURI(). That means, if i call: /servlet/forward which forwards to /servlet/snoop then getRequestURI() will return ...
Oliver Koell
oko@...
Oct 3, 2000 2:10 pm
602
... OK, I now adjust the URI as well, which is correct I think as the spec also says URI == context + servletPath + pathInfo. This would only be true always...
Greg Wilkins
gregw@...
Oct 3, 2000 2:54 pm
603
... RequestDispatchers I use all the time. I haven't used named RequestDispatchers yet, but now that you brought them to my attention, they start looking...
Oliver Koell
oko@...
Oct 3, 2000 3:26 pm
604
Good news, a group within Cisco have sponsored some time to get Jetty3 completed sooner rather than later. Thus I'm now able to commit to some dates. A...
Greg Wilkins
gregw@...
Oct 3, 2000 4:27 pm
605
... Getting servlets by name from the ServletContext and dispatching requests to them? Yes! Larry...
Larry@...
Oct 3, 2000 5:05 pm
606
... OK that is done now and checked in... Actually it is nicer than dispatching by URI as you don't have to pervert the path methods. All the request...
Greg Wilkins
gregw@...
Oct 3, 2000 8:35 pm
607
I've started looking at Jasper for integration with Jetty. There are two things that don't let me use jasper out of the box: + It uses Tomcat's logging...
Greg Wilkins
gregw@...
Oct 3, 2000 10:33 pm
608
Does anyone have an objection to the LogSink.log taking (String, Object, Frame, long) rather than (String, String, Frame, long)? I have a distributed logging...
Matthew Watson
mattw@...
Oct 4, 2000 1:12 am
609
How about adding a new LogSink.log(String, Object, Frame, long) method, then the existing stuff works as is and you can implement the new one to generate the...
Kent Johnson
KJohnson@...
Oct 4, 2000 4:01 pm
610
Are there plans to port the Jetty2 MultiPartRequest class to Jetty3? It seems to rely on things like HttpInputStream, HttpHeader, etc from the mortbay.HTTP...
Jim Crossley
jcrossley@...
Oct 5, 2000 5:50 pm
611
I'll either add it to the task list or to the next release. regards ... ===== -- Greg Wilkins <gregw@...> Mort Bay Consulting Australia and UK. GB...
Greg Wilkins
gregw@...
Oct 6, 2000 8:59 am
612
Howard, et al,.. Sorry to be taking so long to get a fix on this one, but I have not had a chance to look at this on a system where I'm free to experiment... ...
Greg Wilkins
gregw@...
Oct 6, 2000 1:13 pm
613
In my experience (with WebLogic and JRun), if you create a context for "/tutorial", the getting the URL "/tutorial" gets the index file at the root of the web...
Ship, Howard
hship@...
Oct 6, 2000 1:38 pm
614
... As it should - but by what path? Does it do a redirect to /tutorial/ ? If not, relative links in the index file will not work as the browser will...
Greg Wilkins
gregw@...
Oct 6, 2000 1:54 pm
615
The behaviour you are seeing is perfectly correct. A browser can't tell if a URI like /vlib is the resource itself or has been mapped to /vlib/index.html ...
Greg Wilkins
gregw@...
Oct 6, 2000 2:36 pm
616
I just had an idea about a way to develop some Jetty documentation and capture some of the FAQs on this list -- start a Jetty Wiki. For those who don't know, a...
Kent Johnson
KJohnson@...
Oct 6, 2000 2:59 pm
617
What a damn fine suggestion... I'll look into it this weekend (aong with all the other stuff I said I'd do...) cheers. ... ===== -- Greg Wilkins...
Greg Wilkins
gregw@...
Oct 6, 2000 3:12 pm
618
Howard, I have modified your xml files to: + Use the dump servlet instead of all your servlets, so I can test + The howard.xml file configures /tutorial and...
Greg Wilkins
gregw@...
Oct 7, 2000 12:13 am
619
Jetty release 3.0.B03 is now available via http://jetty.mortbay.com This release has implemented all the major 2.2 servlet features and many code improvements....