• 大小: 1.88MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-30
  • 语言: Java
  • 标签: java  jsp  论坛  源码  

资源简介

SSH实现的论坛系统,部署后马上可以用的实用论坛系统

资源截图

代码片段和文件信息

package action;

import com.opensymphony.xwork2.*;

import java.util.*;

import javax.servlet.ServletContext;
import javax.servlet.http.*;
import common.*;
import service.*;

public class baseAction extends ActionSupport implements
org.apache.struts2.interceptor.ServletRequestAware
org.apache.struts2.interceptor.ServletResponseAwareorg.apache.struts2.util.ServletContextAware
{

protected ServiceManager serviceManager;
protected UserInfo userInfo;
protected String result;
protected Map cookies;
protected javax.servlet.http.HttpServletResponse response;
protected javax.servlet.http.HttpServletRequest request;
protected ServletContext servletContext;



public void setServletResponse(HttpServletResponse response)
{
this.response = response;

}
public void setServletContext(ServletContext servletContext)
{
this.servletContext = servletContext;
}

protected String getCookieValue(String name)
{
javax.servlet.http.Cookie cookies[] = request.getCookies();
if (cookies != null)
{
for (Cookie cookie : cookies)
{

if (!cookie.getName().equals(name))
continue;
return cookie.getValue();
}

}
return null;
}

public void setServletRequest(HttpServletRequest request)
{
this.request = request;

userInfo.setCookieUser(getCookieValue(“user“));
}

/**
 * result属性的getter方法
 */
public String getResult()
{
return result;
}

/**
 * result属性的setter方法
 */
public void setResult(String result)
{
this.result = result;

}

public void setServiceManager(ServiceManager serviceManager)
{
this.serviceManager = serviceManager;
}

/**
 * userInfo属性的setter方法
 */
public void setUserInfo(UserInfo userInfo)
{
this.userInfo = userInfo;

}

protected void saveCookie(String name String value int maxAge)
{
javax.servlet.http.Cookie cookie = new javax.servlet.http.Cookie(name
value);
cookie.setMaxAge(maxAge);
response.addCookie(cookie);
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2010-09-08 15:23  论坛系统(Struts 2+Hibernate+Spring实现)\
     文件        1919  2008-10-11 15:01  论坛系统(Struts 2+Hibernate+Spring实现)\.classpath
     目录           0  2011-09-07 13:03  论坛系统(Struts 2+Hibernate+Spring实现)\.myeclipse\
     文件         482  2008-10-09 14:50  论坛系统(Struts 2+Hibernate+Spring实现)\.myhibernatedata
     文件         288  2008-10-10 16:57  论坛系统(Struts 2+Hibernate+Spring实现)\.mymetadata
     文件        1633  2008-10-09 14:57  论坛系统(Struts 2+Hibernate+Spring实现)\.project
     文件         420  2008-10-09 15:00  论坛系统(Struts 2+Hibernate+Spring实现)\.springBeans
     目录           0  2010-09-08 15:23  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\
     目录           0  2010-09-08 15:23  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\
     文件        1262  2008-03-19 18:46  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\_documentation.html
     文件        1359  2008-03-19 18:46  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\_upgrade.html
     文件       19809  2008-04-07 17:02  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\_whatsnew.html
     文件      262767  2008-02-19 14:24  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\_whatsnew_history.html
     目录           0  2010-09-08 15:23  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\editor\
     目录           0  2010-09-08 15:23  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\editor\_source\
     目录           0  2010-09-08 15:23  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\editor\_source\classes\
     文件        6012  2008-02-25 17:43  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\editor\_source\classes\fckcontextmenu.js
     文件        4116  2008-02-19 14:24  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\editor\_source\classes\fckdataprocessor.js
     文件        1424  2008-02-19 14:24  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\editor\_source\classes\fckdocumentfragment_gecko.js
     文件        1730  2008-02-19 14:24  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\editor\_source\classes\fckdocumentfragment_ie.js
     文件       27359  2008-03-26 08:42  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\editor\_source\classes\fckdomrange.js
     文件        3238  2008-02-19 14:24  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\editor\_source\classes\fckdomrange_gecko.js
     文件        6158  2008-03-20 12:52  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\editor\_source\classes\fckdomrange_ie.js
     文件       10152  2008-02-19 14:24  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\editor\_source\classes\fckdomrangeiterator.js
     文件       11596  2008-03-25 11:04  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\editor\_source\classes\fckeditingarea.js
     文件        2252  2008-02-21 19:33  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\editor\_source\classes\fckelementpath.js
     文件       19810  2008-03-19 13:37  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\editor\_source\classes\fckenterkey.js
     文件        1924  2008-02-19 14:24  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\editor\_source\classes\fckevents.js
     文件        3511  2008-02-19 14:24  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\editor\_source\classes\fckhtmliterator.js
     文件        3046  2008-07-11 12:55  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\editor\_source\classes\fckicon.js
     文件        1991  2008-02-19 14:24  论坛系统(Struts 2+Hibernate+Spring实现)\WebRoot\FCKeditor\editor\_source\classes\fckiecleanup.js
............此处省略677个文件信息

评论

共有 条评论