PowerPoint 演示文稿

Size: px
Start display at page:

Download "PowerPoint 演示文稿"

Transcription

1 任务一应用 JSP+Servlet+JavaBean 实现购物车 添加

2 对于刚刚开始工作的小刘, 要先从简单一点的功能 上手 应用 JSP+Servlet+JavaBean 实现购物车 添加

3 购物车主要有添加商品 删除商品 修改数量 等主要功能, 本任务将通过 JSP+Servlet+JavaBean 模型实现购物车的添加功能, 购物车添加的具体步骤为 : 查看商品详细信息 加入购物车 显示将购物车中的商品列表, 添加购物车的页面效果如图所示

4 知识目标 : 了解 JSP+Servlet+JavaBean 开发模型 掌握在 Servlet 中使用内置对象的方法 掌握 JSP 页面与 Servlet 间参数传递的方法 掌握集合类 ArrayList 的使用

5 技能目标 : 能在 Servlet 中灵活正确使用内置对象 能够在 Servlet 中重写 dopost() 与 doget() 方法, 实现处理购物车添加的业务逻辑

6 所谓 JSP+Servlet+JavaBeans 开发模型, 使用 JSP 技术来表现页面, 使用 Servlet 技术完成大量的事务处理, 使用 Bean 来存储数据 Servlet 用来处理请求的事务, 充当一个控制者的角色, 创建 JSP 需要的 Bean 和对象, 然后根据用户请求的行为, 决定将哪个 JSP 页面发送给客户 JSP+Servlet+JavaBeans 开发模型示意图如图所示 器览浏 1 request (Controller) Servlet response (View) JSP 4 (Model) JavaBean 应用服务器

7 本任务采用 JSP+Servlet+JavaBean 模型实现 添加购物车 功能,JSP Servlet JavaBean 这三部分的分析如下 : JSP 部分 : 涉及到两个 JSP 页面 : 查看商品详情页面 (product_detail.jsp, 在任务 5.4 中实现 ) 和 购物车商品列表页面 (list_cart.jsp) Servlet 部分 : 任务 6.1 中, 我们创建了一个购物车 Servlet CartServlet, 在本任务中, 结合购物车添加功能, 我们将继续完善 CartServlet JavaBean 部分 : 本任务将创建一个 JavaBean 购物车实体类 Cart 实现思路 :product_detail.jsp 页面中将表单提交给 CartServlet,CartServlet 接收 处理表单数据并将数据存放在 session 对象中, 并将页面跳转至 list_cart.jsp, 在 list_cart.jsp 页面中读取 session 数据, 形成列表并显示

8 创建购物车实体类 Cart 在 digitalweb 项目的 com.digitalweb.model 包中创建 Cart 实体类, 它的类结构如图所示

9 编辑前台 JSP 页面 product_detail.jsp 在任务 5.4 中完成 查看商品详情 功能基础上, 打开 product_detail.jsp 页面, 将表单 addcartform 的 action 属性为../CartServlet?type=add,../ 表示返回上一级目录, 若 CartServlet 与当前页面处于同级目录, 则可直接设置为 action=cartservlet 表单的 method 属性设置为 post, 这表明表单 addcartform 将采用 POST 方式提交给 CartServlet 进行处理 此外,book_detail.jsp 页面中必须含有相关的隐藏域与 Cart 对象的属性一一对应, 表单的 HTML 代码如下所示 1.<form action="../cartservlet?type=add" method="post" name="addcartform"> 2. <h1><%=p.getname()%></h1> 3. <input type="hidden" name="id" value="<%=p.getid()%>" /> 4. <input type="hidden" name="code" value="<%=p.getcode()%>" /> 5. <input type="hidden" name="name" value="<%=p.getname()%>" /> 6. <input type="hidden" name="price" value="<%=p.getprice()%>" /> 7. <input type="hidden" name="sale" value="<%=p.getsale()%>" /> 8. <input type="hidden" name="pic" value="<%=p.getpic()%>" />

10 1.<ul> 2. <li style="list-style: none;" class="bt"></li> 3. <li style="list-style: none;" class="text"> 商品编号 :<%=p.getcode()%></li> 4. <li style="list-style: none;" class="text"> 价格 : <%=p.getprice()%></li> 5. <li style="list-style: none;" class="text"> 促销信息 : 直降 <%=p.getsale()%></li> 6. <li style="list-style: none;" class="bt"> 库存 :<%=p.getnum()%></li> 7. <listyle="list-style: none; font-size: 13px; font-family: 黑体 ; color: red;"> 我要买 : 8. <input type="text" name="num" id="num" size="3"> 件 9. </li> 10. </ul> 11. <img hspace="50" src="../images/gwc.png" onclick="javascript:checkaddcartform();" > 12.</form>

11 由上述代码可见, 表单将通过点击图 中的 加入购物车 图片提交 在提交表单时, 使用 JavaScript 方法 checkaddcartform() 对商品购买数量进行验证 JavaScript 代码如下 : 1.function checkaddcartform() { 2. if (document.getelementbyid("num").value.length <= 0) 3. alert(" 请输入购买数量!"); 4. else 5. document.addcarform.submit(); 6.} 这里的 JavaScript 代码仅仅验证了用户是否输入购买数量, 读者可以进一步添加其他验证, 如数据格式以及数值的正确性等

12 编写 CartServlet 逻辑处理代码 任务 6.1 中创建的 CartServlet 的主要职责是接收页面请求并进行逻辑处理,CartServlet 将根据接收到的表单参数 type 的值而进行 添加 修改 或 删除 购物车的操作, 如图所示 当 type 值为开始 add 时,CartServlet 执行添加操作 接收参数 type type 为 add 判断 type 的值 type 为 update type 为 delete 接收购物车相关参数接收购物车相关参数接收购物车相关参数 添加购物车 修改购物车 删除购物车 页面跳转至 list_cart.jsp 结束

13 ... 添加购物车操作的流程如图所示 : 商品 ID:id 商品名称 :name 商品价格 :price 商品数量 :num 商品图片路径 :image type 为 add 接收购物车相关参数 将接收到的参数信息封装为 Cart 对象 判断 clist 是否为空 初始化 clist 遍历 clist 判断是否已经有该商品 将 Cart 对象加入到 clist 中 将 clist 中对象的数量设置为原数量 + 刚接收的数量 将 clist 放回至 session 页面跳转至 list_cart.jsp

