喜悦国际村 » JAVA/C/C++ » 如何中断jsp程序的运行?

页: [1]
hero2004-11-28 07:10 AM
如何中断jsp程序的运行?

比如说有如下一段程序:
String DomainName=request.getParameter("DomainName");
        if(ns1.equals("")) ns1="dns001.yeahi.net";
        if(ns1.equals("")) ns2="dns002.yeahi.net";
        Command cmd = null;
        EppResponse rsp = null;
        Response myrsp=null;
        cmd = new Command();
        mysqlConnection = new mysqlConnect();
                mysqlCommand = mysqlConnection.Connect("localhost","yeahi_agent","yeahi_agent2003","yeahi_agent");
如何在cmd = new Command();这一行中断程序的运行,也就是下面的程序不再运行到了,就好比PHP中的exit功能一样呀!
请问是哪一种语句能达到这种功能!

雨伞2004-11-28 08:15 AM
return或者out.close()


查看完整版本: 如何中断jsp程序的运行?


Powered by Discuz! Archiver 6.1.0  © 2001-2006 Comsenz Inc.
Processed in 0.005786 second(s), 2 queries