Article View: cn.bbs.comp.lang.java
Article #22381����һ��JSP������
From: Samoon
Date: Fri, 26 Sep 2003 05:52
Date: Fri, 26 Sep 2003 05:52
19 lines
1466 bytes
1466 bytes
example2:
����< html>
����< %
����double freeMem = Runtime.getRuntime().freeMemory();
����double totlMem = Runtime.getRuntime().totalMemory();
����double percent = freeMem/totlMem;
���� if (percent < 0.5) {
����%>
����< jsp:forward page="/jsp/forward/one.jsp"/>
����< % } else { %>
����< jsp:forward page="two.html"/>
����< % } %>
����< /html>
�������ϣ����ʵ��ǣ�Ϊʲô��>����{ �ĺ������}�ĺ��棿�ⲻ���ƻ�����������
���������ʵ���Dz�����
--
[m
[m[1;37m�� ��Դ:���㽭��ѧ���ɰٴ�վ http://bbs.zju.edu.cn [FROM: Samoon][m
Technical Details
Message-ID:
<48PkXB$AaJ@bbs.zju.edu.cn>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.happynet.org!ZJUBBSShow Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB X-Google-Thread: f6cb0,990a34a111d9c4f,start X-Google-Attributes: gidf6cb0,public X-Google-ArrivalTime: 2003-09-25 23:00:02 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!38.144.126.76.MISMATCH!feed2.newsreader.com!newsreader.com!maily.cic.tsinghua.edu.cn!news.happynet.org!ZJUBBS From: Samoon.bbs@bbs.zju.edu.cn (Samoon) Newsgroups: cn.bbs.comp.lang.java Subject: ����һ��JSP������ Date: 26 Sep 2003 05:52:59 GMT Organization: �㽭��ѧ���ɰٴ� Message-ID: <48PkXB$AaJ@bbs.zju.edu.cn> X-Filename: Java/M.1064555579.A Lines: 19