in my case
I use code like this
<%
try
{
Initialcontext ic = new Initia ...// find ejb ref
}catch(Excetpion e)
{
//jump out html code below ,or it will show exception msg on page
}
%>
//below are html code
....
<a> <%=ejb.getsth%>
..
and I should jump out the html code if ejb ref is null(exception occured)
Hi friend,
My first question about this post is....
I need to get some clarity.....
i belive we are writing a server side application using JSP/SERVELET not a standalone client side application.
As per the earlier post if we use System.exit that will certainly stop the webserver.
Accronding to his description.
The thing shud be done at the client side.
For which the web browser shud be closed automatically.
No this may not be possible by using JSP direclty,unless and until someone can take someother means of doing this..
Like java script,May be loading a JAVA applet with full client permission accordingly and other stuff's....
This wat we can think of at this point.....
Regards,
RAHUL