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
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
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 sharp here, but I don't think any of us
: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. We're all pretty
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 #8211; Móstoles
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. We're all
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 sharp here, but I don't think any of us are
clairvoyant. ;)
-QM
--
software -- http
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 one JSP.
And it doesn't work
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 appl
version. I'm trying a sendRedirect() in one JSP.
And it doesn'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 response.sendRedirect
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:
The code 'response.sendRedirect( http
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 that you have to
simply
pass the same 'request
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 redirect.
e.g. (the redirect
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
failing? What am I doing
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 ?
The code was not erroring like this when using Tomcat 4.1.24 or 5.0.16, do
you think this is due to Tomcat 5.0.18 being more strict with syntax
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
respective pages
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
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
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 error
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 my logs its
being
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
, 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 response.sendRedirect
occurs
it does not apply it properly. Or at least
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
Subject: RE: response.sendRedirect() finite loop?!
Hi,
On further
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
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
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
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
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.sendRedirect() command
.
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
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 there a way to redirect without loosing
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
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, September 05, 2003 7:07 PM
Subject: response.sendRedirect
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:
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), which the servlet
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
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.sendRedirect() method
Chris Egolf wrote:
With just the JK connector enabled and listening on 8009, I've added
Apache back and setup Alias elements in the Host 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
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 (from httd.conf) and make the absolute
John Turner wrote:
Chris Egolf wrote:
With just the JK connector enabled and listening on 8009, I've added
Apache back and setup Alias elements in the Host 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
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
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
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 (from httd.conf) and make the absolute
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
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
())
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
in 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
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 before redirecting
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
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 something wrong
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 something wrong, or is
there a bug, or ???
Thanks for any help
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 accomplish what
I'm describing
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
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
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
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
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
]
-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 paraphrase as its nice to present some body content
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
) == null ||
session.getAttribute(USER_AUTHORIZED).equals(false))
{
response.sendRedirect(/login/Login.jsp);
}
%
body
pI don't know why this is being called when the user is not already
authenticated /p
/body
/html
) == null ||
session.getAttribute(USER_AUTHORIZED).equals(false))
{
response.sendRedirect(/login/Login.jsp);
}
%
body
pI don't know why this is being called when the user is not already
authenticated /p
/body
/html
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
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:
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.
) == null ||
session.getAttribute(USER_AUTHORIZED).equals(false))
{
System.out.println(Before redirect);
response.sendRedirect(/login/Login.jsp);
System.out.println(After redirect);
}
%
body
pI don't know why this is being called when the user is not already
authenticated /p
/body
))
{
System.out.println(Before redirect);
response.sendRedirect(/login/Login.jsp);
System.out.println(After redirect);
}
%
body
pI don't know why this is being called when the user is not
already authenticated /p
/body
/html
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);
System.out.println(After redirect);
}
%
body
pI don't
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
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
(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
if ( POST.equalsIgnoreCase( request.getMethod() ) )
{
StringBuffer buf = new StringBuffer();
buf.append( request.getRequestURI() );
buf.append( ? );
buf.append( request.getQueryString() );
response.sendRedirect( buf.toString() );
return;
}
You need to be careful
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( request.getMethod() ) )
{
StringBuffer buf = new StringBuffer
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 trick I use after
ome 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 form submission to
// help make navigatio
= new StringBuffer();
buf.append( request.getRequestURI() );
buf.append( ? );
buf.append( request.getQueryString() );
response.sendRedirect( buf.toString() );
return;
}
I have been using this technique for quite some time
but I am not happy as all the POST data appears
e second submission avoided?
if ( POST.equalsIgnoreCase( request.getMethod() )
)
{
StringBuffer buf = new StringBuffer();
buf.append( request.getRequestURI() );
buf.append( ? );
buf.append( request.getQueryString() );
response.sendRedirect( buf.toString() );
return;
}
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() after a
POST request being against the HTTP speci
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
request.setAttribute
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
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
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
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. Well,
now
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't work, what
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
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
response.sendRedirect
07/24/02 11:29
AM
Please respond
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
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
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 webapplication
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
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 frustrating. Thanks.
I am guessing that this happens because you are
calling
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, 2002 3:45 PM
To: [EMAIL
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 page I keep
I have the following code snipet in a .JSP...
if (userStatus.equals (Failed))
{
session.invalidate() ; // Kill this
session.
response.sendRedirect(htmlHome) ; // Redirect
the user to our home
, 2002 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
List'
Subject: RE: response.sendRedirect
Poking fun
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
/Poking fun
-Original Message-
From: Jerry Jalenak [mailto:[EMAIL
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
I have
to massage to the jsp to stop this, with the original line
commented out:
response.setStatus( 301 );
response.setHeader( Location, MM_editRedirectUrl );
response.flushBuffer();
//response.sendRedirect(response.encodeRedirectURL(MM_editRedirectUrl));
However massaging
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,
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.
-Original Message-
From: Paul Downs [mailto:[EMAIL PROTECTED
When I call the response.sendRedirect() function from a Java Bean I get
a response that already has data in it, the only problem
is that the response shouldn't have any data in it already. I have a
function call before anything is written to the output buffer
that determines if this page should
1 - 100 of 135 matches
Mail list logo