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
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
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
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
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
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
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
'; '[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
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
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
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
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,
>
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
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
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
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"
>
>
&
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
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
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
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
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
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
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
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
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
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
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
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
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
29 matches
Mail list logo