Greetings,
[some more deprecation here]
I took your mail in a wrong context. Instead of looking at it as more
academic/research type investigation of things I saw it as someone's problems with
certain things.
Sorry about misunderstanding and short useless answers. But I did some more
investigation so here goes:
(I use JRun 2.3.1 build 149 on NT 4.0 with JDK 1.2)
Anders Kristensen wrote:
<snip> I misunderstood this problem
>
> >
> > >
> > > Anther question: Is it OK for a path argument to getRequestDispatcher
> > > to include a query string? I guess so since include() arranges for it to
> > > appear in the javax.servlet.include.query_string request attribute. But
> > > on the other side a forwarded request doesn't report those params. What
> > > gives?
> > >
> >
> > You mean like this:?
> > getServletContext().getRequestDispatcher("/servlet/SomeServlet?param=two")
> > .include(request,response);
>
> Yes.
>
> >
> > I don't see why not if that's what you mean.
> >
>
> Well, neither do I but if you try it out you'll see that in teh
> forwarded request the arguments are not available through
> getParameter().
>
Yeah I tried it and the included servlet does not see those parameter passed this
way. Kinda curious why not. It doesn't work with include nor forward.
>
> > >
> > > Also, I believe the following are bugs in JSDK 2.1:
> > >
> > > o RequestDispatcher.include throws an exception if the
> > > ServletOutputStream has already been obtained. This is the
> > > correct behaviour for forward but not for include.
> >
> > It seems to work fine for me.
>
> It doesn't for me.
>
Craig wrote:
"This is correct behavior on include as well, in some circumstances. If the
original servlet has done a getWriter(), the included servlet will throw an
exception if it calls getOutputStream(). LIkewise, if the original servlet
has done a getOutputStream(), the included servlet cannot call getWriter().
It only works if both the original servlet and the included servlet use the
same technique (either output stream or writer)."
Actually this works differently in JRun. The only thing that I can't do is call
getOutputStream in included servlet when it was already open. But I can open it if
the original only opened PrintWriter. The included servlet's writing to the output
stream shows up in the browser fine. I also tried opening output stream in original
servlet and PrintWriter in included servlet and this also works fine.
>
> >
> > >
> > > o When a request URI has no extra path, getPathInfo() returns the
> > > empty string rather than null.
> >
> > Seems to work fine too.
>
> What do you mean it works fine? This is contrary to what teh spec says.
>
Meaning it does return null when no extra path.
>
> >
> > >
> > > o Parameters in an HTTP URL are URL decoded but the servlet path
> > > isn't (try for example "%2Fsnoop").
> > >
> >
> > [host]/servlet%2FSnoopServlet
> >
> > Works fine too
>
> Not for me. (BTW I use JSDK 2.1 with JDK 1.2.1 on WinNT 4.)
>
It gets decoded ok
>
> --
> Anders Kristensen <[EMAIL PROTECTED]>,
> http://www-uk.hpl.hp.com/people/ak/
> Hewlett-Packard Labs, Bristol, UK
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
--
David Mossakowski [EMAIL PROTECTED]
http://www.dwdog.com/styk 212.310.7275
"I don't sit idly by, I'm planning a big surprise"
F U G A Z I
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html