• 大小: 13.73MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-07-02
  • 语言: 其他
  • 标签: 留言板  

资源简介

实现的是留言板功能(能实现附件的上传和下载,用到ckeditor编辑器),struts2 action配置,拦截器配置,下载文件配置

资源截图

代码片段和文件信息

package all_interceptor_autheninterceptor;

import java.util.Map;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.AbstractInterceptor;

public class AuthenInterceptor extends AbstractInterceptor{

@Override
public String intercept(ActionInvocation arg0) throws Exception {

// TODO Auto-generated method stub
ActionContext context=ActionContext.getContext();
Map session = context.getSession();
object user=session.get(“user“);
if( user == null)
{
return Action.LOGIN;
}
else
{
return arg0.invoke();
}
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       1093  2015-11-10 08:36  hsc_11_3_6shiyan\.classpath

     文件       1199  2015-11-04 16:39  hsc_11_3_6shiyan\.project

     文件        522  2015-11-04 16:39  hsc_11_3_6shiyan\.settings\.jsdtscope

     文件         80  2015-11-28 15:31  hsc_11_3_6shiyan\.settings\com.genuitec.eclipse.core.prefs

     文件        364  2015-11-04 16:39  hsc_11_3_6shiyan\.settings\org.eclipse.jdt.core.prefs

     文件        507  2015-11-04 16:39  hsc_11_3_6shiyan\.settings\org.eclipse.wst.common.component

     文件        414  2015-11-04 16:39  hsc_11_3_6shiyan\.settings\org.eclipse.wst.common.project.facet.core.xml

     文件         49  2015-11-04 16:39  hsc_11_3_6shiyan\.settings\org.eclipse.wst.jsdt.ui.superType.container

     文件          6  2015-11-04 16:39  hsc_11_3_6shiyan\.settings\org.eclipse.wst.jsdt.ui.superType.name

     文件      62478  2011-05-02 16:50  hsc_11_3_6shiyan\ckeditor-java-core-3.5.3\ckeditor-java-core-3.5.3\ckeditor-java-core-3.5.3-javadoc.jar

     文件      12038  2011-05-02 16:51  hsc_11_3_6shiyan\ckeditor-java-core-3.5.3\ckeditor-java-core-3.5.3\ckeditor-java-core-3.5.3-sources.jar

     文件      15187  2011-05-02 16:51  hsc_11_3_6shiyan\ckeditor-java-core-3.5.3\ckeditor-java-core-3.5.3\ckeditor-java-core-3.5.3.jar

     文件       2867  2011-05-02 19:25  hsc_11_3_6shiyan\ckeditor-java-core-3.5.3\ckeditor-java-core-3.5.3\INSTALL.html

     文件      71657  2011-05-02 17:05  hsc_11_3_6shiyan\ckeditor-java-core-3.5.3\ckeditor-java-core-3.5.3\LICENSE.html

     文件        359  2015-11-27 23:39  hsc_11_3_6shiyan\datebase

     文件        697  2015-11-24 00:17  hsc_11_3_6shiyan\src\all_interceptor_autheninterceptor\AuthenInterceptor.java

     文件       1081  2015-11-16 23:04  hsc_11_3_6shiyan\src\db_manager_package\DB_Manager.java

     文件       3755  2015-11-29 15:57  hsc_11_3_6shiyan\src\deal_message_dao\NotesDao.java

     文件       2741  2015-11-28 23:34  hsc_11_3_6shiyan\src\deal_message_dao\UserDao.java

     文件        786  2015-11-28 21:06  hsc_11_3_6shiyan\src\entity_class_package\Notes.java

     文件        500  2015-11-27 23:40  hsc_11_3_6shiyan\src\entity_class_package\User.java

     文件        297  2015-11-16 21:25  hsc_11_3_6shiyan\src\entity_dao_interface\NotesDaoInterface.java

     文件        191  2015-11-10 08:48  hsc_11_3_6shiyan\src\entity_dao_interface\UserDaoInterface.java

     文件       1107  2015-11-29 21:36  hsc_11_3_6shiyan\src\hsc_action_package\DownLoadAction.java

     文件        941  2015-11-27 22:57  hsc_11_3_6shiyan\src\hsc_action_package\LoginAction.java

     文件       5026  2015-11-29 17:30  hsc_11_3_6shiyan\src\hsc_action_package\NoteAction.java

     文件        836  2015-11-24 09:05  hsc_11_3_6shiyan\src\hsc_action_package\RegisterAction.java

     文件       2135  2015-11-29 21:38  hsc_11_3_6shiyan\src\struts.xml

     文件       3179  2015-11-28 16:08  hsc_11_3_6shiyan\WebRoot\ckeditor\adapters\jquery.js

     文件       3334  2015-11-28 16:08  hsc_11_3_6shiyan\WebRoot\ckeditor\build-config.js

............此处省略2504个文件信息

评论

共有 条评论