Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

servlet redirection and netscape

4 posts in General Discussion (old) Last posting was on 2000-02-29 20:21:23.0Z
Develop Informatica Posted on 2000-02-29 13:03:27.0Z
Newsgroups: sybase.public.easerver
From: "Develop Informatica" <suporte@develop.com.br>
Subject: servlet redirection and netscape
Date: Tue, 29 Feb 2000 10:03:27 -0300
Lines: 31
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: 200.248.92.2
Message-ID: <347_o2zueTrg$GA.295@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27537
Article PK: 158918

Hi,

I am using a servlet in Jaguar, and at the end of the servlet execution I am
issuing this code:

ServletOutputStream out = res.getOutputStream();
out.println("<HTML>");
out.println("<META
CONTENT='0;URL=http://lpa:1025/Site/grva_imgm.htm?modulo=modl_marc&pagina=in
dc_imgm&descricao=" + desc + "&localizacao=" + locl_banco + "&ano=" + year +
"&semestre=" + sem + "&grupo=" + grp + "&st_estc=" + st_e + "'
HTTP-EQUIV=REFRESH>");
out.println("</HTML>");
out.flush();


This code makes the browser redirect to the specific page, after the servlet
completes execution.

The problem is that it is working for IE4, not for Netscape. Netscape is
showing the code in the browser's window, instead of interpreting it.

Does anyone know how to avoid that, or any other idea about how to redirect
to a page after calling a servlet ?


Thanks.

Diego,


Jay Fienberg Posted on 2000-02-29 20:21:23.0Z
Newsgroups: sybase.public.easerver
Date: Tue, 29 Feb 2000 12:21:23 -0800
From: "Jay Fienberg" <jfienberg@simmedia.com>
Subject: Re: servlet redirection and netscape
X-Newsreader: Microsoft Outlook Express Macintosh Edition - 4.5 (0410)
Mime-version: 1.0
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit
Lines: 14
NNTP-Posting-Host: dsl-641378109.sfo.internetconnect.net 64.13.78.109
Message-ID: <347_c$dCCNvg$GA.295@forums.sybase.com>
References: <347_o2zueTrg$GA.295@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27470
Article PK: 154543

In article <hwJ3Pmsg$GA.202@forums.sybase.com> , "Dave Wolf [Sybase]"

<dwolf@sybase.com> wrote:

>
> You should just do
>
> response.sendRedirect(url);

That is the best way. But, if you do want to use the META tag, I would make
your HTML output more strict, as in:

<HTML>
<HEAD>
<META ... ></META>
</HEAD>
</HTML>

Some browsers get around this type of strictness, and some don't.


HTH

Jay Fienberg

______________________
Jay Fienberg
http://www.simmedia.com
______________________


Dave Wolf [Sybase] Posted on 2000-02-29 15:20:26.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: servlet redirection and netscape
Date: Tue, 29 Feb 2000 10:20:26 -0500
Lines: 47
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: 158.159.8.29
Message-ID: <347_hwJ3Pmsg$GA.202@forums.sybase.com>
References: <347_o2zueTrg$GA.295@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27513
Article PK: 158899

You should just do

response.sendRedirect(url);

Dave Wolf
Internet Applications Division

"Develop Informatica" <suporte@develop.com.br> wrote in message
news:o2zueTrg$GA.295@forums.sybase.com...
> Hi,
>
> I am using a servlet in Jaguar, and at the end of the servlet execution I
am
> issuing this code:
>
> ServletOutputStream out = res.getOutputStream();
> out.println("<HTML>");
> out.println("<META
>
CONTENT='0;URL=http://lpa:1025/Site/grva_imgm.htm?modulo=modl_marc&pagina=in
> dc_imgm&descricao=" + desc + "&localizacao=" + locl_banco + "&ano=" + year
+
> "&semestre=" + sem + "&grupo=" + grp + "&st_estc=" + st_e + "'
> HTTP-EQUIV=REFRESH>");
> out.println("</HTML>");
> out.flush();
>
>
> This code makes the browser redirect to the specific page, after the
servlet
> completes execution.
>
> The problem is that it is working for IE4, not for Netscape. Netscape is
> showing the code in the browser's window, instead of interpreting it.
>
> Does anyone know how to avoid that, or any other idea about how to
redirect
> to a page after calling a servlet ?
>
>
> Thanks.
>
> Diego,
>
>


Remus Eserblom Posted on 2000-02-29 14:25:43.0Z
Newsgroups: sybase.public.easerver
From: "Remus Eserblom" <remus_eserblom@hotmail.com>
Subject: Re: servlet redirection and netscape
Date: Tue, 29 Feb 2000 15:25:43 +0100
Lines: 48
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
NNTP-Posting-Host: ppcremus.sybase.com 158.76.135.81
Message-ID: <347_RJu#zDsg$GA.74@forums.sybase.com>
References: <347_o2zueTrg$GA.295@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27528
Article PK: 158910

This code works in both Netscape and IExplorer

<META HTTP-EQUIV="Refresh" CONTENT="0;
URL=http://myserver/intranet/frontpage/index.stm">


/Remus

"Develop Informatica" <suporte@develop.com.br> wrote in message
news:o2zueTrg$GA.295@forums.sybase.com...
> Hi,
>
> I am using a servlet in Jaguar, and at the end of the servlet execution I
am
> issuing this code:
>
> ServletOutputStream out = res.getOutputStream();
> out.println("<HTML>");
> out.println("<META
>
CONTENT='0;URL=http://lpa:1025/Site/grva_imgm.htm?modulo=modl_marc&pagina=in
> dc_imgm&descricao=" + desc + "&localizacao=" + locl_banco + "&ano=" + year
+
> "&semestre=" + sem + "&grupo=" + grp + "&st_estc=" + st_e + "'
> HTTP-EQUIV=REFRESH>");
> out.println("</HTML>");
> out.flush();
>
>
> This code makes the browser redirect to the specific page, after the
servlet
> completes execution.
>
> The problem is that it is working for IE4, not for Netscape. Netscape is
> showing the code in the browser's window, instead of interpreting it.
>
> Does anyone know how to avoid that, or any other idea about how to
redirect
> to a page after calling a servlet ?
>
>
> Thanks.
>
> Diego,
>
>