Object collection = TagUtils.getInstance().lookup(pageContext, name, property, scope);
說明:
1、如果property的值為null,那么
在scope定義的范圍內(nèi)(即request、session、application、page)查找以name變量值命名的對(duì)象(返回值是一個(gè)Object,然后轉(zhuǎn)化成Collection)
2、如果property的值不為null,那么
做完1步驟的事情后,她將調(diào)用org.apache.commons.beanutils.PropertyUtils類中的getProperty方法,得到目標(biāo)對(duì)象,轉(zhuǎn)化成Collection類型
4. 錯(cuò)誤描述: Eclipse 不能自動(dòng)編譯,即使已經(jīng)在Project menu選擇了自動(dòng)構(gòu)建選項(xiàng)。
錯(cuò)誤信息: 不能編譯,生成java class文件
錯(cuò)誤原因: 項(xiàng)目屬性里面的java構(gòu)建路徑里面缺少構(gòu)建需要的類包,或者錯(cuò)誤引用不存在的類包
錯(cuò)誤解決: 項(xiàng)目屬性里面的java構(gòu)建路徑里面添加必要的類包。
3. 錯(cuò)誤描述:
錯(cuò)誤信息: java.lang.NoSuchMethodError: org.apache.commons.pool.impl.GenericObjectPool: method <init>()V not found
錯(cuò)誤原因: commons-pool-1.2.jar,commons-dbcp-1.2.1.jar,commons-collections.jar版本問題
錯(cuò)誤解決: commons-pool-1.2.jar,commons-dbcp-1.2.1.jar,commons-collections.jar放置,就解決。
2. 錯(cuò)誤描述:當(dāng)用Eclipse的Lomboz J2EE Project 創(chuàng)建web應(yīng)用, web server選的是weblogic8.1, 自動(dòng)生成的weblogic.xml 的參考DTD <!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 6.1//EN" " 當(dāng)在weblogic.xml添加
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes> //要weblogic 先加載 WEB-INF下面的jar包, 避免類包沖突.
</container-descriptor>
產(chǎn)生警告:
錯(cuò)誤信息: Deployment descriptor "weblogic.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: Element type "prefer-web-inf-classes" must be declared.
Deployment descriptor "weblogic.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: The content of element type "container-descriptor" must match "(check-auth-on-forward?,redirect-content-type?,redirect-content?,redirect-with-absolute-url?)". (line 5, column 26).>
錯(cuò)誤原因: weblogic.xml的DTD版本是6.1,版本太老
錯(cuò)誤解決: <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 7.0//EN" "
1. 錯(cuò)誤描述:把a(bǔ)xis-bin-1_2_1.zip解壓后的webapps目錄下面的axis目錄copy到{TOMCAT_HOME}\webapps\axis. Tomcat啟動(dòng)之后,點(diǎn)擊 http://127.0.0.1:8080/axis/happyaxis.jsp, 有下面錯(cuò)誤
錯(cuò)誤信息: Error: could not find class javax.activation.DataHandler from file activation.jar Axis will not work. 。
控制臺(tái)顯示下面錯(cuò)誤:
-Unable to find required classes (javax.activation.DataHandler and
錯(cuò)誤信息: 不能編譯,生成java class文件
錯(cuò)誤原因: 項(xiàng)目屬性里面的java構(gòu)建路徑里面缺少構(gòu)建需要的類包,或者錯(cuò)誤引用不存在的類包
錯(cuò)誤解決: 項(xiàng)目屬性里面的java構(gòu)建路徑里面添加必要的類包。
3. 錯(cuò)誤描述:
錯(cuò)誤信息: java.lang.NoSuchMethodError: org.apache.commons.pool.impl.GenericObjectPool: method <init>()V not found
錯(cuò)誤原因: commons-pool-1.2.jar,commons-dbcp-1.2.1.jar,commons-collections.jar版本問題
錯(cuò)誤解決: commons-pool-1.2.jar,commons-dbcp-1.2.1.jar,commons-collections.jar放置,就解決。
2. 錯(cuò)誤描述:當(dāng)用Eclipse的Lomboz J2EE Project 創(chuàng)建web應(yīng)用, web server選的是weblogic8.1, 自動(dòng)生成的weblogic.xml 的參考DTD <!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 6.1//EN" " 當(dāng)在weblogic.xml添加
<container-descriptor>
<prefer-web-inf-classes>true</prefer-web-inf-classes> //要weblogic 先加載 WEB-INF下面的jar包, 避免類包沖突.
</container-descriptor>
產(chǎn)生警告:
錯(cuò)誤信息: Deployment descriptor "weblogic.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: Element type "prefer-web-inf-classes" must be declared.
Deployment descriptor "weblogic.xml" is malformed. Check against the DTD: org.xml.sax.SAXParseException: The content of element type "container-descriptor" must match "(check-auth-on-forward?,redirect-content-type?,redirect-content?,redirect-with-absolute-url?)". (line 5, column 26).>
錯(cuò)誤原因: weblogic.xml的DTD版本是6.1,版本太老
錯(cuò)誤解決: <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-web-app PUBLIC "-//BEA Systems, Inc.//DTD Web Application 7.0//EN" "
1. 錯(cuò)誤描述:把a(bǔ)xis-bin-1_2_1.zip解壓后的webapps目錄下面的axis目錄copy到{TOMCAT_HOME}\webapps\axis. Tomcat啟動(dòng)之后,點(diǎn)擊 http://127.0.0.1:8080/axis/happyaxis.jsp, 有下面錯(cuò)誤
錯(cuò)誤信息: Error: could not find class javax.activation.DataHandler from file activation.jar Axis will not work. 。
控制臺(tái)顯示下面錯(cuò)誤:
-Unable to find required classes (javax.activation.DataHandler and
javax.mail.internet.MimeMultipart). Attachment support is disabled.
錯(cuò)誤原因: 缺少 activation.jar ,mail.jar,
錯(cuò)誤解決: 把這幾個(gè)類包放到{TOMCAT_HOME}\webapps\axis\WEB-INF\lib下面。
錯(cuò)誤原因: 缺少 activation.jar ,mail.jar,
錯(cuò)誤解決: 把這幾個(gè)類包放到{TOMCAT_HOME}\webapps\axis\WEB-INF\lib下面。
function ischinanese(s){
var ret=true;
for(var i=0;i<s.length;i++){
ret=ret && (s.charCodeAt(i)>=10000);
}
return ret;
}
var ret=true;
for(var i=0;i<s.length;i++){
ret=ret && (s.charCodeAt(i)>=10000);
}
return ret;
}
MDX介紹:http://www.588188.com/netbook/sqlserver2000/olapdmad/agmdxbasics_04qg.htm
商務(wù)智能: http://www.microsoft.com/china/sql/techinfo/BI/analysis.asp
SOAP Webservice: http://www-128.ibm.com/developerworks/cn/webservices/index.html
http://bjzhanghao.cnblogs.com/archive/2004/08/05/30402.html
http://dev2dev.bea.com.cn/techdoc/200409245.html
http://bbs.w3china.org/list.asp?boardid=10&page=2&action=
Web Service的概念及其實(shí)現(xiàn):http://www.javaresearch.org/article/showarticle.jsp?column=5&thread=24281
Axis 主頁(yè):http://ws.apache.org/axis/
安裝Axis和Tomcat : http://www.javaresearch.org/forum/thread.jsp?column=21&thread=12174
Axis on Weblogic Error: http://forum.java.sun.com/thread.jspa?threadID=552949&messageID=2903848
一個(gè)簡(jiǎn)單的WSDL文檔 : http://bjzhanghao.cnblogs.com/archive/2004/10/13/51614.html
用Axis 1.1 for Java進(jìn)行Web Services開發(fā)(1):http://www.javaresearch.org/article/showarticle.jsp?column=5&thread=14047
AXIS學(xué)習(xí)筆記 一 至 五
客戶端調(diào)用 靜態(tài) 動(dòng)態(tài)
Webservice傳輸自定義類的例程
handler 的使用
商務(wù)智能: http://www.microsoft.com/china/sql/techinfo/BI/analysis.asp
SOAP Webservice: http://www-128.ibm.com/developerworks/cn/webservices/index.html
http://bjzhanghao.cnblogs.com/archive/2004/08/05/30402.html
http://dev2dev.bea.com.cn/techdoc/200409245.html
http://bbs.w3china.org/list.asp?boardid=10&page=2&action=
Web Service的概念及其實(shí)現(xiàn):http://www.javaresearch.org/article/showarticle.jsp?column=5&thread=24281
Axis 主頁(yè):http://ws.apache.org/axis/
安裝Axis和Tomcat : http://www.javaresearch.org/forum/thread.jsp?column=21&thread=12174
Axis on Weblogic Error: http://forum.java.sun.com/thread.jspa?threadID=552949&messageID=2903848
一個(gè)簡(jiǎn)單的WSDL文檔 : http://bjzhanghao.cnblogs.com/archive/2004/10/13/51614.html
用Axis 1.1 for Java進(jìn)行Web Services開發(fā)(1):http://www.javaresearch.org/article/showarticle.jsp?column=5&thread=14047
AXIS學(xué)習(xí)筆記 一 至 五
客戶端調(diào)用 靜態(tài) 動(dòng)態(tài)
Webservice傳輸自定義類的例程
handler 的使用
XML/A: XML for Analysis is a set of XML Message Interfaces that use the industry standard Simple Object Access Protocol (SOAP) to define the data access interaction between a client application and an analytical data provider (OLAP and data mining) working over the Internet.
1.下載:mondrian-2.0.0.zip ,解壓至E:\workspace\Mondrian
2. 把lib\mondrian.war解壓到 {TOMCAT_HOME}\webapps\mondrain
3. Mondrian demo中數(shù)據(jù)庫(kù)FoodMart默認(rèn)的是access, 要移植到mysql中,用demo\FoodMartCreateData.sql,
在命令行窗口中輸入如下腳本:
java -cp "lib\mondrian.jar;lib\log4j-1.2.9.jar;lib\eigenbase-xom.jar;lib\eigenbase-resgen.jar;lib\eigenbase-properties.jar;lib\mysql-connector-java-3.1.7-bin.jar" mondrian.test.loader.MondrianFoodMartLoader -tables -data -indexes -jdbcDrivers="com.mysql.jdbc.Driver" -inputFile=demo\FoodMartCreateData.sql -outputJdbcURL="jdbc:mysql://localhost/foodmart?user=root&password="
注意:當(dāng)前路徑是E:\workspace\Mondrian. 運(yùn)行需要的部分類包在mondrian-2.0.0-src.zip的lib目錄中,需要加入mysql jdbc 驅(qū)動(dòng). log4j-1.2.9.jar里面如果加入log4j.properties文件,可以查看運(yùn)行時(shí)候的打印信息,否則看不到打印信息。
4. 在{TOMCAT_HOME}\webapps\mondrain目錄,
打開mondrian.properties, 添加下面屬性mondrian.jdbcDrivers=com.mysql.jdbc.Driver
打開WEB-INF\web.xml, 修改2處connectString屬性, Jdbc=jdbc:mysql://localhost/foodmart?user=root&password=;JdbcDrivers=com.mysql.jdbc.Driver;
編輯WEB-INF\queries下面的
2. 把lib\mondrian.war解壓到 {TOMCAT_HOME}\webapps\mondrain
3. Mondrian demo中數(shù)據(jù)庫(kù)FoodMart默認(rèn)的是access, 要移植到mysql中,用demo\FoodMartCreateData.sql,
在命令行窗口中輸入如下腳本:
java -cp "lib\mondrian.jar;lib\log4j-1.2.9.jar;lib\eigenbase-xom.jar;lib\eigenbase-resgen.jar;lib\eigenbase-properties.jar;lib\mysql-connector-java-3.1.7-bin.jar" mondrian.test.loader.MondrianFoodMartLoader -tables -data -indexes -jdbcDrivers="com.mysql.jdbc.Driver" -inputFile=demo\FoodMartCreateData.sql -outputJdbcURL="jdbc:mysql://localhost/foodmart?user=root&password="
注意:當(dāng)前路徑是E:\workspace\Mondrian. 運(yùn)行需要的部分類包在mondrian-2.0.0-src.zip的lib目錄中,需要加入mysql jdbc 驅(qū)動(dòng). log4j-1.2.9.jar里面如果加入log4j.properties文件,可以查看運(yùn)行時(shí)候的打印信息,否則看不到打印信息。
4. 在{TOMCAT_HOME}\webapps\mondrain目錄,
打開mondrian.properties, 添加下面屬性mondrian.jdbcDrivers=com.mysql.jdbc.Driver
打開WEB-INF\web.xml, 修改2處connectString屬性, Jdbc=jdbc:mysql://localhost/foodmart?user=root&password=;JdbcDrivers=com.mysql.jdbc.Driver;
編輯WEB-INF\queries下面的
fourheir
, mondrian
, colors
and arrows 4個(gè)jsp文件.
<jp:mondrianQuery id="query01" jdbcDriver="com.mysql.jdbc.Driver" jdbcUrl="jdbc:mysql://localhost/foodmart?user=root&password=" catalogUri="/WEB-INF/queries/FoodMart.xml">