response.sendredirect and IllegalStateException

2005-04-27 Thread Abhilash Bose.K
Hi, I was using tomcat 3.1 for one of my client sites. Currently they gonna update it to the latest. When I ported by the application into tomcat 5.5, I found that response.SendRedirect is giving me the error which was due to the calling the some action after calling the SendRedirect. But

page not loading completely with tomcat and response.sendRedirect()

2005-02-27 Thread Krisen Naidoo
We are using response.sendRedirect() to refresh a jsp page by redirecting to itself. When the page is redirected to itself, a portion of the static html code is not completely loaded. Below is the portion of the html code. If we remove 5 lines of code eg: some option values.the page loads

Re: response.sendRedirect()

2004-10-07 Thread Ben Souther
gt; > > Hi, > > > > > > I don't test in other Tomcat version. I'm trying a sendRedirect() in one JSP. > > > And it doesn't work. The code is: > > > > > > response.sendRediredt("/jknopkn/prueba.jsp"); > > > > > > QM

Re: response.sendRedirect()

2004-10-07 Thread Pablo Carretero Sánchez
sn't work. The code is: > > > > response.sendRediredt("/jknopkn/prueba.jsp"); > > > > QM ([EMAIL PROTECTED]) escribió: > > > > > > On Wed, Oct 06, 2004 at 04:38:54PM +0200, Pablo Carretero S?nchez wrote: > > > : I have a urgent problem

Re: response.sendRedirect()

2004-10-06 Thread Ben Souther
06, 2004 at 04:38:54PM +0200, Pablo Carretero S?nchez wrote: > > : I have a urgent problem response.sendRedirect() in Tomcat 5.0.27. > > : > > : It doesn't work in my appl. > > > > What, specifically, doesn't work? > > Did this same code work in a previous

RE: response.sendRedirect()

