Blog信息 |
blog名称: 日志总数:1304 评论数量:2242 留言数量:5 访问次数:7579640 建立时间:2006年5月29日 |

| |
[WebWork]webwork配置中应该避免的一个错误(包名重复) 软件技术, 电脑与网络
lhwork 发表于 2006/6/29 14:18:15 |
1) 1.1)xwork.xml如下: <?xml version="1.0"?> <!DOCTYPE xwork PUBLIC "-//OpenSymphony Group//XWork 1.0//EN" "http://www.opensymphony.com/xwork/xwork-1.0.dtd"> <xwork> 。。。。 <include file="webwork/front/index.xml"/> <include file="webwork/front/error.xml"/ |
|
[WebWork]深入分析webwork中的文件上传机制 软件技术, 电脑与网络
lhwork 发表于 2006/6/29 14:17:46 |
点击上传按钮后,webwork的程序流如下: step 1)进入ServletDispatcher.service public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException { ........ request = wrapRequest(request); ......... |
|
[WebWork]webwok中的封装页面数据研究(上)-两种实现方式 软件技术, 电脑与网络
lhwork 发表于 2006/6/29 14:17:07 |
本文的前提是,你愿意将页面数据封装为一个对象(是否封装还得看实际情况,如果页面数据特别少也没这个必要)。
封装页面数据是否使用ModelDrivenInterceptor有时候还真与个人使用习惯有点关系
看下面的实现action1:
public class VoteAction implements Action, ModelDriven { 。。。。。 /** * 封装请求传入的信息 */ private Vote vote = new Vote(); 。。。。。 /** *   |
|
[WebWork]webwork中路径 软件技术, 电脑与网络
lhwork 发表于 2006/6/29 14:16:29 |
如果你在http://tv.mofile.cn/dnekcab/tologin.htm页面中有个到http://tv.mofile.cn/dnekcab/admin/Login.do的链接,那么这样写
<form action="/dnekcab/admin/Login.do" method="post" >
如果是到 |
|
[WebWork]webwork中文件上传实现 软件技术, 电脑与网络
lhwork 发表于 2006/6/29 14:14:17 |
step1: 页面定义如下 <form action="upload.do" enctype="multipart/form-data" method="post"> <input type="file" name="doc"/> ...................... |
|
[Java Open Source]深入分析dwr中的DWRUtil.$ 软件技术, 电脑与网络
lhwork 发表于 2006/6/29 14:10:02 |
为了更好的使用dwr的util.js,了解 $是必须的 /** * Find the element in the current HTML document with the given id or ids * @see http://getahead.ltd.uk/dwr/browser/util/$ */ var $; //如果浏览器支持document.getElementById那么进入下面的if块 //IE和firefox都是支持的 if (!$ && document.getElementById) { / |
|
[Java Open Source]一个简单的COMPASS应用 软件技术, 电脑与网络
lhwork 发表于 2006/6/29 14:07:33 |
首先你要下载Compass framework: Download Compass. 你需要在你的class path 中添加4个jarcompass-0.8.1/modules/core/compass-core-0.8.1.jar,
compass-0.8.1/modules/core/lib/commons-logging-1.0.4.jar,
compass-0.8.1/modules/core/lib/log4j-1.2.8.jar,
compass-0.8.1/modules/core/lib/lucene-core-1.9-rc1-dev.jar. 在你的项目中创建下面的目录(可以根据自己的定义来改动): log4j.properties - org - compassfr |
|
|