资源简介
struts in action 源代码
由于上传限由于上传限制这个是一部分,请完整下载。制这个是一部分,请完整下载。
代码片段和文件信息
package org.apache.artimus;
import java.io.IOException;
import java.util.ArrayList;
import org.apache.commons.scaffold.lang.ParameterException;
import org.apache.commons.scaffold.lang.Tokens;
import org.apache.commons.scaffold.util.ProcessBean;
import org.apache.commons.scaffold.util.ProcessBeanbase;
import org.apache.commons.scaffold.util.ProcessResult;
import org.apache.commons.scaffold.util.ProcessResultbase;
import org.apache.artimus.article.Bean;
import org.apache.lucene.index.IndexWriter;
import org.apache.commons.scaffold.lucene.SearchUtils;
import org.apache.commons.scaffold.lucene.Engine;
/**
* Create tables indexes and any other resources
* needed by the Artimus application.
*
* @author Ted Husted
* @version $Revision: 1.2 $ $Date: 2002/08/23 14:23:05 $
*/
public class CreateResources extends ProcessBeanbase {
// ----------------------------------------------------- Public Methods
/**
* Obtain article
property from the parameters object.
* Update indicated record in data storage.
* Return confirmation message in a ProcessResult object.
*
* @param parameters The map or other object to use with this
* operation
* @result ProcessResult with any confirmaton or error message.
*/
public object execute(object parameters) throws Exception {
org.apache.artimus.keys.Access.createTable();
org.apache.artimus.article.Access.createResources();
ArrayList list = null;
Bean article = null;
IndexWriter writer = null;
try {
// Create an indexWriter and start a fresh index
writer = Engine.getIndexWriter(true);
// Retrieve collection of items in database.
// For larger collections the results may have to
// batched in segments to converse memory.
list = (ArrayList)
org.apache.artimus.article.Access.findAll(new Bean());
// Run through list create a document for each article
// and add it to the index.
for (int i=0; i article = (Bean) list.get(i);
// Add document to index
org.apache.artimus.article.Access.index(
article.getArticle()article.getContributed()article.getContributor()
article.getCreator()article.gettitle()article.getContent()writer);
}
// Optimize and ...
writer.optimize();
}
// close the writer
finally {
try {
if (writer!=null) writer.close();
}
catch (IOException e) {
// do nothing
}
}
// return outcome
ProcessResult result = new ProcessResultbase(this);
result.addMessage(“process.complete“);
return result;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 2337 2002-09-12 11:52 struts in action_src\artimus_1_0\article\assets\st
..AD... 0 2002-09-12 11:52 struts in action_src\artimus_1_0\article\assets\st
..AD... 0 2002-09-12 11:52 struts in action_src\artimus_1_0\article\assets
文件 579 2002-09-12 11:52 struts in action_src\artimus_1_0\article\common\header.jsp
文件 641 2002-09-12 11:52 struts in action_src\artimus_1_0\article\common\headerForm.jsp
文件 1177 2002-09-12 11:52 struts in action_src\artimus_1_0\article\common\layouts\Article.jsp
..AD... 0 2002-09-12 11:52 struts in action_src\artimus_1_0\article\common\layouts
文件 708 2002-09-12 11:52 struts in action_src\artimus_1_0\article\common\message.jsp
文件 893 2002-09-12 11:52 struts in action_src\artimus_1_0\article\common\message_tags.jsp
文件 406 2002-09-12 11:52 struts in action_src\artimus_1_0\article\common\navbar.jsp
文件 458 2002-09-12 11:52 struts in action_src\artimus_1_0\article\common\navbarMenu.jsp
..AD... 0 2002-09-12 11:52 struts in action_src\artimus_1_0\article\common
文件 2598 2002-09-12 11:52 struts in action_src\artimus_1_0\article\content\form.jsp
文件 2102 2002-09-12 11:52 struts in action_src\artimus_1_0\article\content\mapped\article\form.jsp
文件 2326 2002-09-12 11:52 struts in action_src\artimus_1_0\article\content\mapped\article\menu.jsp
文件 1425 2002-09-12 11:52 struts in action_src\artimus_1_0\article\content\mapped\article\result.jsp
文件 1677 2002-09-12 11:52 struts in action_src\artimus_1_0\article\content\mapped\article\view.jsp
..AD... 0 2002-09-12 11:52 struts in action_src\artimus_1_0\article\content\mapped\article
..AD... 0 2002-09-12 11:52 struts in action_src\artimus_1_0\article\content\mapped
文件 2551 2002-09-12 11:52 struts in action_src\artimus_1_0\article\content\menu.jsp
文件 1425 2002-09-12 11:52 struts in action_src\artimus_1_0\article\content\result.jsp
文件 1677 2002-09-12 11:52 struts in action_src\artimus_1_0\article\content\view.jsp
..AD... 0 2002-09-12 11:52 struts in action_src\artimus_1_0\article\content
..AD... 0 2002-09-12 11:52 struts in action_src\artimus_1_0\article
文件 1442 2002-08-14 18:14 struts in action_src\artimus_1_0\channel\Channels.jsp
文件 3883 2002-08-14 18:14 struts in action_src\artimus_1_0\channel\RssHtml.jsp
文件 492 2002-08-14 18:14 struts in action_src\artimus_1_0\channel\Rssxm
文件 1405 2002-08-14 18:14 struts in action_src\artimus_1_0\channel\Summary.jsp
..AD... 0 2002-08-14 18:14 struts in action_src\artimus_1_0\channel
文件 376 2002-08-14 17:11 struts in action_src\artimus_1_0\index.jsp
............此处省略433个文件信息
相关资源
- Digital Signal Processing Solution Manual
- Intel汇编语言程序设计第7版
- Computational Geometry in C-Second Edition
- 经典书籍:An Introduction to the Theory o
- 400 G1 DM nvmeBoot CPUall.bin
- spring boot + mybatis + maven 自动生成Mapp
- TRS server Admin 全文检索数据库客户端
-
STM8 ST-li
nk驱动 - ReportMachine for Delphi XE10.2
- 虚拟扫描仪 TWAIN 64位版本
- Spring MVC的简单项目
- Intouch modbus驱动DASMBTCP1.1
- frp_0.31.1_linux_amd64.tar.gz
- learning virtual reality
- 基于切面的日志记录SSMdemo
- Lab Windows_CVI逐步深入与开发书pdf文档
- microsoft-windows-netfx3-ondemand-package.cab
- 虚拟串口软件Virtual Serial Port Driver最新
- epm磁盘分割工具,Windows系统下运行
- Linux实验报告33701
- Windows内核和驱动进程保护
- Network Processors Architecture Programming an
- win10苹果鼠标驱动
- AngularJS+SpringMVC小项目
- Nonlinear Time Series Nonparametric and Parame
- Algorithms for Visual Design Using the Process
- win7/win8下 双鼠标模拟多点触控
- 叉叉集成开发环境 V2.0.1.3 windows版本
- SpringBoot实战pdf超清完整版
- springSecurity
评论
共有 条评论