14 在 CartServlet 的 dopost() 方法中编写代码, 实现购物车添加 在 doget() 方法中, 调用 dopost() 方法, 如此一来, 不管页面以何种方式提交表单, 都可以进行相同的处理 dopost() 方法中的代码如下 : 1. public void dopost(httpservletrequest request, HttpServletResponse response) throws ServletException, IOException { 2. String nextpage = "product/list_cart.jsp"; 3. HttpSession session = request.getsession(); // 获取 session 对象 4. // 接收购物车参数 5. HashMap<String,String[]> map = (HashMap<String,String[]>) request.getparametermap(); 6. ArrayList<Cart> cartlist = (ArrayList<Cart>)session.getAttribute("cartList"); 7. if(map.get("type")[0].equals("add")){

15 8. // 封装 Cart 对象 9. Cart cart = new Cart(); 10. cart.setid(integer.parseint(map.get("id")[0])); 11. cart.setname(map.get("name")[0]); 12. cart.setsale(double.parsedouble(map.get("sale")[0])); 13. cart.setprice(double.parsedouble(map.get("price")[0])); 14. cart.setpic(map.get("pic")[0]); 15. cart.setnum(integer.parseint(map.get("num")[0])); 16. if(cartlist == null){ 17. cartlist = new ArrayList<Cart>(); 18. session.setattribute("cartlist",cartlist); 19. }

16 20. // 判断 cartlist 中是否有同样的商品 21. boolean hascart = false; 22. for(cart c : cartlist){ 23. if(c.getid() == cart.getid()){ 24. c.setnum(c.getnum()+cart.getnum()); 25. hascart = true; 26. break; 27. } 28. } 29. if(!hascart) 30. cartlist.add(cart); 31. } 32. response.sendredirect(nextpage); // 页面跳转 }

17 程序说明 第 3 行 : 通过 request 对象的 getsession() 方法创建 session 第 5 行 : 批量接收 product_detail.jsp 页面传递的所有参数, 放在一个 HashMap 对象 map 中, 详见本任务技术要点 第 6 行 : 从 session 中获取当前的购物车列表 第 7 行 : 判断参数 type 的值是否为 add 第 9~15 行 : 封装 Cart 对象 第 16~19 行 : 若购物车为空 ( 即第一次添加购物车 ), 则实例化购物车列表 cartlist 对象, 并保存在 session 中 第 21~31 行 : 判断 cartlist 中是否有同样的商品, 有则直接修改购物车中数量 第 32 行 : 跳转到购物车列表页面 cart_list.jsp

18 在购物车列表页面 cart_list.jsp 中显示购物车信息 在 cart_list.jsp 页面中, 使用表格来显示购物车列表, 如图所示

19 页面对应的 HTML 代码如下所示 : <div id="shoppingcart"> <p><img src="images/buycar_logo.gif" alt=" 购物车 " /></p> <table> <tr> <th width="6%" > 选项 </th> <th width="15%"> 商品图片 </th> <th width="20%"> 商品名称 </th> <th width="8%"> 商品单价 </th> <th width="28%"> 数量 </th> <th width="11%"> 单价优惠 </th> <th width="6%"> 小计 </th> <th width="6%"> 删除 </th> </tr> <tr> <td><input type="checkbox" name="chkbox" value="checkbox" /></td> <td> 此处显示商品图片 </td> <td> 此处显示商品名称 </td> <td> 此处显示商品价格 </td> <td> 此处显示商品数量 </td> <td> 此处显示商品促销价 </td> <td> 此处显示商品金额小计 </td> <td><a href=" "> 删除 </a></td> </tr> <tr> <td colspan="6"> 总价 :</td> </tr> </table> </div>

20 在页面中加入 java 代码, 从 session 对象中读取购物车列表中的数据, 并通过循环在页面相应位置显示 商品小计和商品总价通过计算得到, 具体代码如下 : 1. <div id="shoppingcart"> 2. <p><img src="images/buycar_logo.gif" alt=" 购物车 " /></p> 3. <table> 4. <tr> 5. <th width="6%" > 选项 </th> 6. <th width="15%"> 商品图片 </th> </tr> 9. <% 10. double sum = 0.0; // 商品总价 11. ArrayList<Cart> cartlist = (ArrayList<Cart>)session.getAttribute("cartList"); 12. if(cartlist!=null){ 13. for(cart c : cartlist) { 14.%>

21 15. <tr> 16. <td><input type="checkbox" name="chkbox" value="checkbox" /></td> 17. <td> <a href="product_detail.jsp?id=<%=c.getid() %>"> 18. <img src="<%=c.getpic() %>" width="75" height="50" /></a> 19. </td> 20. <td><a href="product_detail.jsp?id=<%=c.getid() %>"> 21. <%=(c.getname()).substring(0,12) %></a> 22. </td> 23. <td> <%=c.getprice() %></td> 24. <td><a>-</a> 25. <input type="text" size="2" name="num" id="num" value="<%=c.getnum() %>" /> 26. <a>+</a> 27. </td> 28. <td> <%=c.getsale() %></td> 29. <td> <%=c.getprice()*c.getnum() %></td> 30. <td><a href=" "> 删除 </a></td> 31. </tr>

22 32. <% 33. sum += c.getprice()*c.getnum(); 34. } 35. }%> 36.<tr> 37. <td colspan="6"> 总价 :<%=sum %></td> 38. <td> 39. <input type="button" name="totalprice" value=" 返回 " class="picbut" onclick="history.back(-1)" /> 40. </td> 41. <td> 42. <input type="button" name="totalprice" value=" 结算 " class="picbut" onclick=" javascript:window.location.href='checkout.jsp'" /> 43. </td> 44. </tr> 45. </table> 46.</div>

23 47.<% 48. sum += c.getprice()*c.getnum(); 49. } 50. }%> 51.<tr> 52. <td colspan="6"> 总价 :<%=sum %></td> 53. <td> 54. <input type="button" name="totalprice" value=" 返回 " class="picbut" onclick="history.back(-1)" /> 55. </td> 56. <td> 57. <input type="button" name="totalprice" value=" 结算 " class="picbut" onclick=" javascript:window.location.href='checkout.jsp'" /> 58. </td> 59. </tr> 60. </table> 61.</div> 至此, 购物车添加功能已完成, 启动 Tomcat, 在浏览器中打开 list_product.jsp 页面, 查看图书信息并进行添加至 购物车的操作, 页面效果如任务描述中的图所示

24 1. 在 Servlet 中内置对象的使用众所周知, 在 JSP 页面上可直接通过 session.setattribute(name,object) 来设置内置对象 session, 十分方便, 可如果要在 servlet 使用 session, 就和 JSP 页面也中有点区别了 在 Servlet 中不能直接使用 session,servlet 的 dopost() 和 doget() 方法中, 只提供 request 和 response 两个参数对象, 因此, 要想取得 session 对象, 要通过调用 request 对象的方法来实现 通过 HttpSession session=request.getsession(); 得到一个 session 对象 ( 准确来说, 得到的应该是一个 HttpSession 对象 ), 然后, 就可以像在 JSP 页面中直接使用它了 其实,JSP 中的 session 和 servlet 中的 HttpSession 其实根本没有区别,JSP 页面在编译时会通过 Jsp container 将 session 对象变换为 javax.servlet.http.httpsession 对象 同样的,JSP 中的其他内置对象, 常用的如 out 对象 application 对象, 也要通过相应的方法获取 通过 response 参数对象的 getwriter() 方法获取 out 对象, 例如 : 1.public void doget(httpservletrequest request,httpservletresponse response) 2.throws IOException,ServletException { 3. 4.PrintWriter out=response.getwriter(); 5.out.print("HelloWorld!"); 6.out.close(); }

