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.

How to close the html / JSP page with come command wring in site the page

2 posts in Java J2EE specific Last posting was on 2007-08-01 02:26:31.0Z
Jenny Posted on 2007-07-31 16:22:15.0Z
Reply-To: "Jenny" <cs121@hotmail.com>
From: "Jenny" <cs121@hotmail.com>
Newsgroups: sybase.public.easerver.j2ee
Subject: How to close the html / JSP page with come command wring in site the page
Lines: 13
Organization: CA
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
NNTP-Posting-Host: surfwc054.sybase.com
X-Original-NNTP-Posting-Host: surfwc054.sybase.com
Message-ID: <46af61b7@forums-1-dub>
Date: 31 Jul 2007 09:22:15 -0700
X-Trace: forums-1-dub 1185898935 192.138.150.54 (31 Jul 2007 09:22:15 -0700)
X-Original-Trace: 31 Jul 2007 09:22:15 -0700, surfwc054.sybase.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.easerver.j2ee:7814
Article PK: 208244

I want to close the my html / jsp page after doing some activity at then end
it will close automatically



Can you tell me common , how to do this ?

Any example


Adam Simmonds [TeamSybase] Posted on 2007-08-01 02:26:31.0Z
From: "Adam Simmonds [TeamSybase]" <adam.simmonds@remove.exemail.com.au>
User-Agent: Thunderbird 1.5.0.8 (Windows/20061025)
MIME-Version: 1.0
Newsgroups: sybase.public.easerver.j2ee
Subject: Re: How to close the html / JSP page with come command wring in site the page
References: <46af61b7@forums-1-dub>
In-Reply-To: <46af61b7@forums-1-dub>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: nat-1221.mp.usyd.edu.au
X-Original-NNTP-Posting-Host: nat-1221.mp.usyd.edu.au
Message-ID: <46afef57$1@forums-1-dub>
Date: 31 Jul 2007 19:26:31 -0700
X-Trace: forums-1-dub 1185935191 129.78.56.197 (31 Jul 2007 19:26:31 -0700)
X-Original-Trace: 31 Jul 2007 19:26:31 -0700, nat-1221.mp.usyd.edu.au
Lines: 44
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.easerver.j2ee:7816
Article PK: 208246

What is the activity?
You can close a browser window with javascript however if its the main
window that the user opened and not a window you have scripted then the
user will always get a prompt to close the window.

If you were calling a jag component and then wanted to close the window
you could do something like

<%
>> create and call jag component

if return ok
out.writeln ( "<script type='javascript'>window.close();</script>" );
else
out.writeln ( "ERROR" );
%>


If you wanted to just have a button on the window then this would do the
trick.

<form>
<input type=button value="Close" onClick="javascript:window.close();">
</form>

If you dont want the warning on each window close then what you should
do is open a popup browser window which calls your jag component and
then closes.

a.

Jenny wrote:
> I want to close the my html / jsp page after doing some activity at then end
> it will close automatically
>
>
>
> Can you tell me common , how to do this ?
>
> Any example
>
>
>