RE: response.sendRedirect problems with IE5.5

2001-08-24 Thread Randy Layman
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

Does response.sendRedirect() work in tomcat3.3?

2001-08-23 Thread Brandon Cruz
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?

RE: Does response.sendRedirect() work in tomcat3.3?

2001-08-23 Thread Martin van den Bemt
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

Re: Does response.sendRedirect() work in tomcat3.3?

2001-08-23 Thread Thad Humphries
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

RE: Does response.sendRedirect() work in tomcat3.3?

2001-08-23 Thread Brandon Cruz
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

RE: response.sendRedirect vs. requestDispatcher.forward

2001-05-31 Thread Brandon Cruz
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

Re: response.sendRedirect vs. requestDispatcher.forward

2001-05-31 Thread Alex Fernández
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

RE: response.sendRedirect vs. requestDispatcher.forward

2001-05-31 Thread Martin van den Bemt
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

RE: response.sendRedirect vs. requestDispatcher.forward

2001-05-30 Thread A Yang
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

RE: response.sendRedirect vs. requestDispatcher.forward

2001-05-30 Thread Brandon Cruz
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

RE: response.sendRedirect vs. requestDispatcher.forward

2001-05-30 Thread Martin van den Bemt
- 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

response.sendRedirect vs. requestDispatcher.forward

2001-05-29 Thread A Yang
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

Re: response.sendRedirect vs. requestDispatcher.forward

2001-05-29 Thread Alex Fernández
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

AW: response.sendRedirect vs. requestDispatcher.forward

2001-05-29 Thread Ralph Einfeldt
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

RE: response.sendRedirect vs. requestDispatcher.forward

2001-05-29 Thread Martin van den Bemt
: 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

sessions response.sendRedirect

2001-05-10 Thread Ben Carterette
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

RE: sessions response.sendRedirect

2001-05-10 Thread Brandon Cruz
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

RE: sessions response.sendRedirect

2001-05-10 Thread Beau Bisquette
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

RE: sessions response.sendRedirect

2001-05-10 Thread Brandon Cruz
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

problem with response.sendRedirect()

2001-05-09 Thread Brandon Cruz
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

Re: problem with response.sendRedirect()

2001-05-09 Thread Noel E. Lecaros
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

RE: problem with response.sendRedirect()

2001-05-09 Thread Brandon Cruz
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

Problem response.sendRedirect

2001-04-18 Thread Connie Chan
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

problem with response.sendRedirect()

2001-04-09 Thread Patrick . Pierra
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/");

RE: problem with response.sendRedirect()

2001-04-09 Thread Michael Wentzel
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/");

Problem with response.sendRedirect

2001-02-04 Thread Melissa Matthews
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

Re: Problem with response.sendRedirect

2001-02-04 Thread Chris Janicki
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

Re: response.sendRedirect and target

2001-01-29 Thread Wyn Easton
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

RE: response.sendRedirect() and NSAPI redirection...

2001-01-24 Thread Danganan, Clyde
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

response.sendRedirect() and NSAPI redirection...

2001-01-23 Thread Dean Des Rosiers
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

Re: How to use response.sendRedirect() to foward to the _top frame?

2000-12-17 Thread Christian Wenz
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?

AW: response.sendRedirect bug or feature

2000-12-07 Thread Christian Schulz
Title: AW: response.sendRedirect bug or feature Hi ! Just try: - ... if (a b) { response.sendRedirect(url1); return; } ... response.sendRedirect(url2

RE: response.sendRedirect bug or feature

2000-12-07 Thread David Rees
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

response.sendRedirect stops working in Apache/Tomcat setup

2000-10-30 Thread mih
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

Re: response.sendRedirect stops working in Apache/Tomcat setup

2000-10-30 Thread Leon Palermo
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

<    1   2