Calling response.sendRedirect does not stop the execution of a JSP
page. You are responsible for returning from the _jspService method after
calling sendRedirect (by placing a return statement in your JSP).
What is actually happening is that Netscape is thinking that its
When using tomcat 3.2.1 with apache, no matter what trick we tried, we could
not get response.sendRedirect() to work properly, the page printed up
garbage 90% of the time. Is anyone using response.sendRedirect() in their
jsp code with 3.3 connected to apache?
About 600 servlets at our site use the redirect (not using jsp's) and it
works great..
mvgr,
Martin
-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 9:33 PM
To: [EMAIL PROTECTED]
Subject: Does response.sendRedirect() work in tomcat3.3
We're using Tomcat 3.2.3 and are using response.sendRedirect() from a
servlet without difficulty.
At 14:32 8/23/2001 -0500, you wrote:
When using tomcat 3.2.1 with apache, no matter what trick we tried, we could
not get response.sendRedirect() to work properly, the page printed up
garbage 90
Very frustrating, hopefully an upgrade will help then.
Brandon
-Original Message-
From: Thad Humphries [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 2:40 PM
To: [EMAIL PROTECTED]
Subject: Re: Does response.sendRedirect() work in tomcat3.3?
We're using Tomcat 3.2.3
30, 2001 6:38 PM
To: [EMAIL PROTECTED]
Subject: RE: response.sendRedirect vs. requestDispatcher.forward
If you webserver is serving in /usr/local/apache/htdocs, you are redirecting
to /usr/local/apache/htdocs/login.jsp, which is handled in this example by
apache, who doesn't know anything about
Hi Andy!
Just a fine point here.
A Yang wrote:
RequestDispatch.forward takes a URL that is a RELATIVE
path but also requires a leading slash.
From the javadoc of ServletRequest.getRequestDispatcher(String):
'The pathname specified may be relative, although it cannot extend
outside the
Hi,
Never used the reqeuestdispatcher, but in your case it could be something
like :
response.sendRedirect(http://servername/context/login.jsp);
(don't know where tomcat is serving jsp files though, I never use them..)
Mvgr,
Martin
-Original Message-
From: Brandon Cruz [mailto
Message-
From: Alex Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 29, 2001 4:57 PM
To: [EMAIL PROTECTED]
Subject: Re: response.sendRedirect vs.
requestDispatcher.forward
Conceptually, requestDispatcher.forward() is
different from
response.sendRedirect().
In forward
Has anyone figured out why response.sendRedirect(/login.jsp) will not work
when using apache-tomcat with mod_jk? It gets all screwed up and prints a
bunch of header information out to the page...is there a way around it
besides using javascript to redirect the page?
Brandon Cruz
-Original
-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 31, 2001 1:31 AM
To: [EMAIL PROTECTED]
Subject: RE: response.sendRedirect vs. requestDispatcher.forward
Has anyone figured out why response.sendRedirect(/login.jsp)
will not work
when using apache-tomcat with mod_jk? It gets
of a sequence of pages/servlets, but I
wanted to replace it with
response.sendRedirect(/Result.jsp);
instead. The result page prints out the contents of
several javabeans which are stored in the session.
This worked fine when all I used were
requestDispatcher.forward but with
response.sendRedirect
Conceptually, requestDispatcher.forward() is different from
response.sendRedirect().
In forward(), you are moving inside the same webapp, and as such it
doesn't even reach the client browser. The session is maintained.
In sendRedirect(), you're instead moving across webapps, and it's
Try this one:
response.sendRedirect(response.encodeRedirectUrl(/Result.jsp));
-Ursprüngliche Nachricht-
Von: A Yang [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 29. Mai 2001 16:21
An: [EMAIL PROTECTED]
Betreff: response.sendRedirect vs. requestDispatcher.forward
snip
: Tuesday, May 29, 2001 4:57 PM
To: [EMAIL PROTECTED]
Subject: Re: response.sendRedirect vs. requestDispatcher.forward
Conceptually, requestDispatcher.forward() is different from
response.sendRedirect().
In forward(), you are moving inside the same webapp, and as such it
doesn't even reach
I upgraded Monday from apache+jserv to Apache 1.3+Tomcat 3.2.1+mod_jk,
and I'm experiencing some bizarre problems with some of my webapps. One
in particular looks like this:
index.jsp
---
%@ page import=java.sql.* %
%
if (request.getRemoteAddr().equals(...))
{
response.sendRedirect
I also posted a similar problem yesterday. When I attempt to do a
response.sendRedirect it seems like the apache+tomcat configuration hangs.
It responds a little differently than you describe though. It causes the
new page (the one I redirect to) to be appended to the end of the old one in
some
Hey,
Try putting a 'return ;' after the response.sendRedirect( ... ); --
otherwise you'll end up with all kinds of confusion.
At 05/10/2001 11:30 -0500, Brandon Cruz wrote:
I also posted a similar problem yesterday. When I attempt to do a
response.sendRedirect it seems like the apache+tomcat
10, 2001 2:39 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: sessions response.sendRedirect
Hey,
Try putting a 'return ;' after the response.sendRedirect( ... ); --
otherwise you'll end up with all kinds of confusion.
At 05/10/2001 11:30 -0500, Brandon Cruz wrote:
I also posted
I have a jsp that does a simple response.sendRedirect to another page on the
site when a user logs out. For develoopment, we use tomcat standalone and
there is no problem executing that method. On production, we have apache as
the webserver and it seems to choke when executing that method
Hi, Brandon
Can you tell us the OS, tomcat and apache versions, sample output and perhaps a
snippet of the code? I can't promise anything but this looks like an
interesting problem.
Regards,
Noel Lecaros
Brandon Cruz wrote:
I have a jsp that does a simple response.sendRedirect to another
I am using linux, tomcat v3.2.1 Apache v1.3.14 and my code is very simple...
if (request.getParameter(Submit).equals(logout)){
sessionBean.setLogin(false);
sessionBean.closeConnection();
response.sendRedirect(thanks.jsp); //to say thank you after logout
}
I
Hi,
Does anyone know what response.sendRedirect is supposed to behave? I'm
developing an object to detect if the session is valid. All my servlets
would call the function from this object (let say
sessionChecker.checkSession(request, response) ) to check if a valid
session exists
Hi,
I try to redirect users who try to access page on my site and who have not
enter username + passord.
I have a litle jsp :
%
User tUser = (User)session.getAttribute("user");
if ( tUser == null) {
response.sendRedirect("http://localhost:8080/");
I try to redirect users who try to access page on my site and
who have not
enter username + passord.
I have a litle jsp :
%
User tUser = (User)session.getAttribute("user");
if ( tUser == null) {
response.sendRedirect("http://localhost:8080/");
I am using the sendRedirect method from a JSP page to send a user to another
JSP page after logging in. While it does redirect to the correct page, the
fonts, images etc. are not right until I hit the refresh. If I go to the
exact same page in my browser, it's fine.
Is the redirect doing
browser.
Original Message
On 2/4/01, 6:26:46 PM, Melissa Matthews [EMAIL PROTECTED] wrote
regarding Problem with response.sendRedirect:
I am using the sendRedirect method from a JSP page to send a user to
another
JSP page after logging in. While it does redirect to the correct page
f.location;
}
/*/
--- Carlos [EMAIL PROTECTED] wrote:
if i have:
response.sendRedirect("page.jsp");
how can i put in a target=_top the redirect?
thanks
Carlos
-
To unsubsc
a
similar config file that needs to be modified as well. Hope this helps!
Original Message-
From: "Dean Des Rosiers" [EMAIL PROTECTED]
To: "[EMAIL PROTECTED]"
[EMAIL PROTECTED]
Cc:
Bcc:
Subj: res
to work fine except for response.sendRedirect(). Ordinarily we use a relative path as
the argument to this method, but full paths seem to fail as well.
Again, everything works fine under Tomcat alone (port 8080). When I use iPlanet and the NSAPI redirector
(port 8082 its a testing configuration
Hi,
that's not possible with server-side techniques, only client-side (e.g.
using JavaScript or a href="..." target="_top)
Regards
Christian
Zsolt Koppany wrote:
Hi,
how can I forward to a page that should appear (take) in the _top frame?
Title: AW: response.sendRedirect bug or feature
Hi !
Just try:
-
...
if (a b)
{
response.sendRedirect(url1);
return;
}
...
response.sendRedirect(url2
Add a return statement:
if (a b) {
response.sendRedirect(url1);
return;
}
// Do something else!
response.sendRedirect(url1);
-Dave
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Zsolt Koppany
Sent: Thursday, December 07, 2000 12:30
Hi!
I recently setup my Tomcat to run integrated with Apache. Everything
worked fine, except that any jsp-page that contained a
response.sendRedirect stopped redirecting. I don't get any response
at all. Any clues?
Thanks!
/Martin Holmgren
Check out the latest in z.com programming, produced
30, 2000 6:44
AM
Subject: response.sendRedirect stops
working in Apache/Tomcat setup
Hi!I recently setup my Tomcat to run integrated
with Apache. Everything worked fine, except that any jsp-page that
contained a response.sendRedirect stopped redirecting. I don
101 - 135 of 135 matches
Mail list logo