🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cn.bbs.comp.lang.java
Article #23269

���ʱ����������jsp����������ʹ�Ķ���Ч��

#23269
From: �չ�΢��
Date: Sat, 09 Aug 2003 14:54
30 lines
1761 bytes
һ��JSP��ҳ����bean test.test
test.test�е�access()����ز���ֵ����һ�����У��趨Ϊfalse��
����Ϊtrue�����±���test.java��ˢ��test.jsp������if��test.access())����
��Ȼ��false��
��������������������������blazix����tomcat����ʹbean test.class�Ķ���Ч��
test.java
package test;
import java.util.*;
public class test {
        public boolean access(){
                        return false;
        }
}
test.jsp
<jsp:useBean id="test" scope="page" class='test.test'  />
<html>
<body>
<%
if(test.access()){
%>
<jsp:forward page="stop.html" />
<%
}
%>
ok
</body>
<html>

--
�� ��Դ:������δ��վ bbs.pku.edu.cn��[FROM: 61.149.58.14]
Technical Details
Message-ID: <47aabX$9uS@bbs.pku.edu.cn>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!priapus.visi.com!zeus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.media.kyoto-u.ac.jp!newsgate.cuhk.edu.hk!news.zixia.net!news.happynet.org!PKU

Show Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB
X-Google-Thread: f6cb0,a1d630e58ee30ab2,start
X-Google-Attributes: gidf6cb0,public
X-Google-ArrivalTime: 2003-08-09 07:55:34 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!priapus.visi.com!zeus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.media.kyoto-u.ac.jp!newsgate.cuhk.edu.hk!news.zixia.net!news.happynet.org!PKU
From: samba@bbs.pku.edu.cn (�չ�΢��)
Newsgroups: cn.bbs.comp.lang.java
Subject: ���ʱ����������jsp����������ʹ�Ķ���Ч�� 
Date: 09 Aug 2003 14:54:17 GMT
Organization: ����δ��վ
Message-ID: <47aabX$9uS@bbs.pku.edu.cn>
Mime-Version: 1.0
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit
X-Filename: Java/M.1060440849.A
Lines: 30