资源简介
Java版订餐系统:Java+SqlServer
代码片段和文件信息
package filter;
import java.io.IOException;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class EncondingFilter implements Filter {
public void destroy() {
// TODO Auto-generated method stub
}
public void doFilter(ServletRequest request ServletResponse response
FilterChain chain) throws IOException ServletException {
HttpServletRequest re=(HttpServletRequest)request;
HttpServletResponse res=(HttpServletResponse)response;
request.setCharacterEncoding(“gbk“);
response.setCharacterEncoding(“gbk“);
chain.doFilter(re res);
}
public void init(FilterConfig arg0) throws ServletException {
// TODO Auto-generated method stub
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1468 2009-03-04 10:59 Restaurant\data\CodePub.Com说明.txt
文件 3145728 2009-03-10 15:48 Restaurant\data\Restaurant.mdf
文件 1048576 2009-03-10 15:48 Restaurant\data\Restaurant_log.ldf
文件 481 2009-02-28 13:25 Restaurant\orderfood\.classpath
文件 300 2009-02-28 22:36 Restaurant\orderfood\.myme
文件 1227 2009-02-27 17:53 Restaurant\orderfood\.project
文件 97 2009-03-06 10:04 Restaurant\orderfood\.settings\org.eclipse.core.resources.prefs
文件 330 2009-03-03 14:21 Restaurant\orderfood\.settings\org.eclipse.jdt.core.prefs
文件 1468 2009-03-04 10:59 Restaurant\orderfood\CodePub.Com说明.txt
文件 1011 2009-03-06 09:48 Restaurant\orderfood\src\filter\EncondingFilter.java
文件 1212 2009-03-09 12:56 Restaurant\orderfood\src\filter\LoginFilter.java
文件 1416 2009-03-07 09:04 Restaurant\orderfood\src\wy\com\bean\CartBean.java
文件 1250 2009-03-06 08:59 Restaurant\orderfood\src\wy\com\bean\FoodBean.java
文件 1422 2009-03-07 09:04 Restaurant\orderfood\src\wy\com\bean\OrderBean.java
文件 629 2009-02-27 18:09 Restaurant\orderfood\src\wy\com\bean\UserBean.java
文件 1167 2009-03-07 10:10 Restaurant\orderfood\src\wy\com\dao\CartDao.java
文件 1198 2009-03-03 14:27 Restaurant\orderfood\src\wy\com\dao\DButils.java
文件 3516 2009-03-05 19:49 Restaurant\orderfood\src\wy\com\dao\FoodDao.java
文件 2107 2009-03-07 09:05 Restaurant\orderfood\src\wy\com\dao\OrderDao.java
文件 1500 2009-03-06 09:38 Restaurant\orderfood\src\wy\com\dao\UserDao.java
文件 1670 2009-03-05 22:09 Restaurant\orderfood\src\wy\com\servlet\BuyServlet.java
文件 816 2009-03-05 19:55 Restaurant\orderfood\src\wy\com\servlet\ClearServlet.java
文件 1845 2009-02-28 17:59 Restaurant\orderfood\src\wy\com\servlet\FoodAddServlet.java
文件 1167 2009-03-05 19:42 Restaurant\orderfood\src\wy\com\servlet\FoodGetServlet.java
文件 1334 2009-03-07 10:02 Restaurant\orderfood\src\wy\com\servlet\LoginServlet.java
文件 2272 2009-03-07 10:11 Restaurant\orderfood\src\wy\com\servlet\OrderServlet.java
文件 1223 2009-02-27 18:11 Restaurant\orderfood\src\wy\com\servlet\RegServlet.java
文件 1156 2009-02-28 09:12 Restaurant\orderfood\src\wy\com\servlet\UpdateServlet.java
文件 1248 2009-03-02 15:33 Restaurant\orderfood\src\wy\com\servlet\UpLoadServlet.java
文件 1057 2009-02-27 17:46 Restaurant\orderfood\WebRoot\css\st
............此处省略111个文件信息
评论
共有 条评论