2004-10-06 Thread Filip Hanik \(lists\)
works for me -Original Message- From: Pablo Carretero Sánchez [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 06, 2004 9:39 AM To: [EMAIL PROTECTED] Subject: response.sendRedirect() Hi, I have a urgent problem response.sendRedirect() in Tomcat 5.0.27. It doesn't work in my

RE: response.sendRedirect()

2004-10-06 Thread Dale, Matt
mistake in your example below. Ta Matt -Original Message- From: Pablo Carretero Sánchez [mailto:[EMAIL PROTECTED] Sent: 06 October 2004 16:11 To: Tomcat Users List Subject: Re: response.sendRedirect() Hi, I don't test in other Tomcat version. I'm trying a sendRedirect() in on

Re: response.sendRedirect()

2004-10-06 Thread Pablo Carretero Sánchez
chez wrote: > : I have a urgent problem response.sendRedirect() in Tomcat 5.0.27. > : > : It doesn't work in my appl. > > What, specifically, doesn't work? > Did this same code work in a previous version of Tomcat 5.0.x? > > etc, etc. We're all pretty

Re: response.sendRedirect()

2004-10-06 Thread QM
On Wed, Oct 06, 2004 at 04:38:54PM +0200, Pablo Carretero S?nchez wrote: : I have a urgent problem response.sendRedirect() in Tomcat 5.0.27. : : It doesn't work in my appl. What, specifically, doesn't work? Did this same code work in a previous version of Tomcat 5.0.x? etc, etc.

response.sendRedirect()

2004-10-06 Thread Pablo Carretero Sánchez
Hi, I have a urgent problem response.sendRedirect() in Tomcat 5.0.27. It doesn't work in my appl. Can anyone help me. Thanks a lot -- __ Pablo Carretero Sánchez Cygnux Arquitecto de Software Pintor Velazquez nº 3 Esc Izq 7º B 28932 – Móstoles (M

RE: response.sendredirect failig from an included .jsp

2004-08-04 Thread Shapira, Yoav
TED]; Tomcat Users List >Subject: Re: response.sendredirect failig from an included .jsp > >Tim, > >Thanks for the info. The redirect that I'm trying to achieve is actually >internal to my site. So I started looking at >requestdispatcher.forward( ), but it appears to me

Re: response.sendredirect failig from an included .jsp

2004-08-04 Thread Jon Beyer
to be able to clear the variables in the query string. Any ideas? Thanks, Jon On Tue, 03 Aug 2004 19:50:11 -0400, Tim Funk <[EMAIL PROTECTED]> wrote: Yes it should be failing. You cannot set headers or issue redirects from an include. (Its a rule in the spec) -Tim Jon Beyer wrote:

Re: response.sendredirect failig from an included .jsp

2004-08-03 Thread Tim Funk
Yes it should be failing. You cannot set headers or issue redirects from an include. (Its a rule in the spec) -Tim Jon Beyer wrote: The code 'response.sendRedirect( "http://www.yahoo.com"; )' fails when the containing jsp is included from another jsp. Should this be

response.sendredirect failig from an included .jsp

2004-08-03 Thread Jon Beyer
The code 'response.sendRedirect( "http://www.yahoo.com"; )' fails when the containing jsp is included from another jsp. Should this be failing? What am I doing wrong? By 'failing', I mean that there is no exception thrown, and no error message, but simply no

Re: response.sendRedirect problem in Tomcat 5.0.18

2004-02-01 Thread Ben Souther
w what eventuates. > > Should there be no "out.print" statements above the "response.sendRedirect" > lines in the jsp code ? > There are also "out.write" statements in the jsp code above the redirect > lines, could these also cause a problem ? > >

Re: response.sendRedirect problem in Tomcat 5.0.18

2004-01-31 Thread Ben Souther
On Saturday 31 January 2004 11:32 pm, you wrote: > at org.apache.jsp.product_jsp._jspService(product_jsp.java:283) If you go into your work directory, and look at product_jsp.java line 283, you will see exactly what's causing the problem. Without seeing your code, I can't be sure what the proble

response.sendRedirect problem in Tomcat 5.0.18

2004-01-31 Thread Anthony Gray
Hi All, Repost due to a spelling error - sorry: I'm having a problem with response.sendRedirect lines when running Tomcat 5.0.18. I don't have this issue when using tomcat 5.0.16. Do you know if this function has been changed in tomcat 5.0.18 ? I am able to call the respec

Re: what if response.sendRedirect(null)

2004-01-02 Thread Tim Funk
The spec doesn't dictate that the parameter to sendRedirect must be non-null. So the behavior probably varies by container. Other containers might throw NPE. -Tim Antony Paul wrote: Hi, What will happend if response.sendRedirect(null) is called. It is giving a directory listing. No err

what if response.sendRedirect(null)

2004-01-02 Thread Antony Paul
Hi, What will happend if response.sendRedirect(null) is called. It is giving a directory listing. No error is thrown. Is this as per the spec ? I am using Tomcat 4.1.27 with JDK 1.3.1 rgds Antony Paul - To unsubscribe, e

RE: response.sendRedirect() finite loop?!

2003-12-03 Thread srevilak
> On further investigation it would appear that this is not a Tomcat > issue. It seems to be something to do with mod_jk. When a > response.sendRedirect occurs it does not apply it properly. Or at > least something is not executing properly. > > The setup we have is Apache 2.0

RE: response.sendRedirect() finite loop?!

2003-12-03 Thread Jeff Tulley
ough about mod_jk to comment intelligently. If you don't need Apache, don't use it ;) Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Stuart Stephen [mailto:[EMAIL PROTECTED] >Sent: Wednesday, December 03, 2003 7:37 AM >To: Tomcat Users List >Sub

RE: response.sendRedirect() finite loop?!

2003-12-03 Thread Shapira, Yoav
ROTECTED] >Sent: Wednesday, December 03, 2003 7:37 AM >To: Tomcat Users List >Subject: RE: response.sendRedirect() finite loop?! > >Hi, > >On further investigation it would appear that this is not a Tomcat issue. >It >seems to be something to do with mod_jk. When a respons

RE: response.sendRedirect() finite loop?!

2003-12-03 Thread Stuart Stephen
Hi, On further investigation it would appear that this is not a Tomcat issue. It seems to be something to do with mod_jk. When a response.sendRedirect occurs it does not apply it properly. Or at least something is not executing properly. The setup we have is Apache 2.0.48, Tomcat 4.1.29, and

