資源簡(jiǎn)介
java web開(kāi)發(fā)技術(shù)大全源代碼,回饋論壇,感覺(jué)這本書很不錯(cuò),大家可以一起學(xué)習(xí)
代碼片段和文件信息
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);
}
}
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2016-01-19?14:00??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\
?????文件????????2363??2009-03-03?15:07??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\Readme.txt
?????文件?????????266??2008-11-24?19:36??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\install.txt
?????目錄???????????0??2016-01-19?14:00??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\
?????文件???????55932??2007-06-14?09:18??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\activation.jar
?????文件?????1289806??2006-12-13?07:15??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\ant.jar
?????文件??????121757??2007-03-25?14:51??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\commons-dbcp-1.2.2.jar
?????文件???????57779??2008-01-18?22:35??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\commons-fileupload-1.2.1.jar
?????文件??????109043??2008-01-17?03:14??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\commons-io-1.4.jar
?????文件???????38015??2008-04-09?20:47??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\commons-logging-1.0.4.jar
?????文件???????62103??2006-04-02?20:55??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\commons-pool-1.3.jar
?????文件??????185929??2008-09-16?09:22??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\dwr.jar
?????文件???????52847??2008-03-14?16:45??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\ejb3-persistence.jar
?????文件??????802494??2008-04-09?20:49??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\freemarker-2.3.8.jar
?????文件??????280196??2008-03-14?16:44??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\hibernate-annotations.jar
?????文件???????66426??2008-03-14?16:45??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\hibernate-commons-annotations.jar
?????文件?????2274768??2008-02-06?21:31??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\hibernate3.jar
?????文件???????43681??2008-09-23?09:28??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\jsonplugin-0.30.jar
?????文件??????356519??2007-06-14?09:18??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\mail.jar
?????文件??????536609??2007-07-18?20:26??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\mysql-connector-java-5.0.7-bin.jar
?????文件??????168081??2008-02-02?19:22??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\ognl-2.6.11.jar
?????文件?????2912122??2008-04-06?22:49??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\spring.jar
?????文件?????2323066??2008-09-08?21:22??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\struts2-core-2.0.11.2.jar
?????文件?????1729824??2008-05-01?23:44??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\struts2-dojo-plugin-2.1.2.jar
?????文件??????457579??2008-06-15?12:51??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\lib\xwork-2.0.5.jar
?????目錄???????????0??2009-12-24?10:08??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\myeclipse\
?????目錄???????????0??2009-12-24?10:08??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\myeclipse\Catalina\
?????目錄???????????0??2016-01-19?14:00??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\myeclipse\Catalina\localhost\
?????文件?????????475??2008-10-02?20:53??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\myeclipse\Catalina\localhost\netdisk.xm
?????文件?????????471??2008-07-25?10:00??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\myeclipse\Catalina\localhost\webdemo.xm
?????目錄???????????0??2016-01-19?14:00??Java?Web開(kāi)發(fā)技術(shù)大全源代碼\myeclipse\forum\
............此處省略2002個(gè)文件信息
評(píng)論
共有 條評(píng)論