tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Schulz <Sch...@Devcon-Mail.de>
Subject AW: response.sendRedirect bug or feature
Date Thu, 07 Dec 2000 08:35:37 GMT
Hi !

Just try:
>---------------------------------------------------------------------

...
if (a > b)
{
	response.sendRedirect(url1);
	return;
}
...
response.sendRedirect(url2);

>---------------------------------------------------------------------

Bye bye

	C.S.

-----Urspr√ľngliche Nachricht-----
Von: Zsolt Koppany [mailto:zk@intland.com]
Gesendet: Donnerstag, 7. Dezember 2000 09:30
An: tomcat-user@jakarta.apache.org
Betreff: response.sendRedirect bug or feature


Hi,

I think it might have been changed since tomcat-3.2-beta-6 but now when
I execute a  response.sendRedirect(..) the rest of the jsp file is still
executed. How can I prevent that?

My example:

....
if (a > b)
{
    response.sendRedirect(url1);
   // Here I don't want to proceed this jsp file because url1 creates a
complete page on its own.
}

// Let's do somthing else!
...
response.sendRedirect(url2);


Zsolt
-- 
Zsolt Koppany
Intland GmbH www.intland.com
Schulze-Delitzsch-Strasse 16
D-70565 Stuttgart
Tel: +49-711-7871080 Fax: +49-711-7871017

Mime
View raw message