response.sendRedirect() finite loop?!

2003-12-03 Thread Stuart Stephen
talk2UtimeHi all, I am getting strange entries in my test_service_log.2003-12-03.txt. In my JSP which gets executed before this I am running a response.sendRedirect("/test/RedirectToMe.jsp"); with a return; afterwards. So this should only get executed once. However. According to m

Re: response.sendRedirect()

2003-11-07 Thread Ben Souther
Are you redirecting from an "http" to an "https" url or vice versa? Are you redirecting to a different domain? On Friday 07 November 2003 11:35 am, Duncan wrote: > Is it normal to loose your session when using the > response.sendRedirect() command? > > If so is

Re: response.sendRedirect()

2003-11-07 Thread Rodrigo Ruiz
. Sometimes I have lost my session because I was not calling the getSession() in my servlet. This led my servlet engine to not properly set the response cookies. Hope it helps you, Rodrigo Ruiz Duncan wrote: Is it normal to loose your session when using the response.sendRedirect() command? If so is there

Re: response.sendRedirect()

2003-11-07 Thread Duncan
Oops. Just realised that my app was switching between contexts on my server, which is why I was loosing session info. Thanks for the replies thought. - Duncan. Jean-Francois Arcand wrote: > Duncan wrote: > > >Is it normal to loose your session when using the > >response.send

Re: response.sendRedirect()

2003-11-07 Thread Jean-Francois Arcand
Duncan wrote: Is it normal to loose your session when using the response.sendRedirect() command? If so is there a way to redirect without loosing the session? Yes, do a RequestDispatcher.forward(...) instead. -- Jeanfrancois Cheers, Duncan. Decker Telecom Ltd

RE: response.sendRedirect()

