91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 66.9MB
    文件類型: .rar
    金幣: 2
    下載: 1 次
    發布日期: 2022-01-12
  • 語言: Java
  • 標簽: jsp??

資源簡介

jsp實用教程第三版,普通高等院校計算機專業(本科)使用教程系列。耿祥義 張躍平 編著 清華大學出版社 的課件 和所有的源碼

資源截圖

代碼片段和文件信息

package?cn.com.systop.servlet;

import?java.io.IOException;
import?java.io.PrintWriter;

import?javax.servlet.ServletException;
import?javax.servlet.http.HttpServlet;
import?javax.servlet.http.HttpServletRequest;
import?javax.servlet.http.HttpServletResponse;
import?javax.servlet.http.HttpSession;

public?class?ShoppingCartServlet?extends?HttpServlet?{

protected?void?doGet(HttpServletRequest?request
HttpServletResponse?response)?throws?ServletException?IOException?{
response.setCharacterEncoding(“gb2312“);
request.setCharacterEncoding(“gb2312“);
response.setContentType(“text/html“);
//????Session????
HttpSession?session?=?request.getSession();
Integer?itemCount?=?(Integer)?session.getAttribute(“itemCount“);
//??ж?itemCount????????
if?(itemCount?==?null)?{
itemCount?=?new?Integer(0);
}
PrintWriter?out?=?response.getWriter();
response.setContentType(“text/html“);
//??????4?????
String[]?itemsSelected;
String?itemName;
itemsSelected?=?request.getParameterValues(“item“);
if?(itemsSelected?!=?null)?{
for?(int?i?=?0;?i? itemName?=?itemsSelected[i];
itemCount?=?new?Integer(itemCount.intValue()?+?1);
//?????????
session.setAttribute(“item“?+?itemCount?itemName);
//??????
session.setAttribute(“itemCount“?itemCount);
}
}
out.println(““);
out.println(““);
out.println(“tle>“);
out.println(“item?list“);
out.println(“
tle>“);
out.println(““);

out.println(“

Session?List:




“);
for?(int?i?=?1;?i?<=?itemCount.intValue();?i++)?{
//??session????
out.println((String)?session.getAttribute(“item“?+?i)?+?“
“);
//session.setAttribute(“item“?+?i?null);
}
//session.setAttribute(“itemCount“?new?Integer(0));
out.println(“繼續購物“);
out.println(““);
out.println(““);
out.close();
}

protected?void?doPost(HttpServletRequest?request
HttpServletResponse?response)?throws?ServletException?IOException?{
this.doGet(request?response);
}
}

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????568403??2018-05-08?09:42??課件1\6-2單元十二5\firefox的cookie.docx

?????文件????1091406??2018-05-08?09:39??課件1\6-2單元十二5\Googel的cookie.docx

?????文件?????901877??2018-05-08?10:47??課件1\6-2單元十二5\ie11的cookie.docx

?????文件????4616192??2018-05-06?20:59??課件1\6-2單元十二5\單元十二.ppt

?????文件????????510??2017-06-22?09:05??課件1\6-2單元十二5\源代碼\ShoppingCart\.classpath

?????文件????????312??2017-06-22?09:05??課件1\6-2單元十二5\源代碼\ShoppingCart\.mymetadata

?????文件???????1755??2017-06-22?09:05??課件1\6-2單元十二5\源代碼\ShoppingCart\.project

?????文件????????503??2017-06-22?09:05??課件1\6-2單元十二5\源代碼\ShoppingCart\.settings\.jsdtscope

?????文件????????334??2003-01-01?02:35??課件1\6-2單元十二5\源代碼\ShoppingCart\.settings\org.eclipse.jdt.core.prefs

?????文件????????480??2017-06-22?09:05??課件1\6-2單元十二5\源代碼\ShoppingCart\.settings\org.eclipse.wst.common.component

?????文件????????252??2017-06-22?09:05??課件1\6-2單元十二5\源代碼\ShoppingCart\.settings\org.eclipse.wst.common.project.facet.core.xml

?????文件?????????49??2017-06-22?09:05??課件1\6-2單元十二5\源代碼\ShoppingCart\.settings\org.eclipse.wst.jsdt.ui.superType.container

?????文件??????????6??2017-06-22?09:05??課件1\6-2單元十二5\源代碼\ShoppingCart\.settings\org.eclipse.wst.jsdt.ui.superType.name

?????文件???????2236??2003-01-01?02:43??課件1\6-2單元十二5\源代碼\ShoppingCart\src\cn\com\systop\servlet\ShoppingCartServlet.java

?????文件????????834??2003-01-01?02:35??課件1\6-2單元十二5\源代碼\ShoppingCart\WebContent\index.jsp

?????文件?????????39??2003-01-01?02:35??課件1\6-2單元十二5\源代碼\ShoppingCart\WebContent\meta-INF\MANIFEST.MF

?????文件???????1034??2003-01-01?02:35??課件1\6-2單元十二5\源代碼\ShoppingCart\WebContent\shop.html

?????文件????????911??2017-06-24?08:01??課件1\6-2單元十二5\源代碼\ShoppingCart\WebContent\WEB-INF\classes\cn\com\systop\servlet\ShoppingCartServlet.class

?????文件???????1216??2003-01-01?02:35??課件1\6-2單元十二5\源代碼\ShoppingCart\WebContent\WEB-INF\web.xml

?????文件????????510??2017-06-22?09:09??課件1\6-2單元十二5\源代碼\Welcome\.classpath

?????文件????????297??2017-06-22?09:09??課件1\6-2單元十二5\源代碼\Welcome\.mymetadata

?????文件???????1750??2017-06-22?09:09??課件1\6-2單元十二5\源代碼\Welcome\.project

?????文件????????503??2017-06-22?09:09??課件1\6-2單元十二5\源代碼\Welcome\.settings\.jsdtscope

?????文件????????334??2003-01-01?01:42??課件1\6-2單元十二5\源代碼\Welcome\.settings\org.eclipse.jdt.core.prefs

?????文件????????465??2017-06-22?09:09??課件1\6-2單元十二5\源代碼\Welcome\.settings\org.eclipse.wst.common.component

?????文件????????252??2017-06-22?09:09??課件1\6-2單元十二5\源代碼\Welcome\.settings\org.eclipse.wst.common.project.facet.core.xml

?????文件?????????49??2017-06-22?09:09??課件1\6-2單元十二5\源代碼\Welcome\.settings\org.eclipse.wst.jsdt.ui.superType.container

?????文件??????????6??2017-06-22?09:09??課件1\6-2單元十二5\源代碼\Welcome\.settings\org.eclipse.wst.jsdt.ui.superType.name

?????文件???????1981??2003-01-01?02:31??課件1\6-2單元十二5\源代碼\Welcome\src\ServletTest1.java

?????文件???????2216??2003-01-01?02:30??課件1\6-2單元十二5\源代碼\Welcome\src\ServletTest2.java

............此處省略1040個文件信息

評論

共有 條評論