sendRedirect()

2002-04-19 Thread Sergey G. Aslanov
Hi all I have two web apps, one with root, other with with virtual directory: I wants to redirect to some page /lalala.html of app CBOSSishop and do sendRedirect("/lalala.html") in CBOSSishop, but orion redirects it to the root app CBOSSwww /l

RE: Taglib + jsp:include + sendRedirect does not work?

2002-04-08 Thread peter_saurugger
the action page has access to the JspWriter object only (i.e. serves content), which gets thrown away /throws exception when you do a sendRedirect [you are telling the server not to serve any content, instead go to a different page; technically, sendRedirect causes the server to send a HTTP 302

SV: Taglib + jsp:include + sendRedirect does not work?

2002-04-08 Thread Anders Callertun
Orion-Interest > Ämne: Re: Taglib + jsp:include + sendRedirect does not work? > > > Hi Anders, >First complete the tag library and then use jsp:include. > > from="[EMAIL PROTECTED]" > to="[EMAIL PROTECTED]" > subject="test

Re: Taglib + jsp:include + sendRedirect does not work?

2002-04-05 Thread prasanth sb
Hi Anders, First complete the tag library and then use jsp:include. thanks, Prasanth >From: Anders Callertun <[EMAIL PROTECTED]> >Reply-To: Orion-Interest <[EMAIL PROTECTED]> >To: Orion-Interest <[EMAIL PROTECTED]> >Subject: Taglib + jsp:includ

Taglib + jsp:include + sendRedirect does not work?

2002-04-02 Thread Anders Callertun
The following jsp-file generates this Exception: java.lang.IllegalStateException: Response has already been committed, be sure not to write to the OutputStream or to trigger a commit due to any other action before calling this method. test.jsp-- <%@taglib uri="utiltags" p

sendRedirect and bug

2001-04-26 Thread Joni Suominen
Hi! There seems to be a bug in Orion (1.4.7) with sendRedirect and tag (from web-site.xml). I have understood the meaning of frontend tag so that it is used in HTTP REDIRECTS if relative URL is used in a method HttpServletResponse.sendRedirect. E.g. response.sendRedirect("/foo.jsp") s

sendRedirect, Apache and Orion

2001-03-14 Thread Joe Latty
theURL)); This will now change the url from http://www.frontend.com/myapp <http://www.frontend.com/myapp> to http://rearend:8080/myapp <http://rearend:8080/myapp> which loses my session. How do I stop the sendRedirect prefixing the URL. Joe winmail.dat

RE: sendRedirect with Netscape

2000-07-19 Thread Nijhawan, Sumit
'; '[EMAIL PROTECTED]' Subject: RE: sendRedirect with Netscape Are you sure both servlets see the same session. Try printing the session creation time in both servlets and seeing if it is the same across the redirect. Can you put an object in the session in servlet1, redirect to ser

RE: sendRedirect with Netscape

2000-07-19 Thread Dave Smith
Subject: sendRedirect with Netscape I just noticed some interesting behavior while using a sendRedirect in a servlet (in Orion) and using Netscape as my browser. If I put something (I was using a Hashtable) in the http session in one servlet and redirected the response to another servlet(same

sendRedirect with Netscape

2000-07-19 Thread Nijhawan, Sumit
I just noticed some interesting behavior while using a sendRedirect in a servlet (in Orion) and using Netscape as my browser. If I put something (I was using a Hashtable) in the http session in one servlet and redirected the response to another servlet(same server, same context), I lose what is

Re: sendRedirect in orion and jrun

2000-07-19 Thread Christian Sell
ROTECTED]> Date: Mittwoch, 19. Juli 2000 14:34 Subject: Re: sendRedirect in orion and jrun >Hm, interesting, compability is a reason for us promoting the relative way >too, can you explain/elaborate? >Technically if you have a 2.1 or below app it's "always bound to root&q

Re: sendRedirect in orion and jrun

2000-07-19 Thread Magnus Stenman
s Stenman, the Orion team - Original Message - From: "Christian Sell" <[EMAIL PROTECTED]> To: "Orion-Interest" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, July 19, 2000 11:13 AM Subject: Re: sendRedirect in orion and jrun > hello, >

Re: sendRedirect in orion and jrun

2000-07-19 Thread Christian Sell
hello, I have one last comment regarding the sendRedirect issue: In fact, I tend to changing my mind on this one. The behavior of JRun & Tomcat, even though it is out of line with many other API methods which take paths starting with "/" as context-relative, doea make sense be

Re: sendRedirect in orion and jrun

2000-07-17 Thread Duane Fields
to redirect to (before any conversion) **/ static public void sendRedirect(HttpServletRequest req, HttpServletResponse res, String href) throws IOException { if (ServletContainer.sendRedirectUsesDocroot() && href.startsWith("/")) href = req.getContex

Re: sendRedirect in orion and jrun

2000-07-15 Thread Christian Sell
previously) that context-relative makes the most sense, for the very reasons that you cite. My current problem is how to write server-portable code (and deployment descriptors!) which in the case of sendRedirect leads me to having to use hard-coded absolute URLs, as you describe. >Servlets 2.2 speci

