sendRedirect(/lalala.html) in CBOSSishop, but
orion redirects it to the root app CBOSSwww /lalala.html;jsessionid=...
When i remove this line from default-web-site.xml:
web-app application=CBOSSwww name=web root=/ /
and do redirect again, it successfully redirects it to
/ishop/lalala.html
: Re: Taglib + jsp:include + sendRedirect does not work?
Hi Anders,
First complete the tag library and then use jsp:include.
util:sendMail
from=[EMAIL PROTECTED]
to=[EMAIL PROTECTED]
subject=testmail
/util:sendMail
jsp:include page=/templates/smalltext.txt
the jsp:include 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
-To: Orion-Interest [EMAIL PROTECTED]
To: Orion-Interest [EMAIL PROTECTED]
Subject: Taglib + jsp:include + sendRedirect does not work?
Date: Tue, 2 Apr 2002 17:31:34 +0200
The following jsp-file generates this Exception:
java.lang.IllegalStateException: Response has already been committed, be
sure
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
Hi!
There seems to be a bug in Orion (1.4.7) with sendRedirect and frontend
host=.. port=.. / 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
sp"
response.sendRedirect(response.encodeRedirectURL(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
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,
I have one last comment regarding t
: 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" so
you'd have for instance
redirect(&qu
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
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
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 servlet2 and
then go back
ef the url 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.getContextPath() + hre
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 specification
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
quot;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.
-Original Message-
From: [EMAIL PROTECTED] [mailto
ging Engineer, Web Development
- Original Message -
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 Ori
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 JRun does, interprets
relati
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 this o
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 otherwise
m
ng outside of it.
This 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 servl
nges 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 14, 2000 10:33 AM
Subject: RE: sendRedirect
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
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
In my servlet program, I call
24 matches
Mail list logo