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
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
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
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
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
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
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
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
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.
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
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
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:
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
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
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 ?
>
>
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
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
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
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
> 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
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
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
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
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
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
.
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
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
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
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
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
>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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
())
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
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
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
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
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
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
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
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
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
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
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
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
[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
(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
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
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.
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");
R_AUTHORIZED").equals("false"))
{
System.out.println("Before redirect");
response.sendRedirect("/login/Login.jsp");
System.out.println("After redirect");
}
%>
I don&
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
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
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
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
THORIZED") == null ||
session.getAttribute("USER_AUTHORIZED").equals("false"))
{
response.sendRedirect("/login/Login.jsp");
}
%>
I don't know why this is being
THORIZED") == null ||
session.getAttribute("USER_AUTHORIZED").equals("false"))
{
response.sendRedirect("/login/Login.jsp");
}
%>
I don't know why this is being
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
> >if ( "POST".equalsIgnoreCase( request.getMethod() ) )
> >{
> >StringBuffer buf = new StringBuffer();
> >buf.append( request.getRequestURI() );
> >buf.append( "?" );
> >buf.append( request.getQueryString() );
>
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()&
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
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
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
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
> 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
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
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
tortz"
smith.com>cc:
Subject: RE: RequestDispatcher forward
versus response.sendRedirect
0
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
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
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
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
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.
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
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
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
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
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
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
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,
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
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
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
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.
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
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
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 - 100 of 140 matches
Mail list logo