Re: sendRedirect in orion and jrun

2000-07-15 Thread Stephan Schmidt
on the server's document root. " > >strange, though that they would call a path absolute that starts with "/". >Anyway, in case of sendRedirect (and everywhere else unless otherwise >mentioned, as Magnus said) I vote for "context root relative" > > &

RE: sendRedirect in orion and jrun

2000-07-14 Thread Victor A. Salaman
his is the reason you can take a "war" archive and send it to your friend and expect it to work :) When you do a sendRedirect(redirectPath), it's always interpreted as "relative to the context" unless you qualify it as "absolute". The fact that this works in other

Re: sendRedirect in orion and jrun

2000-07-14 Thread Christian Sell
e context. The given path must be absolute (beginning with "/") and is interpreted based on the server's document root. " strange, though that they would call a path absolute that starts with "/". Anyway, in case of sendRedirect (and everywhere else unless otherw

Re: sendRedirect in orion and jrun

2000-07-14 Thread Stephan Schmidt
eing said, unless Tomcat changes itself, shouldn't Orion follow suite?. -- Duane Fields [EMAIL PROTECTED] Managing Engineer, Web Development - Original Message - From: ""Jen Hsien Huang"" <[EMAIL PROTECTED]> Newsgroups: uo.listserv.orion Sent: Friday, July 1

Re: sendRedirect in orion and jrun

2000-07-14 Thread Duane Fields
Yes, but the SPEC says "It is legal to call this method [sendRedirect] with a relative URL path, however the underlying container must translate the relative path to a fully qualified URL for transmission back from the client." Which is unfortunately unclear. I'm ready to vote t

Re: sendRedirect in orion and jrun

2000-07-14 Thread Christian Sell
ement from orion dev on this (as always) -Original Message- From: Duane Fields <[EMAIL PROTECTED]> To: Orion-Interest <[EMAIL PROTECTED]> Date: Samstag, 15. Juli 2000 01:18 Subject: Re: sendRedirect in orion and jrun >I'm struggling with this too. Tomat does what

Re: sendRedirect in orion and jrun

2000-07-14 Thread Magnus Stenman
e Orion team > -- > Duane Fields > [EMAIL PROTECTED] > Managing Engineer, Web Development > > > - Original Message - > From: ""Jen Hsien Huang"" <[EMAIL PROTECTED]> > Newsgroups: uo.listserv.orion > Sent: Friday, July 14, 2000

Re: sendRedirect in orion and jrun

2000-07-14 Thread Duane Fields
ssage - From: ""Jen Hsien Huang"" <[EMAIL PROTECTED]> Newsgroups: uo.listserv.orion Sent: Friday, July 14, 2000 10:33 AM Subject: RE: sendRedirect in orion and jrun > Of cause, since API says server will resolve relative, so Orion is right. > > -Origi

RE: sendRedirect in orion and jrun

2000-07-14 Thread Jen Hsien Huang
Of cause, since API says server will resolve relative, so Orion is right. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Christian Sell Sent: Friday, July 14, 2000 7:43 PM To: Orion-Interest Subject: sendRedirect in orion and jrun from within a

sendRedirect in orion and jrun

2000-07-14 Thread Christian Sell
from within a servlet, i am making the following call: response.sendRedirect("/"); interesting thing: in orion, this takes me back to the context root of the web application. In JRun 3.0, it takes me to the root of the web server. As far as I can see, the API docs say that the server will resolv

RE: sendRedirect and WAP

2000-05-07 Thread Terence Kwan
buffer stream to avoid > content flush out before forwarding, do you take care of this? > > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Terence Kwan Sent: Monday, May 08, 2000 2:44 AM To: Orion-Interest Subject: sendRedirect and WAP

RE: sendRedirect and WAP

2000-05-07 Thread Jen Hsien Huang
bject: sendRedirect and WAP In my servlet program, I call: response.sendRedirect("http://www.yahoo.com") It works in html. However, it does not work in WAP. I believe that the problem is that sendRedirect creates a redirect "HTML" file (html file with the reference

sendRedirect and WAP

2000-05-07 Thread Terence Kwan
In my servlet program, I call: response.sendRedirect("http://www.yahoo.com") It works in html. However, it does not work in WAP. I believe that the problem is that sendRedirect creates a redirect "HTML" file (html file with the reference tag in it) and send it

sendRedirect and WAP

2000-05-07 Thread Terence Kwan
In my servlet program, I call: response.sendRedirect("http://www.yahoo.com") It works in html. However, it does not work in WAP. I believe that the problem is that sendRedirect creates a redirect "HTML" file (html file with the reference tag in it) and send it