25 在 Servlet 中, 取得 application 有两种方法 : 可以通过无参初始化方法, 直接取得 ; 也可以通过有参初始化方法, 必须使用 config 对象取得, 前者较为常用, 例如 : public void dopost(httpservletrequest request,httpservletresponse response) throws IOException,ServletException{ // 取得 Application 对象 ServletContext application=this.getservletcontext(); // 设置 Application 属性 application.setattribute("name", "Magci"); // 跳转到接收页面 response.sendredirect("application.jsp"); }

26 2. JSP 页面与 Servlet 之间的参数传递在 Java Web 开发中, 常常需要在 JSP 页面与 Servlet 之间的进行传值, 包括从 JSP 页面传值给 servlet 和从 servlet 传值给 JSP 页面 (1)JSP 页面向 Servlet 传值表单传值 URL 是 JSP 页面向 Servlet 传值最常用的方法 例如下面的 HTML 代码 : 1.<!-- JSP page --> 2. 3.<a href="jspservlet? action=toservlet ">click me</a> 4.<form action="jspservlet? action=toservlet " method="post" name="form"> 5.<input name="username" value="test" /> 6.<input name="password" value="abc" /> 7.<input type="submit" value="submit"> 8.</form> 9.

27 对于 JSP 页面 form 表单的内容, 如 <input> 标签, 在 Servlet 中可用 request.getparameter(" 参数名 ") 方式获取 String uname= request.getparameter("username"); // 获取表单中 username 参数值 test String pwd= request.getparameter("password"); // 获取表单中 password 参数值 abc 这里 <a> 标签中的 href 属性与 <form> 标签的 action 属性的值 JspServlet?action=toServlet, 这里,? 表示 URL 中带有参数,? 后面的表达式 action=toservlet 表示提交给 Servlet 时传递参数 action, 参数值为 toservlet, 在 Servlet 中也用 request.getparameter("action") 获取 若在 URL 中要设置多个参数, 可以用下面的形式 : URL 地址? 参数 1= 参数值 1& 参数 2= 参数值 2& 例如,<form action= "CartServlet?id=1&type=delete" method= "post" >, 表单提交时同时传递两个参数 id 和 type

28 在本任务中, 商品详细信息页面 (product_detail.jsp) 中分别通过表单传值和 URL 两种方式向 CartServlet 传递参数, 在参数数量比较多的情况下, 可以通过 HttpServletRequest 参数对象 request 的 getparametermap() 方法获得 JSP 页面元素的集合 例如 : HashMap<String,String[]> map = (HashMap<String,String[]>) request.getparametermap(); request.getparametermap() 方法的返回类型是 Map 类型的对象, 记录着所提交的请求中请求参数和参数值的映射关系 另外,request.getParameterMap() 返回值使用泛型时为 Map<String,String[]> 形式, 因为有时像 checkbox 这样的组件会出现一个 name 对应多个 value 的情况, 所以该 Map 中键值对是 String >String[] 的实现 正因为如此, 从 Map 中读取元素时, 使用 map.get(" 参数名 ")[0] 这样的形式 例如, 在前面例子中的 JSP 页面中的参数在 Servlet 中可以通过以下代码获取 : HashMap<String,String[]> map = (HashMap<String,String[]>) request.getparametermap(); 3. String uname=map.get( username )[0]; // 获取表单中 username 参数值 test 4. String pwd= request.getparameter("password"); // 获取表单中 password 参数值 abc 5.String action=request.getparameter( action ); // 获取 URL 中参数 action 的值 toservlet

29 (2)Servlet 向 JSP 页面传值从 JSP 页面传值给 Servlet 可以使用表单或 URL, 若要从 Servlet 传值给 JSP 页面, 也有两种方法 第一种方法, 在 Servlet 中将数据保存在 session 中, 使用 response 参数对象的 sendredirect() 方法跳转到 JSP 页面, 然后在 JSP 页面中获取 session 中的数据, 例如 : //1.Servlet 中存储数据于 session 并跳转页面 String uname= tom ; 3. HttpSession session=request.getsession(); 4. session.setattribute( username,uname); 5. response.sendredirect( userinfo.jsp ); 6. //2.JSP 页面中获取 session 中的值 <td><%=session.getattribute( username )%></td> 3.

30 本任务也采用了上述方法 第二种方法, 也是将数据保存在 session 中, 使用 response 参数对象的 getrequestdispatcher() 方法跳转页面, 最后在 JSP 页面中获取 session 中的数据, 例如 : //1.Servlet 中存储数据于 session 并跳转页面 String uname= tom ; 3. HttpSession session=request.getsession(); 4. session.setattribute( username,uname); 5. RequestDispacher rd=request.getrequestdispacher( userinfo.jsp ); 6. rd.forward(request, response); 7. //2.JSP 页面中获取 session 中的值 <td><%=session.getattribute( username )%></td> 3.

31 参照本任务购物车添加的实现方法, 应用 JSP+Servlet+JavaBean 实现购物车删除功能, 页面效果如图所示 删除前 删除后

09 (File Processes) (mkdir) 9-3 (createnewfile) 9-4 (write) 9-5 (read) 9-6 (deletefile) 9-7 (deletedir) (Exercises)

09 (File Processes) (mkdir) 9-3 (createnewfile) 9-4 (write) 9-5 (read) 9-6 (deletefile) 9-7 (deletedir) (Exercises) 09 (File Processes) 9-1 9-2 (mkdir) 9-3 (createnewfile) 9-4 (write) 9-5 (read) 9-6 (deletefile) 9-7 (deletedir) (Exercises) Java Servlet 9-1 Servlet (File Processes) Client Servlet Servlet Java Java (Stream)

More information

基于CDIO一体化理念的课程教学大纲设计

基于CDIO一体化理念的课程教学大纲设计 Java 语 言 程 序 设 计 课 程 教 学 大 纲 Java 语 言 程 序 设 计 课 程 教 学 大 纲 一 课 程 基 本 信 息 1. 课 程 代 码 :52001CC022 2. 课 程 名 称 :Java 语 言 程 序 设 计 3. 课 程 英 文 名 称 :Java Programming 4. 课 程 类 别 : 理 论 课 ( 含 实 验 上 机 或 实 践 ) 5. 授

More information

本章学习目标 小风 Java 实战系列教程 SpringMVC 简介 SpringMVC 的入门案例 SpringMVC 流程分析 配置注解映射器和适配器 注解的使用 使用不同方式的跳转页面 1. SpringMVC 简介 Spring web mvc

本章学习目标 小风 Java 实战系列教程 SpringMVC 简介 SpringMVC 的入门案例 SpringMVC 流程分析 配置注解映射器和适配器 注解的使用 使用不同方式的跳转页面 1. SpringMVC 简介 Spring web mvc 本章学习目标 SpringMVC 简介 SpringMVC 的入门案例 SpringMVC 流程分析 配置注解映射器和适配器 配置视图解析器 @RequestMapping 注解的使用 使用不同方式的跳转页面 1. SpringMVC 简介 Spring web mvc 和 Struts2 都属于表现层的框架, 它是 Spring 框架的一部分, 我们可 以从 Spring 的整体结构中看得出来 :

More information

エスポラージュ株式会社 住所 : 東京都江東区大島 東急ドエルアルス大島 HP: ******************* * 关于 Java 测试试题 ******

エスポラージュ株式会社 住所 : 東京都江東区大島 東急ドエルアルス大島 HP:  ******************* * 关于 Java 测试试题 ****** ******************* * 关于 Java 测试试题 ******************* 問 1 运行下面的程序, 选出一个正确的运行结果 public class Sample { public static void main(string[] args) { int[] test = { 1, 2, 3, 4, 5 ; for(int i = 1 ; i System.out.print(test[i]);

More information

1.JasperReport ireport JasperReport ireport JDK JDK JDK JDK ant ant...6

1.JasperReport ireport JasperReport ireport JDK JDK JDK JDK ant ant...6 www.brainysoft.net 1.JasperReport ireport...4 1.1 JasperReport...4 1.2 ireport...4 2....4 2.1 JDK...4 2.1.1 JDK...4 2.1.2 JDK...5 2.1.3 JDK...5 2.2 ant...6 2.2.1 ant...6 2.2.2 ant...6 2.3 JasperReport...7

More information

(TestFailure) JUnit Framework AssertionFailedError JUnit Composite TestSuite Test TestSuite run() run() JUnit

(TestFailure) JUnit Framework AssertionFailedError JUnit Composite TestSuite Test TestSuite run() run() JUnit Tomcat Web JUnit Cactus JUnit Java Cactus JUnit 26.1 JUnit Java JUnit JUnit Java JSP Servlet JUnit Java Erich Gamma Kent Beck xunit JUnit boolean JUnit Java JUnit Java JUnit Java 26.1.1 JUnit JUnit How

More information

D getinitparameternames() 9 下 列 选 项 中, 属 于 Servlet API 中 提 供 的 request 对 象 的 包 装 类 的 是 ( ) A HttpServletRequestWrapper B HttpServletRequest C HttpServ

D getinitparameternames() 9 下 列 选 项 中, 属 于 Servlet API 中 提 供 的 request 对 象 的 包 装 类 的 是 ( ) A HttpServletRequestWrapper B HttpServletRequest C HttpServ 第 四 章 Filter( 过 滤 器 ) 样 题 A 卷 一 选 择 题 ( 每 小 题 2 分, 共 20 分 ) 1 下 面 选 项 中, 用 于 实 现 初 始 化 过 滤 器 的 方 法 是 ( ) A init(filterconfig filterconfig) B dofilter(servletrequest req,servletresponse resp,filterchain

More information

实验六 JSP/Servlet

实验六   JSP/Servlet Web Lab 5 JSP/Servlet 实验目的 1) 复习和掌握 TOMCAT 配置 2) 掌握 JSP 基本语法 3) 掌握使用 JSP,JavaBean,Servlet 进行编程 4) 掌握使用 Session 进行数据传递的方法 实验任务 通过设计 JSP Servlet JavaBean 使用 MVC 模式实现用户登录验证 注销, 购物车的添加 移除以及清除商品, 页面之间使用 session

More information

5-1 nav css 5-2

5-1 nav css 5-2 5 HTML CSS HTML CSS Ê Ê Ê Ê 5-1 nav css 5-2 5-1 5 5-1-1 5-01 css images 01 index.html 02 5-3 style.css css 03 CH5/5-01/images 04 images index.html style.css 05

More information

resp.getwriter().print(j + "*" + i + "=" + j * i+" "); resp.getwriter().print("<br/>"); protected void dopost(httpservletrequest req, HttpServletRespo

resp.getwriter().print(j + * + i + = + j * i+ ); resp.getwriter().print(<br/>); protected void dopost(httpservletrequest req, HttpServletRespo 第三章补充案例 案例 3-1 HttpServlet 一 案例描述 1 考核知识点名称 :HttpServlet 编号 : 2 练习目标 掌握 HttpServlet 的 doget() 方法和 dopost() 方法 3 需求分析由于大多数 Web 应用都是通过 HTTP 协议和客户端进行交互, 因此, 在 Servlet 接口中, 提供了 一个抽象类 javax.servlet.http.httpservlet,

More information

1 1 大概思路 创建 WebAPI 创建 CrossMainController 并编写 Nuget 安装 microsoft.aspnet.webapi.cors 跨域设置路由 编写 Jquery EasyUI 界面 运行效果 2 创建 WebAPI 创建 WebAPI, 新建 -> 项目 ->

1 1 大概思路 创建 WebAPI 创建 CrossMainController 并编写 Nuget 安装 microsoft.aspnet.webapi.cors 跨域设置路由 编写 Jquery EasyUI 界面 运行效果 2 创建 WebAPI 创建 WebAPI, 新建 -> 项目 -> 目录 1 大概思路... 1 2 创建 WebAPI... 1 3 创建 CrossMainController 并编写... 1 4 Nuget 安装 microsoft.aspnet.webapi.cors... 4 5 跨域设置路由... 4 6 编写 Jquery EasyUI 界面... 5 7 运行效果... 7 8 总结... 7 1 1 大概思路 创建 WebAPI 创建 CrossMainController

More information

没 有 多 余 的 Contruol 或 Action 了 原 来 Domain 层 被 服 务 层 Service layer 遮 挡, 在 右 边 图 中, 则 Domain 层 直 接 暴 露 给 前 台 了, 没 有 被 遮 挡, 裸 露 了 这 样 一 步 到 位 实 现 领 域 模 型

没 有 多 余 的 Contruol 或 Action 了 原 来 Domain 层 被 服 务 层 Service layer 遮 挡, 在 右 边 图 中, 则 Domain 层 直 接 暴 露 给 前 台 了, 没 有 被 遮 挡, 裸 露 了 这 样 一 步 到 位 实 现 领 域 模 型 文 章 编 号 :1007-757X(2012)1-0036-04 领 域 驱 动 模 型 的 WEB 软 件 系 统 设 计 研 究 摘 要 : J2EE 3 JDK1.7 Tomcat WEB 关 键 词 : 中 图 分 类 号 :TP311 文 献 标 志 码 :A 0 引 言 Web 软 件 系 统 的 分 层 结 构 典 型 的 J2EE 软 件 系 统 开 发 方 法 分 为 三 层 结

More information

untitled

untitled JavaEE+Android - 6 1.5-2 JavaEE web MIS OA ERP BOSS Android Android Google Map office HTML CSS,java Android + SQL Sever JavaWeb JavaScript/AJAX jquery Java Oracle SSH SSH EJB+JBOSS Android + 1. 2. IDE

More information

RUN_PC連載_10_.doc

RUN_PC連載_10_.doc PowerBuilder 8 (10) Jaguar CTS ASP Jaguar CTS PowerDynamo Jaguar CTS Microsoft ASP (Active Server Pages) ASP Jaguar CTS ASP Jaguar CTS ASP Jaguar CTS ASP Jaguar CTS ASP Jaguar CTS ASP Jaguar Server ASP

More information

Microsoft PowerPoint - 05-Status-Codes-Chinese.ppt

Microsoft PowerPoint - 05-Status-Codes-Chinese.ppt 2004 Marty Hall 服务器响应的生成 : HTTP 状态代码 JSP, Servlet, & Struts Training Courses: http://courses.coreservlets.com Available in US, China, Taiwan, HK, and Worldwide 2 JSP and Servlet Books from Sun Press: http://www.coreservlets.com

More information

(CIP) Web /,. :,2005. 1 ISBN 7 81058 782 X.W............T P393.4 CIP (2004) 118797 Web ( 99 200436) ( http:/ / www.shangdapress.com 66135110) : * 787

(CIP) Web /,. :,2005. 1 ISBN 7 81058 782 X.W............T P393.4 CIP (2004) 118797 Web ( 99 200436) ( http:/ / www.shangdapress.com 66135110) : * 787 Web (CIP) Web /,. :,2005. 1 ISBN 7 81058 782 X.W............T P393.4 CIP (2004) 118797 Web ( 99 200436) ( http:/ / www.shangdapress.com 66135110) : * 787 1092 1/ 16 30.75 748 2005 1 1 2005 1 1 : 1 3 100

More information

EJB-Programming-4-cn.doc

EJB-Programming-4-cn.doc EJB (4) : (Entity Bean Value Object ) JBuilder EJB 2.x CMP EJB Relationships JBuilder EJB Test Client EJB EJB Seminar CMP Entity Beans Session Bean J2EE Session Façade Design Pattern Session Bean Session

More information

设计模式 Design Patterns

设计模式 Design Patterns 丁勇 Email:18442056@QQ.com 学习目标 掌握 Model I 体系结构 掌握 Model II 体系结构 掌握 MVC 应用程序 Model I 体系结构 6 1 Model I 体系结构结合使用 JSP 页面和 Bean 来开发 Web 应用程序 应用服务器 请求 JSP 页面 响应 Bean 数据库服务器 Model I 体系结构 6 2 Model I 体系结构用于开发简单的应用程序

More information

Microsoft Word - 01.DOC

Microsoft Word - 01.DOC 第 1 章 JavaScript 简 介 JavaScript 是 NetScape 公 司 为 Navigator 浏 览 器 开 发 的, 是 写 在 HTML 文 件 中 的 一 种 脚 本 语 言, 能 实 现 网 页 内 容 的 交 互 显 示 当 用 户 在 客 户 端 显 示 该 网 页 时, 浏 览 器 就 会 执 行 JavaScript 程 序, 用 户 通 过 交 互 式 的

More information

p.2 1 <HTML> 2 3 <HEAD> 4 <TITLE> </TITLE> 5 </HEAD> 6 7 <BODY> 8 <H3><B> </B></H3> 9 <H4><I> </I></H4> 10 </BODY> </HTML> 1. HTML 1. 2.

p.2 1 <HTML> 2 3 <HEAD> 4 <TITLE> </TITLE> 5 </HEAD> 6 7 <BODY> 8 <H3><B> </B></H3> 9 <H4><I> </I></H4> 10 </BODY> </HTML> 1. HTML 1. 2. 2005-06 p.1 HTML HyperText Mark-up Language 1. HTML Logo, Pascal, C++, Java HTML 2. HTML (tag) 3. HTML 4. HTML 1. HTML 2. 3. FTP HTML HTML html 1. html html html cutehtmleasyhtml 2. wyswyg (What you see

More information

A-1 HTML A-1-1 HTML 1 HTML JSP HTML HTML HTML JSP A HTML HTML HTML HTML HTML HTML HTML HTML.htm.html HTML Windows NotePad HTML IE [ / ] NotePad A-2

A-1 HTML A-1-1 HTML 1 HTML JSP HTML HTML HTML JSP A HTML HTML HTML HTML HTML HTML HTML HTML.htm.html HTML Windows NotePad HTML IE [ / ] NotePad A-2 HTML A-1 HTML A-2 A-2 HTML A-8 A-3 A-14 A-4 A-26 A-5 A-30 A-6 A-42 A-1 HTML A-1-1 HTML 1 HTML JSP HTML HTML HTML JSP A HTML HTML HTML HTML HTML HTML HTML HTML.htm.html HTML Windows NotePad HTML IE [ /

More information

1. 2. Flex Adobe 3.

1. 2. Flex Adobe 3. 1. 2. Flex Adobe 3. Flex Adobe Flex Flex Web Flex Flex Flex Adobe Flash Player 9 /rich Internet applications/ria Flex 1. 2. 3. 4. 5. 6. SWF Flash Player Flex 1. Flex framework Adobe Flex 2 framework RIA

More information

在所有的项目开发中, 一定是多人协作的团队开发, 但是使用框架就会出现一个问题, 我们所 有的 Action 以及相关的路径都要求在我们的 struts.xml 文件中配置, 如果所有的人去修改一个 文件, 那么就会变得混乱, 而且有可能出现冲突, 那么在 struts.xml 文件中为了解决这个问

在所有的项目开发中, 一定是多人协作的团队开发, 但是使用框架就会出现一个问题, 我们所 有的 Action 以及相关的路径都要求在我们的 struts.xml 文件中配置, 如果所有的人去修改一个 文件, 那么就会变得混乱, 而且有可能出现冲突, 那么在 struts.xml 文件中为了解决这个问 内置对象的取得和多人开发 一 内置对象的取得 在使用的 servlet 的时候可以通过 HttpServletResquest 获取到一些内置对象, 但是在 struts2 中为了方便取得内置对象, 专门提供了一个 ServletActionContext 这个类取得取得内置对象, 观察如下方法 public static javax.servlet.jsp.pagecontext() 取得 pagecontext

More information

07-form

07-form PHP 的输 入 表单与 文件上传杨亮 Web 基本流程 请求 页 面 对应 文件 获取数据 PC Mobile HTTP 请求 html css javascript 服务器 (Apache) (IIS) html css javascript 后端脚本 (PHP) (JSP) (ASP) 数据库 (MySQL) (Oracle) (Access) 返回 页 面 返回 页 面 返回数据 客户端 服务器端

More information

05 01 accordion UI containers 03 Accordion accordion UI accordion 54

05 01 accordion UI containers 03 Accordion accordion UI accordion 54 jquery UI plugin Accordion 05 01 accordion UI containers 03 Accordion accordion UI accordion 54 05 jquery UI plugin 3-1

More information

EJB-Programming-3.PDF

EJB-Programming-3.PDF :, JBuilder EJB 2.x CMP EJB Relationships JBuilder EJB Test Client EJB EJB Seminar CMP Entity Beans Value Object Design Pattern J2EE Design Patterns Value Object Value Object Factory J2EE EJB Test Client

More information

untitled

untitled 1 .NET 利 [] [] 來 說 切 切 理 [] [ ] 來 說 拉 類 類 [] [ ] 列 連 Web 行流 來 了 不 不 不 流 立 行 Page 類 Load 理 Response 類 Write 料 Redirect URL Response.Write("!! ives!!"); Response.Redirect("WebForm2.aspx"); (1) (2) Web Form

More information

Microsoft PowerPoint - 02-Servlet-Basics-Chinese.ppt

Microsoft PowerPoint - 02-Servlet-Basics-Chinese.ppt 2004 Marty Hall servlet 基础 JSP, Servlet, & Struts Training Courses: http://courses.coreservlets.com Available in US, China, Taiwan, HK, and Worldwide 2 JSP and Servlet Books from Sun Press: http://www.coreservlets.com

More information

Yih-Chuan Lin Tsung-Han Wu Hsin-Te Wu Hsiao-Hui Hsu Department of Computer Science and Information Engineering Shu-Te University

Yih-Chuan Lin Tsung-Han Wu Hsin-Te Wu Hsiao-Hui Hsu Department of Computer Science and Information Engineering Shu-Te University 2003 6 Yih-Chuan Lin Tsung-Han Wu Hsin-Te Wu Hsiao-Hui Hsu Department of Computer Science and Information Engineering Shu-Te University E-mail: yclin@mail.stu.edu.tw Web Mobile Device Web Service Web Service

More information

Servlet

Servlet Servlet Allen Long Email: allen@huihoo.com http://www.huihoo.com 2004-04 Huihoo - Enterprise Open Source http://www.huihoo.com 1 Huihoo - Enterprise Open Source http://www.huihoo.com 2 GET POST Huihoo

More information

untitled

untitled 653 JAVA 2008 11 Institution of Software Engineer... 2... 4... 4... 5... 5... 8... 8... 8... 8... 8... 9... 9... 9... 11... 13... 13... 13... 13... 15... 15... 15... 15... 16... 16... 17... 17... 17...

More information

06 01 action JavaScript action jquery jquery AJAX CSS jquery CSS jquery HTML CSS jquery.css() getter setter.css('backgroundcolor') jquery CSS b

06 01 action JavaScript action jquery jquery AJAX CSS jquery CSS jquery HTML CSS jquery.css() getter setter.css('backgroundcolor') jquery CSS b 06 01 action JavaScript action jquery jquery AJAX 04 4-1 CSS jquery CSS jquery HTML CSS jquery.css() getter setter.css('backgroundcolor') jquery CSS background-color camel-cased DOM backgroundcolor.css()

More information

Microsoft Word - 28935样章.dot

Microsoft Word - 28935样章.dot 21 世 纪 高 职 高 专 规 划 教 材 系 列 何 福 贵 张 梅 编 著 机 械 工 业 出 版 社 IV 本 书 全 面 地 介 绍 了 网 页 制 作 技 术 及 其 相 关 理 论 全 书 共 分 12 章, 包 括 绪 论 网 站 的 创 建 与 管 理 网 页 基 本 元 素 实 现 网 页 页 面 布 局 实 现 表 单 的 应 用 CSS 与 模 板 使 用 Div 和 AP

More information

《linux从入门到精通》实验指导第三讲:文件及目录操作

《linux从入门到精通》实验指导第三讲:文件及目录操作 Web 交互开发 实验教学指导 实验二 :JavaScript 编程应用 一 实验目的 (5 分 ) 1 掌握 JavaScript 内置对象的使用 ; 2 掌握 JavaScript 事件的使用 ; 3 掌握 JavaScript 图像处理的方法 ; 4 理解 JavaScript 编程的思路 ; 5 掌握 JavaScript 程序执行的过程 二 实验环境 (5 分 ) 1 Windows XP/Windows

More information

SDK 概要 使用 Maven 的用户可以从 Maven 库中搜索 "odps-sdk" 获取不同版本的 Java SDK: 包名 odps-sdk-core odps-sdk-commons odps-sdk-udf odps-sdk-mapred odps-sdk-graph 描述 ODPS 基

SDK 概要 使用 Maven 的用户可以从 Maven 库中搜索 odps-sdk 获取不同版本的 Java SDK: 包名 odps-sdk-core odps-sdk-commons odps-sdk-udf odps-sdk-mapred odps-sdk-graph 描述 ODPS 基 开放数据处理服务 ODPS SDK SDK 概要 使用 Maven 的用户可以从 Maven 库中搜索 "odps-sdk" 获取不同版本的 Java SDK: 包名 odps-sdk-core odps-sdk-commons odps-sdk-udf odps-sdk-mapred odps-sdk-graph 描述 ODPS 基础功能的主体接口, 搜索关键词 "odpssdk-core" 一些

More information

untitled

untitled 1 .NET sln csproj dll cs aspx 說 料 料 利 來 料 ( 來 ) 利 [] [] 來 說 切 切 理 [] [ ] 來 說 拉 類 類 [] [ ] 列 連 Web 行流 來 了 不 不 不 流 立 行 Page 類 Load 理 Click 滑 料 Response 列 料 Response HttpResponse 類 Write 料 Redirect URL Response.Write("!!

More information

PowerPoint プレゼンテーション

PowerPoint プレゼンテーション Perl CGI 1 Perl CGI 2 Perl CGI 3 Perl CGI 4 1. 2. 1. #!/usr/local/bin/perl 2. print "Content-type: text/html n n"; 3. print " n"; 4. print " n"; 3. 4.

More information

Microsoft Word - 第3章.doc

Microsoft Word - 第3章.doc Java C++ Pascal C# C# if if if for while do while foreach while do while C# 3.1.1 ; 3-1 ischeck Test() While ischeck while static bool ischeck = true; public static void Test() while (ischeck) ; ischeck

More information

Microsoft Word - 最新正文.doc

Microsoft Word - 最新正文.doc 2 2 Web 2.0 Ajax StarTrackr! GPS RFID jquery JavaScript StarTrackr! JavaScript jquery 1 jquery jquery jquery JavaScript HTML jquery JavaScript jquery jquery jquery $(document).ready()! jquery jquery (document)

More information

關於本書 l 3 PhoneGap Appcelerator Titanium Sencha Touch (wrapper framework) Native App PhoneGap Build Native App Hybrid App Java Objective-C Android SDK

關於本書 l 3 PhoneGap Appcelerator Titanium Sencha Touch (wrapper framework) Native App PhoneGap Build Native App Hybrid App Java Objective-C Android SDK 2 l 跨裝置網頁設計 Android ios Windows 8 BlackBerry OS Android HTML 5 HTML 5 HTML 4.01 HTML 5 CSS 3 CSS 3 CSS 2.01 CSS 3 2D/3D PC JavaScript

More information

F477

F477 FrontPage & Flash 連 CSIE, NTU September 15, 2007 Outline September 15, 2007 Page 2 連 FrontPage September 15, 2007 Page 3 連 FTP Email FrontPage HTML tag September 15, 2007 Page 4 連 September

More information

13 根 据 各 种 网 络 商 务 信 息 对 不 同 用 户 所 产 生 的 使 用 效 用, 网 络 商 务 信 息 大 致 可 分 为 四 级, 其 中 占 比 重 最 大 的 是 ( A ) A 第 一 级 免 费 信 息 B 第 二 级 低 收 费 信 息 C 第 三 级 标 准 收 费

13 根 据 各 种 网 络 商 务 信 息 对 不 同 用 户 所 产 生 的 使 用 效 用, 网 络 商 务 信 息 大 致 可 分 为 四 级, 其 中 占 比 重 最 大 的 是 ( A ) A 第 一 级 免 费 信 息 B 第 二 级 低 收 费 信 息 C 第 三 级 标 准 收 费 助 理 电 子 商 务 考 试 真 题 试 题 第 一 部 分 : 理 论 部 分 一 单 项 选 择 题 1 ( B ) 是 信 息 系 统 的 核 心 组 成 部 分 A 逻 辑 模 型 B 数 据 库 C 概 念 模 型 D 以 上 全 部 2 ping www.163.com -t 中 参 数 t 的 作 用 是 :( A ) A 进 行 连 续 测 试 B 在 新 窗 口 中 显 示 C

More information

Microsoft Word - 改版式网页全文.doc

Microsoft Word - 改版式网页全文.doc 第 4 章 Dreamweaver CS3 高 级 篇 4.1 表 单 概 述 表 单 是 用 来 收 集 浏 览 者 的 用 户 名 密 码 E-mail 地 址 个 人 爱 好 和 联 系 地 址 等 用 户 信 息 的 输 入 区 域 集 合 浏 览 者 填 写 表 单 的 方 式 一 般 是 输 入 文 本 选 择 单 选 按 钮 或 复 选 框 以 及 从 下 拉 列 表 框 中 选 择

More information

RUN_PC連載_8_.doc

RUN_PC連載_8_.doc PowerBuilder 8 (8) Web DataWindow ( ) DataWindow Web DataWindow Web DataWindow Web DataWindow PowerDynamo Web DataWindow / Web DataWindow Web DataWindow Wizard Web DataWindow Web DataWindow DataWindow

More information

untitled

untitled 12-1 -2 VC# Web Blog 12-1 -1-1 12-1.1-1 C:\ ChartModuleSample_CSharp\Application\2001\ Files\ 4096 KB 120 Web.Config httpruntime maxrequestlength executiontimeout 12-2

More information

TopTest_Adminstrator.doc

TopTest_Adminstrator.doc 壹 前 言... 3 貳 系 統 簡 介... 4 一 TKB multimedia Top-Test 系 統 架 構...4 1. 使 用 者 介 面 層 (Presentation tier)...5 2. 商 業 邏 輯 層 (business logic tier)...5 3. 資 料 服 務 層 (data services tier)...5 二 TKB Multimedia Top-Test

More information

What Servlet

What Servlet 7 JSTL 1.1 JSTL JavaServer Pages Standard Tag Library 1.1 JSTL JCP(Java Community Process) Java Web Web JSTL EL Web Java (Scripting) JSTL URL U18N XML SQL JSTL JSTL 6 7-1 JSTL 1.1 简介 7-2 核心标签库 (Core tag

More information

JSP基础编程

JSP基础编程 JSP 基础编程 报告人 : 包亮 邮箱 :rslab@lzb.ac.cn HTTP 基础 HTTP is a simple, stateless protocol. A client, such as a web browser, makes a request, the web server responds, and the transaction is done. Client 发出一个请求

More information

设计模式 Design Patterns

设计模式 Design Patterns 丁勇 Email:18442056@QQ.com 学习目标 描述 JSP 表达式语言的语法 认识使用 JSP 表达式的优点 在 JSP 中使用表达式语言 表达式语言简介 5 1 EL 为表达式语言 由两个组开发 JSP 标准标签库专家组 JSP 2.0 专家组 JSP 表达式语言的语法 ${EL Expression} JSP EL 表达式用于以下情形 静态文本 标准标签和自定义标签 表达式语言简介

More information

设计模式 Design Patterns

设计模式 Design Patterns 丁勇 Email:18442056@QQ.com 学习目标 与客户端交互 客户端跟踪 与客户端交互客户端跟踪 1 与客户端交互 HTTP servlet 与客户端的交互 通过 service 方法处理客户端的请求 service 方法根据请求 (request) 类型的不同, 调用不同的方法 对于 GET 请求, 调用 doget( ) 方法进行处理 对于 POST 请求, 调用 dopost( )

More information

Microsoft Word - PHP7Ch01.docx

Microsoft Word - PHP7Ch01.docx PHP 01 1-6 PHP PHP HTML HTML PHP CSSJavaScript PHP PHP 1-6-1 PHP HTML PHP HTML 1. Notepad++ \ch01\hello.php 01: 02: 03: 04: 05: PHP 06:

More information

《linux从入门到精通》实验指导第三讲:文件及目录操作

《linux从入门到精通》实验指导第三讲:文件及目录操作 Web 交互开发 实验教学指导 实验六 : 文件 一 实验目的 (5 分 ) 1 掌握文件处理对象的相关操作; 2 了解文件打印的方法; 3 掌握 FileSystem API 的基本概念以及相关属性 方法与事件 ; 4 掌握 FileReader API 读取文件的内容的方法 ; 二 实验环境 (5 分 ) 1 Windows XP/Windows 7 操作系统的计算机 ; 2 局域网网络环境,

More information

PowerPoint 演示文稿

PowerPoint 演示文稿 按钮对象 (button) 当 JavaScript 读到 标记中的 type 属性值为 button 时, 自动建立一个按钮对象, 并将该对象放到表单对象的 elements 数组当中 按钮对象包括 : 普通按钮 (button) 提交按钮 (submit) 重置按钮 (reset) 1. 使用按钮对象的格式 document.forms[ 索引值 ].elements[ 索引值

More information

untitled

untitled 1 LinkButton LinkButton 連 Button Text Visible Click HyperLink HyperLink 來 立 連 Text ImageUrl ( ) NavigateUrl 連 Target 連 _blank _parent frameset _search _self 連 _top 例 sample2-a1 易 連 private void Page_Load(object

More information

PowerPoint 演示文稿

PowerPoint 演示文稿 Dalian MinZu University 实训单元 2 JSP 基础语法 李腾 信息与通信工程学院 目录 一 实训目的二 实训设备三 实训内容 一 实训目的 学习如何建立 JSP 页面, 实践 JSP 声明 表达式和注释 JSP 指令 JSP 动作等知识, 结合实际案例, 让学生进行知识的巩固 实训时长 : 2 课时 二 实训设备 PC 机 :Intel Core i3 CPU ; 4G 内存

More information

59 1 CSpace 2 CSpace CSpace URL CSpace 1 CSpace URL 2 Lucene 3 ID 4 ID Web 1. 2 CSpace LireSolr 3 LireSolr 3 Web LireSolr ID

59 1 CSpace 2 CSpace CSpace URL CSpace 1 CSpace URL 2 Lucene 3 ID 4 ID Web 1. 2 CSpace LireSolr 3 LireSolr 3 Web LireSolr ID 58 2016. 14 * LireSolr LireSolr CEDD Ajax CSpace LireSolr CEDD Abstract In order to offer better image support services it is necessary to extend the image retrieval function of our institutional repository.

More information

jsp

jsp JSP Allen Long Email: allen@huihoo.com http://www.huihoo.com 2004-04 Huihoo - Enterprise Open Source http://www.huihoo.com 1 JSP JSP JSP JSP MVC Huihoo - Enterprise Open Source http://www.huihoo.com 2

More information

ii Vue Bootstrap 4 ES 6 Vue Vue Bootstrap 4 ES 6 Vue 2 vue html vue html vue Vue HTML 5 CSS ES 6 HTML 5 CSS Visual Studio Code h

ii Vue Bootstrap 4 ES 6 Vue Vue Bootstrap 4 ES 6 Vue 2 vue html vue html vue Vue HTML 5 CSS ES 6 HTML 5 CSS Visual Studio Code h ii Vue Bootstrap 4 ES 6 Vue Vue Bootstrap 4 ES 6 Vue 2 vue010101.html vue010104.html vue0101 01 04 Vue HTML 5 CSS ES 6 HTML 5 CSS Visual Studio Code https://code.visualstudio.com/ Chrome XAMP Visual Studio

More information

付宝容器 jsapi 档 册 PDF 版本 本版本为实验版本, 为线下独 查看使, 受制于 成 PDF 程序的限制, 样式问题还没有很好的解决, 例如分 切图 代码 亮 推荐使 在线版本, 便实时查看 jsapi 运 效果 如需搜索, 使 阅读 PDF 软件 带功能即可 更多细节样式调整和 录索引探

付宝容器 jsapi 档 册 PDF 版本 本版本为实验版本, 为线下独 查看使, 受制于 成 PDF 程序的限制, 样式问题还没有很好的解决, 例如分 切图 代码 亮 推荐使 在线版本, 便实时查看 jsapi 运 效果 如需搜索, 使 阅读 PDF 软件 带功能即可 更多细节样式调整和 录索引探 付宝容器 jsapi 档 册 PDF 版本 本版本为实验版本, 为线下独 查看使, 受制于 成 PDF 程序的限制, 样式问题还没有很好的解决, 例如分 切图 代码 亮 推荐使 在线版本, 便实时查看 jsapi 运 效果 如需搜索, 使 阅读 PDF 软件 带功能即可 更多细节样式调整和 录索引探索建设中 成时间 : 2017-07-20 12:13:21 Since 8.6 定义键盘 定义键盘使

More information

附件2

附件2 附 件 2 辽 宁 省 普 通 高 等 学 校 本 科 优 势 特 色 专 业 申 报 书 专 业 名 称 : 软 件 工 程 专 业 代 码 : 080902 推 荐 学 校 ( 公 章 ): 大 连 交 通 大 学 推 荐 学 校 代 码 : 10150 专 业 带 头 人 : 梁 旭 联 系 电 话 ( 手 机 ): 13842899132 辽 宁 省 教 育 厅 制 2015 年 6 月 一

More information

untitled

untitled -JAVA 1. Java IDC 20 20% 5 2005 42.5 JAVA IDC JAVA 60% 70% JAVA 3 5 10 JAVA JAVA JAVA J2EE J2SE J2ME 70% JAVA JAVA 20 1 51 2. JAVA SUN JAVA J2EE J2EE 3. 1. CSTP CSTP 2 51 2. 3. CSTP IT CSTP IT IT CSTP

More information

第1章 在线考试系统

第1章  在线考试系统 ASP+SQL Server http://www.dearbook.com.cn/book/101885 http://www.china-pub.com/computers/common/info.asp?id=28801 http://www.douban.com/group/19963/ ASP ASP Web 1 1.1 1.2 1.2.1 1.2.2 1.2.3 1.2.4 1.3 1.4

More information

Microsoft Word - 第4章 Servlet开发—教学设计.doc

Microsoft Word - 第4章 Servlet开发—教学设计.doc 传智播客 JavaWeb 程序开发入门 教学设计 课程名称 : JavaWeb 程序开发入门 授课年级 : 2014 年级 授课学期 : 2014 学年第一学期 教师姓名 : 某某老师 2014 年 09 月 09 日 课题名称内容分析教学目标及基本要求重点及措施 计划第 4 章 Servlet 技术 6 课时学时随着 Web 应用业务需求的增多, 动态 Web 资源的开发变得越来越重要, 为此 Sun

More information

目 录 1. 业 务 流 程 系 统 开 发 面 临 的 挑 战 与 机 遇... 3 1.1 业 务 流 程 管 理... 4 2. 新 一 代 开 源 业 务 流 程 开 发 平 台 BPMX3... 5 2.1 BPMX3 是 什 么... 5 2.2 为 什 么 要 优 先 采 用 BPMX

目 录 1. 业 务 流 程 系 统 开 发 面 临 的 挑 战 与 机 遇... 3 1.1 业 务 流 程 管 理... 4 2. 新 一 代 开 源 业 务 流 程 开 发 平 台 BPMX3... 5 2.1 BPMX3 是 什 么... 5 2.2 为 什 么 要 优 先 采 用 BPMX BPMX3 技 术 白 皮 书 业 务 流 程 开 发 平 台 介 绍 目 录 1. 业 务 流 程 系 统 开 发 面 临 的 挑 战 与 机 遇... 3 1.1 业 务 流 程 管 理... 4 2. 新 一 代 开 源 业 务 流 程 开 发 平 台 BPMX3... 5 2.1 BPMX3 是 什 么... 5 2.2 为 什 么 要 优 先 采 用 BPMX3... 5 2.2.1 BPMX3

More information

2.4 Selenium Python Selenium Selenium Selenium Selenium pip install selenium Chrome WebDriver Google Chrome (Linux, Mac, Windows) Chrome WebDriv

2.4 Selenium Python Selenium Selenium Selenium Selenium pip install selenium Chrome WebDriver Google Chrome (Linux, Mac, Windows) Chrome WebDriv Chapter 02 大數據資料爬取與分析 Python Python Requests BeautifulSoup Regular Expression Selenium Pandas Python 2.4 Selenium Python 2.4.1 Selenium Selenium Selenium Selenium pip install selenium Chrome WebDriver

More information

untitled

untitled 1 行 行 行 行.NET 行 行 類 來 行 行 Thread 類 行 System.Threading 來 類 Thread 類 (1) public Thread(ThreadStart start ); Name 行 IsAlive 行 行狀 Start 行 行 Suspend 行 Resume 行 行 Thread 類 (2) Sleep 行 CurrentThread 行 ThreadStart

More information

Microsoft Word - JavaWeb程序开发入门—教学大纲.doc

Microsoft Word - JavaWeb程序开发入门—教学大纲.doc JavaWeb 程序开发入门 课程教学大纲 ( 课程英文名称 ) 课程编号 : 201409210011 学分 : 5 学分学时 : 54 学时 ( 其中 : 讲课学时 :38 上机学时 :16) 先修课程 :Java 基础入门 MySQL 数据库入门后续课程 :JavaWeb 程序开发进阶教程适用专业 : 信息及其计算机相关专业开课部门 : 计算机系 一 课程的性质与目标 JavaWeb 程序开发入门

More information

获取 Access Token access_token 是接口的全局唯一票据, 接入方调用各接口时都需使用 access_token 开发者需要进行妥善保存 access_token 的存储至少要保留 512 个字符空间 access_token 的有效期目前为 2 个小时, 需定时刷新, 重复

获取 Access Token access_token 是接口的全局唯一票据, 接入方调用各接口时都需使用 access_token 开发者需要进行妥善保存 access_token 的存储至少要保留 512 个字符空间 access_token 的有效期目前为 2 个小时, 需定时刷新, 重复 获取 Access Token access_token 是接口的全局唯一票据, 接入方调用各接口时都需使用 access_token 开发者需要进行妥善保存 access_token 的存储至少要保留 512 个字符空间 access_token 的有效期目前为 2 个小时, 需定时刷新, 重复 获取将导致上次获取的 access_token 失效 接入方可以使用 AppID 和 AppSecret

More information

南華大學數位論文

南華大學數位論文 1 1 7 11 12 15 1 2 3 1 1998 9 249 2 1986 11 3 1974 4 17 3 1987 3 2 4 1980 7 1 2 5 6 7 8 5 1999 1994 1995 1999 6 1992 1 196 206 7 1952 1954 6202 231 10 8 9 10 12 13 14 1994 11 75 9 1249 10 883 11 1252

More information

Microsoft PowerPoint - 08-Session-Tracking-Chinese.ppt

Microsoft PowerPoint - 08-Session-Tracking-Chinese.ppt 2004 Marty Hall 会话跟踪 JSP, Servlet, & Struts Training Courses: http://courses.coreservlets.com Available in US, China, Taiwan, HK, and Worldwide 2 JSP and Servlet Books from Sun Press: http://www.coreservlets.com

More information

PrintWriter s = new PrintWriter(writer); ex.printstacktrace(s); mv.addobject("exception", writer.tostring()); mv.setviewname("error"); return

PrintWriter s = new PrintWriter(writer); ex.printstacktrace(s); mv.addobject(exception, writer.tostring()); mv.setviewname(error); return 本章学习目标 小风 Java 实战系列教程 SpringMVC 异常处理 SpringMVC 文件上传 SpringMVC 处理 JSON 格式数据 SpringMVC 拦截器 SpringMVC 对 restful 风格的支持 1. SpringMVC 异常处理 1.1. @ExceptionHandler 注解处理异常 @ExceptionHandler 该注解使用在异常处理方法上面 1.1.1.

More information

Microsoft PowerPoint - P766Ch09.ppt

Microsoft PowerPoint - P766Ch09.ppt PHP5&MySQL 程式設計 第 9 章在網頁之間傳遞資訊 9-1 蒐集網頁上的資訊 9-1-1 建立表單一 決定要蒐集的資訊二 建立表單三 撰寫表單處理程式 單行文字方塊 多行文字方塊 選擇鈕 核取方塊 下拉式功能表 按鈕 密碼欄位 ... 標籤 ACCEPT-CHARSET="... CHARSET="... ACCEPT="... ACTION="URL URL"

More information

优迈科技教学大纲2009版本

优迈科技教学大纲2009版本 java 软 件 工 程 师 培 训 教 学 大 纲 1 JAVA 软 件 工 程 师 培 训 教 学 大 纲 深 圳 软 件 园 人 才 实 训 基 地 2009 年 3 月 目 录 java 软 件 工 程 师 培 训 教 学 大 纲 2 教 学 阶 段...3 第 一 章 JAVA 起 步...3 第 二 章 面 向 对 象 的 编 程...4 第 三 章 数 据 结 构 IO 线 程 网 络...5

More information

Guava学习之Resources

Guava学习之Resources Resources 提供提供操作 classpath 路径下所有资源的方法 除非另有说明, 否则类中所有方法的参数都不能为 null 虽然有些方法的参数是 URL 类型的, 但是这些方法实现通常不是以 HTTP 完成的 ; 同时这些资源也非 classpath 路径下的 下面两个函数都是根据资源的名称得到其绝对路径, 从函数里面可以看出,Resources 类中的 getresource 函数都是基于

More information

<4D6963726F736F667420506F776572506F696E74202D20332D322E432B2BC3E6CFF2B6D4CFF3B3CCD0F2C9E8BCC6A1AAD6D8D4D8A1A2BCCCB3D0A1A2B6E0CCACBACDBEDBBACF2E707074>

<4D6963726F736F667420506F776572506F696E74202D20332D322E432B2BC3E6CFF2B6D4CFF3B3CCD0F2C9E8BCC6A1AAD6D8D4D8A1A2BCCCB3D0A1A2B6E0CCACBACDBEDBBACF2E707074> 程 序 设 计 实 习 INFO130048 3-2.C++ 面 向 对 象 程 序 设 计 重 载 继 承 多 态 和 聚 合 复 旦 大 学 计 算 机 科 学 与 工 程 系 彭 鑫 pengxin@fudan.edu.cn 内 容 摘 要 方 法 重 载 类 的 继 承 对 象 引 用 和 拷 贝 构 造 函 数 虚 函 数 和 多 态 性 类 的 聚 集 复 旦 大 学 计 算 机 科 学

More information

IsPostBack 2

IsPostBack 2 5 IsPostBack 2 TextBox 3 TextBox TextBox 4 TextBox TextBox 1 2 5 TextBox Columns MaxLength ReadOnly Rows Text TextMode TextMode MultiLine TextMode MultiLine True False TextMode MultiLine Password MulitLine

More information

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile..

WebSphere Studio Application Developer IBM Portal Toolkit... 2/21 1. WebSphere Portal Portal WebSphere Application Server stopserver.bat -configfile.. WebSphere Studio Application Developer IBM Portal Toolkit... 1/21 WebSphere Studio Application Developer IBM Portal Toolkit Portlet Doug Phillips (dougep@us.ibm.com),, IBM Developer Technical Support Center

More information

停止混流接口 请注意 : 该功能需要联系 ZEGO 技术支持开通 1 接口调用说明 http 请求方式 : POST/FORM, 需使用 https 正式环境地址 access_token=access_token (http

停止混流接口 请注意 : 该功能需要联系 ZEGO 技术支持开通 1 接口调用说明 http 请求方式 : POST/FORM, 需使用 https 正式环境地址   access_token=access_token (http 停止混流接口 请注意 : 该功能需要联系 ZEGO 技术支持开通 1 接口调用说明 http 请求方式 : POST/FORM, 需使用 https 正式环境地址 https://webapi.zego.im/cgi/stop-mix? access_token=access_token (https://webapi.zego.im/cgi/stop-mix? access_token=access_token)

More information

第一章 章标题-F2 上空24,下空24

第一章 章标题-F2 上空24,下空24 Web 9 XML.NET Web Web Service Web Service Web Service Web Service Web Service ASP.NET Session Application SOAP Web Service 9.1 Web Web.NET Web Service Web SOAP Simple Object Access Protocol 9.1.1 Web Web

More information

CHAPTER 1

CHAPTER 1 CHAPTER 1 1-1 System Development Life Cycle; SDLC SDLC Waterfall Model Shelly 1995 1. Preliminary Investigation 2. System Analysis 3. System Design 4. System Development 5. System Implementation and Evaluation

More information

untitled

untitled ADF Web ArcGIS Server ADF GeocodeConnection control 4-2 Web ArcGIS Server Application Developer Framework (ADF).NET interop semblies.net Web ADF GIS Server 4-3 .NET ADF Web Represent the views in ArcMap

More information

<4D6963726F736F667420576F7264202D20BBF9D3DA416E64726F6964C6BDCCA8B5C4B5E7D7D3C5C4C2F4CFB5CDB32E646F63>

<4D6963726F736F667420576F7264202D20BBF9D3DA416E64726F6964C6BDCCA8B5C4B5E7D7D3C5C4C2F4CFB5CDB32E646F63> 基 于 Android 平 台 的 电 子 拍 卖 系 统 摘 要 本 电 子 拍 卖 系 统 其 实 就 是 一 个 电 子 商 务 平 台, 只 要 将 该 系 统 部 署 到 互 联 网 上, 客 户 都 可 以 在 该 系 统 上 发 布 想 出 售 的 商 品, 也 可 以 对 拍 卖 中 的 商 品 参 与 竞 价 整 个 过 程 无 须 人 工 干 预, 由 系 统 自 动 完 成 本

More information

Microsoft PowerPoint - 03-Form-Data-Chinese.ppt

Microsoft PowerPoint - 03-Form-Data-Chinese.ppt 2004 Marty Hall 客户请求的处理 : 表单数据 JSP, Servlet, & Struts Training Courses: http://courses.coreservlets.com Available in US, China, Taiwan, HK, and Worldwide 2 JSP and Servlet Books from Sun Press: http://www.coreservlets.com

More information

设计模式 Design Patterns

设计模式 Design Patterns 丁勇 Email:18442056@QQ.com 学习目标 理解 Struts 框架的工作原理 掌握使用 Struts 框架开发 Web 应用的基本步骤 熟悉 MyEclipse 对 Struts 开发的支持 Web 框架事实标准 : Web 框架的事实标准 http://struts.apache.org Java EE 主流技术趋势图 主流 Web 框架趋势图 使用 Struts 实现加法器 使用开发的

More information

ebook60-13

ebook60-13 13 H T M L F l a s h J a v a < i m g > 13.1 H T M L A c t i v e X H T M L < i m g > HTML 4.0 < o b j e c t > < / o b j e c t > 13.1.1 H T M L < o b j e c t > c l a s s i d d a t a < p a r a m > 1.

More information

ebook193-1

ebook193-1 1 Domino Web 1.1 D o m i n o We b, D o m i n o N e t s c a p e O r a c l e We b D o m i n o We b Lotus Notes, D o m i n o D o m i n o We b D o m i n o N o t e s N o t e Domino We b D o m i n o D o m i

More information

使用 Eclipse 开发 Java EE 应用 (Web 应用 ) 这里以开发一个简单的 Web 应用为例, 介绍使用 Eclipse 开发 Java EE 应用的一般步 骤 此处使用的 Eclipse 是 Eclipse IDE for Java EE Developers; 如果是使用的其他

使用 Eclipse 开发 Java EE 应用 (Web 应用 ) 这里以开发一个简单的 Web 应用为例, 介绍使用 Eclipse 开发 Java EE 应用的一般步 骤 此处使用的 Eclipse 是 Eclipse IDE for Java EE Developers; 如果是使用的其他 使用 Eclipse 开发 Java EE 应用 (Web 应用 ) 这里以开发一个简单的 Web 应用为例, 介绍使用 Eclipse 开发 Java EE 应用的一般步 骤 此处使用的 Eclipse 是 Eclipse IDE for Java EE Developers; 如果是使用的其他 Eclipse 插件 ( 比如 MyEclipse 插件 ), 其开发方式和步骤可能略有差异和不同 在该例中,

More information

ASP 電子商務網頁設計

ASP 電子商務網頁設計 Flash Flash CSIE, NTU December 22, 2007 Outline & Flash National Taiwan University December 22, 2007 Page 2 Outline & Flash National Taiwan University December 22, 2007 Page 3 Course Introduction (1/3)

More information

ebook4-12

ebook4-12 12 CGI C G I (Common Gateway Interface) We b P H P C G I H T M L H T T P H T M L We b H T T P We We b I n t e r n e t R F C h t t p : / / w w w. i e t f. o rg / P H P C G I C G A p a c h e C G I P H P

More information

<ADB6ADB1C25EA8FAA6DB2D4D56432E706466>

<ADB6ADB1C25EA8FAA6DB2D4D56432E706466> packages 3-31 PART 3-31 03-03 ASP.NET ASP.N MVC ASP.NET ASP.N MVC 4 ASP.NET ASP.NE MVC Entity Entity Framework Code First 2 TIPS Visual Studio 20NuGetEntity NuGetEntity Framework5.0 CHAPTER 03 59 3-3-1

More information

Java java.lang.math Java Java.util.Random : ArithmeticException int zero = 0; try { int i= 72 / zero ; }catch (ArithmeticException e ) { // } 0,

Java java.lang.math Java Java.util.Random : ArithmeticException int zero = 0; try { int i= 72 / zero ; }catch (ArithmeticException e ) { // } 0, http://debut.cis.nctu.edu.tw/~chi Java java.lang.math Java Java.util.Random : ArithmeticException int zero = 0; try { int i= 72 / zero ; }catch (ArithmeticException e ) { // } 0, : POSITIVE_INFINITY NEGATIVE_INFINITY

More information

PowerPoint 演示文稿

PowerPoint 演示文稿 友乾营 报表的 SQL 植入风险 规避风险 : 让你的报表变的安全起来 SQL 植入的概念 恶意的 SQL 归根结底 : 执行了不该允许执行的 SQL 命令, 达到非法的目的 常见案例 骗过登录验证非法获取账号信息篡改 删除数据 为什么存在 SQL 植入 植入原理 如何攻击 特殊的输入参数 未处理特殊字符 -- # 数据库配置不合理 植入原理 : 案例 1, 特殊输入参数 union or 猜表名

More information

WebEx 一键集成 1 文档目的 Web 集成 URL API 语法 启会 加会 调用 移动集成 wbx schema 调用 取得 sessionticket...4

WebEx 一键集成 1 文档目的 Web 集成 URL API 语法 启会 加会 调用 移动集成 wbx schema 调用 取得 sessionticket...4 WebEx 一键集成 1 文档目的...1 2 Web 集成...1 2.1 URL API 语法...1 2.2 启会...2 2.3 加会...3 2.4 调用...3 3 移动集成...3 3.1 wbx schema...3 3.2 调用...4 4 取得 sessionticket...4 1 文档目的 本文档目的是, 让用户了解如何在 Web 端和移动端, 一键调用 WebEx app,

More information

17 Chapter Video/Audio API 17-1 <video> <audio> 17-2 <video> <audio>

17 Chapter Video/Audio API 17-1 <video> <audio> 17-2 <video> <audio> 17 Chapter 17-1 17-2 網頁程式設計 17-1 API HTMLMediaElement width heightposter ( HTML 5 http://www.w3.org/tr/html5/) error

More information

Microsoft Word - Hibernate与Struts2和Spring组合指导.doc

Microsoft Word - Hibernate与Struts2和Spring组合指导.doc 1.1 组合 Hibernate 与 Spring 1. 在 Eclipse 中, 新建一个 Web project 2. 给该项目增加 Hibernate 开发能力, 增加 Hibernate 相关类库到当前项目的 Build Path, 同时也提供了 hibernate.cfg.xml 这个配置文件 3. 给该项目增加 Spring 开发能力, 增加 spring 相关类库到当前项目的 Build

More information

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc

Fun Time (1) What happens in memory? 1 i n t i ; 2 s h o r t j ; 3 double k ; 4 char c = a ; 5 i = 3; j = 2; 6 k = i j ; H.-T. Lin (NTU CSIE) Referenc References (Section 5.2) Hsuan-Tien Lin Deptartment of CSIE, NTU OOP Class, March 15-16, 2010 H.-T. Lin (NTU CSIE) References OOP 03/15-16/2010 0 / 22 Fun Time (1) What happens in memory? 1 i n t i ; 2

More information

概述

概述 OPC Version 1.6 build 0910 KOSRDK Knight OPC Server Rapid Development Toolkits Knight Workgroup, eehoo Technology 2002-9 OPC 1...4 2 API...5 2.1...5 2.2...5 2.2.1 KOS_Init...5 2.2.2 KOS_InitB...5 2.2.3

More information

新・解きながら学ぶJava

新・解きながら学ぶJava 481! 41, 74!= 40, 270 " 4 % 23, 25 %% 121 %c 425 %d 121 %o 121 %x 121 & 199 && 48 ' 81, 425 ( ) 14, 17 ( ) 128 ( ) 183 * 23 */ 3, 390 ++ 79 ++ 80 += 93 + 22 + 23 + 279 + 14 + 124 + 7, 148, 16 -- 79 --

More information

untitled

untitled PowerBuilder Tips 利 PB11 Web Service 年度 2 PB Tips PB9 EAServer 5 web service PB9 EAServer 5 了 便 web service 來說 PB9 web service 力 9 PB11 release PB11 web service 力更 令.NET web service PB NVO 論 不 PB 來說 說

More information