2003-11-07 Thread Anton Modaresi
you do not lose your session, but you create a new request. /anton -Original Message- From: Duncan [mailto:[EMAIL PROTECTED] Sent: den 7 november 2003 17:36 To: Tomcat User List Subject: response.sendRedirect() Is it normal to loose your session when using the response.sendRedirect

response.sendRedirect()

2003-11-07 Thread Duncan
Is it normal to loose your session when using the response.sendRedirect() command? If so is there a way to redirect without loosing the session? Cheers, Duncan. Decker Telecom Ltd - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: response.sendRedirect

2003-09-05 Thread Ben Souther
>The one thing you want to watch out for with relative redirects is that >they're converted by the servlet container to absolute URLs (this is in the >servlet spec). This is, by the letter of the HTTP spec, the correct thing >to do. Unfortunately, it can cause problems in deployments where an

RE: response.sendRedirect

2003-09-05 Thread Allen Hadden
r the following: - browser requests https://visibleserver/a.jsp - a proxy SSL accelerator does the SSL processing, then forwards the request via standard HTTP to http://realserver/a.jsp - the web application does some processing, followed by a response.sendRedirect("b.jsp"), wh

Re: response.sendRedirect

2003-09-05 Thread Ben Souther
The easiest way to understand this is to think about how a browser sees a relative link. Browsers don't know that they're dealing with a servlet app. A sendRedirect simply puts the following header in the response: "Location: url" Let's take the following url: http://www.mydomain.com/cal/inde

Re: response.sendRedirect

2003-09-05 Thread Christopher Williams
ile/another.jsp In sendRedirect, I'm fairly sure that you simply use "/cal/form/index.jsp". That sort of pattern always works for my webapps. - Original Message - From: "Charlie Toohey" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, Septe

response.sendRedirect

2003-09-05 Thread Charlie Toohey
The Servlet API doc for the sendRedirect method states: "If the location is relative with a leading '/' the container interprets it as relative to the servlet container root." I've looked thru the Servlet Spec and can not quite figure out what they mean by servlet container root ? Is th

Re: jk connector and response.sendRedirect()

2003-07-30 Thread Chris Egolf
I'm not a programmer but an administrator. We have had an similar problem and solved it by changing the apache option UseCanonicalNames from "on" to "off". [when UseCanonicalName ist on, everytimes you call response.sendRedirect() the apache takes the servername (fro

Re: jk connector and response.sendRedirect()

2003-07-30 Thread Zach Gatu
When I use response.sendRedirect(), although redirecting to within the same context, I tend supply the whole URL. I thus avoid the kind of problems you seem to be getting. In a controller servlet where I redirect depending on the request, I do this: String urlPath = request.getScheme

Re: jk connector and response.sendRedirect()

2003-07-30 Thread Chris Egolf
Chris Egolf wrote: John Turner wrote: Can Apache resolve this hostname? Is it setup in /etc/hosts (or the HOSTS file if you're using Win32)? Yes, I believe so. I added all the possible hostnames as alias to /etc/hosts (BTW, I'm running on Linux -- RH7.3). Hmmm...my JkMount stuff is in the s

Re: jk connector and response.sendRedirect()

2003-07-30 Thread Chris Egolf
John Turner wrote: Chris Egolf wrote: With just the JK connector enabled and listening on 8009, I've added Apache back and setup elements in the element of my server.xml. The host the browser says it can't find is the actual hostname of the machine, not the DNS entry. Can Apache resolve th

AW: jk connector and response.sendRedirect()

2003-07-30 Thread Fischer, Ilona
I'm not a programmer but an administrator. We have had an similar problem and solved it by changing the apache option UseCanonicalNames from "on" to "off". [when UseCanonicalName ist on, everytimes you call response.sendRedirect() the apache takes the servername (fro

Re: jk connector and response.sendRedirect()

2003-07-30 Thread John Turner
Chris Egolf wrote: With just the JK connector enabled and listening on 8009, I've added Apache back and setup elements in the element of my server.xml. The host the browser says it can't find is the actual hostname of the machine, not the DNS entry. Can Apache resolve this hostname? Is it s

jk connector and response.sendRedirect()

2003-07-30 Thread Chris Egolf
I'm pulling my hair out on this one, but I think I've narrowed it down so I can at least ask the question... We're running Tomcat 4.1.24/Apache 1.3.27/Sun JDK 1.4.2 using mod_jk. The issue we're dealing with now, is that in some cases an existing webapp uses the response.s

RE: servlet response.sendRedirect() illegal state exception

2003-06-26 Thread Shanta B
Hi I find the problem ...and i rectify it ... -Original Message- From: Tim Davidson [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 12:17 PM To: Tomcat Users List Subject: RE: servlet response.sendRedirect() illegal state exception It means a response has already been

RE: servlet response.sendRedirect() illegal state exception

2003-06-26 Thread Shapira, Yoav
Howdy, >In my servlet response.sendRedirect i am getting illegal state >exception >...could pl tell me how to avoid this...whats does it mean... It's actually pretty clearly indicates in the JavaDoc for HttpServletResponse#sendRedirect. Don't write to the response be

RE: servlet response.sendRedirect() illegal state exception

2003-06-26 Thread Tim Davidson
n the HTML header to tell the browser to request a file) but I dont know enough about it. Since you call out.println(..) your response is commited and you cant subsequently call response.sendRedirect(..). I think this is more a design issue of your approach and without knowing more about what

RE: servlet response.sendRedirect() illegal state exception

2003-06-26 Thread Shanta B
()) out.println(messagetodownload); out.flush(); sugget me whats the alternative . -Original Message- From: Tim Davidson [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 12:17 PM To: Tomcat Users List Subject: RE: servlet response.sendRedirect() illegal state exception It

RE: servlet response.sendRedirect() illegal state exception

2003-06-26 Thread Tim Davidson
It means a response has already been committed (i.e. you have already committed to sending HTML from that servlet). Somewhere it your code you are using the printWriter or response.sendRedirect or you are already forwarding to another servlet. You should avoid having more than one

servlet response.sendRedirect() illegal state exception

2003-06-26 Thread Shanta B
Hi In my servlet response.sendRedirect i am getting illegal state exception ...could pl tell me how to avoid this...whats does it mean... Thanks Shanta.B -Original Message- From: Hartmut Bernecker [mailto:[EMAIL PROTECTED] Sent: Thursday, June 26, 2003 9:40 AM To: [EMAIL PROTECTED

Re: response.sendRedirect() and the servlet path?

2003-05-30 Thread Bill Barker
ontext path such as /mycontext and I > use response.sendRedirect("/foo.jsp"), the container > should translate that into a full url such as > http://myserver/mycontext/foo.jsp, instead of > http://myserver/foo.jsp. However, it seems that this > is not happening. Am I do

response.sendRedirect() and the servlet path?

2003-05-30 Thread joe user
Hi, if I have a context path such as /mycontext and I use response.sendRedirect("/foo.jsp"), the container should translate that into a full url such as http://myserver/mycontext/foo.jsp, instead of http://myserver/foo.jsp. However, it seems that this is not happening. Am I doing somet

Re: response.sendRedirect( .. )

2003-03-05 Thread Geoff Coffey
On Wednesday, March 5, 2003, at 09:41 AM, Mike Jackson wrote: I have 3 machines that I support with broken browsers that don't follow redirects immediately. In fact if the page includes any content, any at all, the ignore the redirect. I'm not 100% sure, but I even thing they ignore meta tag r

RE: response.sendRedirect( .. )

2003-03-05 Thread Mike Jackson
PROTECTED] > -Original Message- > From: Geoff Coffey [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 05, 2003 7:39 AM > To: Tomcat Users List > Subject: Re: response.sendRedirect( .. ) > > > On Wednesday, March 5, 2003, at 08:32 AM, Tim Funk wrote: > > > I

Re: response.sendRedirect( .. )

2003-03-05 Thread Erik Price
Geoff Coffey wrote: It seems like we need our authentication check and redirect (or forward) on the content page itself and not in an include, so Muffi created a taglib to encapsulate this check and that seems to be working. Is this a typical solution? It seems like a frustrating restriction

Re: response.sendRedirect( .. )

2003-03-05 Thread Erik Price
Geoff Coffey wrote: On Wednesday, March 5, 2003, at 08:32 AM, Tim Funk wrote: I paraphrase as its nice to present some body content in your page since browsers/agents do have the option of displaying/parsing the body for some context before following the redirect. I stand corrected on that

Re: response.sendRedirect( .. )

2003-03-05 Thread Geoff Coffey
On Wednesday, March 5, 2003, at 08:32 AM, Tim Funk wrote: I paraphrase as its nice to present some body content in your page since browsers/agents do have the option of displaying/parsing the body for some context before following the redirect. I stand corrected on that point, although I've nev

Re: response.sendRedirect( .. )

2003-03-05 Thread Tim Funk
Section 4.4 of the Jsp spec: "An included page only has access to the JspWriter object and it cannot set headers. This precludes invoking methods like setCookie(). Attempts to invoke these methods will be ignored. The constraint is equivalent to the one imposed on the include() method of the Req

Re: response.sendRedirect( .. )

2003-03-05 Thread Geoff Coffey
After a redirect the servlet that issues the redirect will continue to run unless you stop the processing with a return statement directly after the redirect. Now consider this example: [...] This will stop Servlet B from processing doMoreOtherThings() after the redirect, but Servlet A will still

RE: response.sendRedirect( .. )

2003-03-05 Thread Ralph Einfeldt
[EMAIL PROTECTED] > Sent: Wednesday, March 05, 2003 12:49 AM > To: Tomcat Users List > Subject: Re: response.sendRedirect( .. ) > > > Does anybody know the reason for this limitation? > Does anybody have a better way to accomp

Re: response.sendRedirect( .. )

2003-03-04 Thread Tim Funk
(Sorry for the ramblings ...) Yes - creating a taglib is much, much better than a compile time include. My only reason of recommendation for a compile time include was because that was the easiest and quickest fix - but also the worst. There are a few ways to perform authentication. Each has th

Re: response.sendRedirect( .. )

2003-03-04 Thread Geoff Coffey
You can do a compile time include instead of a run-time include. Tim: We wanted to avoid that because we're including quite a lot of stuff, and it is being included on every page. Naively, I felt that duplicating all that header and footer logic and HTML in every generated servlet would be unwi

Re: response.sendRedirect( .. )

2003-03-04 Thread Tim Funk
You can do a compile time include instead of a run-time include. -Tim Mufaddal Khumri wrote: Yes This is used from within an include. so how would I redirect ? Thanks. On Wednesday, March 5, 2003, at 03:20 AM, Tim Funk wrote: If this page is being called via a jsp:include - your out of luck.

Re: response.sendRedirect( .. )

2003-03-04 Thread Mufaddal Khumri
d them to the login page if(session.getAttribute("USER_AUTHORIZED") == null || session.getAttribute("USER_AUTHORIZED").equals("false")) { System.out.println("Before redirect"); response.sendRedirect("/login/Login.jsp");

Re: response.sendRedirect( .. )

2003-03-04 Thread Tim Funk
R_AUTHORIZED").equals("false")) { System.out.println("Before redirect"); response.sendRedirect("/login/Login.jsp"); System.out.println("After redirect"); } %> I don&

response.sendRedirect( .. )

2003-03-04 Thread Mufaddal Khumri
THORIZED") == null || session.getAttribute("USER_AUTHORIZED").equals("false")) { System.out.println("Before redirect"); response.sendRedirect("/login/Login.jsp"); System.out.println("After redirect"); } %> I don't kno

Re: response.sendRedirect(" " ); question

2003-03-04 Thread Erik Price
Mufaddal Khumri wrote: Adding a return does not work. Well, it was worth a try. Sorry it didn't work out. My own approach (modeled after the conventional wisdom tossed about on this list and in some tutorials I have read) is to refrain from using decision logic in JSPs wherever possible. So

Re: response.sendRedirect(" " ); question

2003-03-04 Thread Mufaddal Khumri
Adding a return does not work. Infact I tried to add this to the top of my page <%@ page buffer="32KB" autoFlush="true" %> This throws the following error: 2003-03-04 14:19:07 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException: /includ

Re: response.sendRedirect(" " ); question

2003-03-04 Thread Erik Price
Mufaddal Khumri wrote: Now if the USER_AUTHORIZED attribute is not set, it will enter the if block and get redirected to the login.jsp page. The browser shows me the content of the body page after the if block instead. Does after getting redirected the call returns to this page and complet

response.sendRedirect(" " ); question

2003-03-04 Thread Mufaddal Khumri
THORIZED") == null || session.getAttribute("USER_AUTHORIZED").equals("false")) { response.sendRedirect("/login/Login.jsp"); } %> I don't know why this is being

response.sendRedirect(" " ); question

2003-03-04 Thread Mufaddal Khumri
THORIZED") == null || session.getAttribute("USER_AUTHORIZED").equals("false")) { response.sendRedirect("/login/Login.jsp"); } %> I don't know why this is being

RE: response.sendRedirect() - is this allowed?

2003-02-07 Thread Daniel Brown
nd very tedious to debug :( Dan. > -Original Message- > From: Neale [mailto:[EMAIL PROTECTED]] > Sent: 07 February 2003 09:01 > To: Tomcat Users List > Subject: Re: response.sendRedirect() - is this allowed? > > > > >if ( "POST".equalsIgnoreCase( r

Re: response.sendRedirect() - is this allowed?

2003-02-07 Thread Neale
> >if ( "POST".equalsIgnoreCase( request.getMethod() ) ) > >{ > >StringBuffer buf = new StringBuffer(); > >buf.append( request.getRequestURI() ); > >buf.append( "?" ); > >buf.append( request.getQueryString() ); >

Re: response.sendRedirect() - is this allowed?

2003-02-06 Thread Sean Dockery
the POSTed parameters to the query string in your example below. "Julius Davies" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello, Tomcat User's List, There was some talk a few days ago about "response.sendRedirect()&

Re: response.sendRedirect() - is this allowed?

2003-02-06 Thread Bill Barker
ubmission of the same form. > > // > > Not clear - how is the second submission avoided? > > > > if ( "POST".equalsIgnoreCase( request.getMethod() ) > > ) > > { > >StringBuffer buf = new StringBuffer(); > >buf.append( request.getRe

Re: response.sendRedirect() - is this allowed?

2003-02-06 Thread rf
lsIgnoreCase( request.getMethod() ) > ) > { >StringBuffer buf = new StringBuffer(); >buf.append( request.getRequestURI() ); >buf.append( "?" ); >buf.append( request.getQueryString() ); >response.sendRedirect( buf.toString() ); >return; > } I have been using t

Re: response.sendRedirect() - is this allowed?

2003-02-06 Thread Bill Barker
User's List, There was some talk a few days ago about "response.sendRedirect()" after a POST request being against the HTTP specification... is that really true? For example, would this be a problem? IE and Netscape seem to do what I want! // This is common trick I use after a

response.sendRedirect() - is this allowed?

2003-02-06 Thread Julius Davies
Hello, Tomcat User's List, There was some talk a few days ago about "response.sendRedirect()" after a POST request being against the HTTP specification... is that really true? For example, would this be a problem? IE and Netscape seem to do what I want! // This is common tr

RE: Using response.sendRedirect() with POST

2002-12-11 Thread Noel J. Bergman
> Is there any way to encode parameters into a redirected response WITHOUT > just encoding them into the URL like this: - cookies - session attributes You could encode the data in a cookie, and retrieve it in your target page. Alternatively, you could put the data into one or more session bean

Using response.sendRedirect() with POST

2002-12-11 Thread Johnson, Garrett
Is there any way to encode parameters into a redirected response WITHOUT just encoding them into the URL like this: response.sendRedirect( "/errorpage.jsp?errorcode=12" ); I'd like for it to be transparent to the user, using post, or some other invisible method like the reque

bug in response.sendRedirect with WARP?

2002-09-03 Thread Will Glass-Husain
Hi, I have found an apparent bug with Tomcat 4.0.1 and the WARP connector. When my JSP page calls response.sendRedirect() through the Apache webapp (WARP) Engine, nothing happens. (I do this when given a bad login, for example). When I access the page through Tomcat directly (port 8080

I do not call response.sendRedirect(url) with https

2002-07-29 Thread nwalal
Hi, can tell me why I can not make a response.sendRedirect(url) in https protocol? I use apache with mod_ssl and Tomcat with mod_webapps Thanks for your help

RE: RequestDispatcher forward versus response.sendRedirect

2002-07-24 Thread jeff . guttadauro
tortz" smith.com>cc: Subject: RE: RequestDispatcher forward versus response.sendRedirect 0

RE: RequestDispatcher forward versus response.sendRedirect

2002-07-24 Thread Jason Stortz
Jeff, Thanks for reply. So, probably always use response.sendRedirect with absolute url to something out of my webapp, but RequestDispatcher for moving to other sources inside my webapp? Does that sound right? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED

RE: RequestDispatcher forward versus response.sendRedirect

2002-07-24 Thread jeff . guttadauro
Hi, Jason. I believe that that is precisely the intended use of the response.sendRedirect ... when you are redirecting OFF your site (to an absolute path). The specs say that sendRedirect takes an absolute path, so it is not good to use for forwarding around within your site, where

RE: RequestDispatcher forward versus response.sendRedirect

2002-07-24 Thread Jason Stortz
302 temporarily moved error. -Original Message- From: Sullivan, Mark E [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 11:13 AM To: 'Tomcat Users List' Subject: RE: RequestDispatcher forward versus response.sendRedirect when you say response.sendRedirect doesn&#x

RE: RequestDispatcher forward versus response.sendRedirect

2002-07-24 Thread Sullivan, Mark E
when you say response.sendRedirect doesn't work, what kind of error/unexpected behavior are you getting? -Original Message- From: Jason Stortz [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 11:12 AM To: Tomcat Users List Subject: RequestDispatcher forward v

RequestDispatcher forward versus response.sendRedirect

2002-07-24 Thread Jason Stortz
Anyone have any hard and fast rules, good links, general info, do and don't lists, or anything about these two? We moved from iPlanet 4.1 where we did all redirection with response.sendRedirect. That didn't work with tomcat so I started using the forward method of RequestDispatcher.

RE: Check Session is valid & response.sendRedirect not working

2002-07-18 Thread Telesis Support - Bangalore
storing some data in the session. In each jsp, i am getting the session data and after validating, displaying the particular page, based on the data. but, when retreiving the session data, it gives null. i have used response.sendRedirect() to send the response to jsp and

RE: Check Session is valid & response.sendRedirect not working

2002-07-17 Thread Vikramjit Singh
use jsp:forward instead of response.sendRedirect(). -Original Message- From: Ashish Kulkarni [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 9:31 AM To: Tomcat Users List Subject: Check Session is valid & response.sendRedirect not working Hi, I am developing a webapplica

Check Session is valid & response.sendRedirect not working

2002-07-17 Thread Ashish Kulkarni
Hi, I am developing a webapplication with tomcat4.0.4 and apache 2.0.39, I want the user to login on first page, and then check if the session is valid or not in each jsp, and servlet. So what is the best way to do it?? i am using jsp code code as below, but seems it that response.sendRedirect

RE: response.sendRedirect not redirecting

2002-03-30 Thread Mostafa Al-Mallawani
Thanks a lot, it worked! What does return do? -Original Message- From: Brian Adams [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 17, 2002 8:05 PM To: Tomcat Users List Subject: RE: response.sendRedirect not redirecting add return; just after response.sendR. -Original Message

Re: response.sendRedirect not redirecting

2002-03-19 Thread Christopher Bare
5 times in one > page. The weird thing is, redirection works on some > pages and does > absolutely nothing on some other pages. Execution > just passes over > response.sendRedirect("../error.jsp"); like it > doesn't even exist. > Please help, this is really fru

RE: response.sendRedirect not redirecting

2002-03-17 Thread Brian Adams
add return; just after response.sendR. -Original Message- From: Mostafa Al-Mallawani [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 17, 2002 7:12 AM To: 'Tomcat Users List' Subject: response.sendRedirect not redirecting Hi, I have a problem with redirecting. In my JSP p

response.sendRedirect not redirecting

2002-03-17 Thread Mostafa Al-Mallawani
nothing on some other pages. Execution just passes over response.sendRedirect("../error.jsp"); like it doesn't even exist. Please help, this is really frustrating. Thanks. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, March 08,

Problems with session loss using Response.sendRedirect() (Tomcat 3.1) ?

2002-03-04 Thread Drew Cox
process is: 1. webapp #1 initiates a session and then supplies a few screens. 2. webapp #1 uses Response.sendRedirect() to send user to webapp #2. 3. webapp #2 initiates it's own session and supplies a bunch of screens. 4. webapp #2 invalidates it's session then uses Response.sendRedirect() to

RE: response.sendRedirect

2002-01-17 Thread Jeff Prideaux
Do you have any html tags in your jsp file before the logic you mention? Also, what jsp spec are you using? -Original Message- From: Jerry Jalenak [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 17, 2002 3:26 PM To: '[EMAIL PROTECTED]' Subject: response.sendRedirect

RE: response.sendRedirect

2002-01-17 Thread Jerry Jalenak
t' Subject: RE: response.sendRedirect have you // your session.invalidate and tried it? :) sorry it begged the question! my answer is "dunno, try commenting it out and then try it or swapping the two lines" -Original Message- From: Jerry Jalenak [mailto:[EMAIL P

RE: response.sendRedirect

2002-01-17 Thread Brian Adams
2:26 PM To: '[EMAIL PROTECTED]' Subject: response.sendRedirect I have the following code snipet in a .JSP... if (userStatus.equals ("Failed")) { session.invalidate() ; // Kill this session.

response.sendRedirect

2002-01-17 Thread Jerry Jalenak
I have the following code snipet in a .JSP... if (userStatus.equals ("Failed")) { session.invalidate() ; // Kill this session. response.sendRedirect(htmlHome) ; // Redirect the user t

RE: Tomcat and Ultradev produced pages. response.sendRedirect problem.

2001-09-19 Thread Tony Abernethy
t even reliable failure. EXAMPLE: <%@page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*"%> <% ... response.sendRedirect(response.encodeRedirectURL(MM_authFailedURL)); } %> // no return;, so code here is executed. -Origi

RE: Tomcat and Ultradev produced pages. response.sendRedirect problem.

2001-09-19 Thread Danny Angus
Actually you can alter and wildly extend the behaviour (and develop plug-in type new functionality) from that which ships with Ultradev, I suggest you look in on http://www.macromedia.com/support/dreamweaver/extend/form/ where you can sign up for a closed news group where you'll get good advice, a

  1   2   >