Chapter 5. Introduction to Internet Programming

本章介绍互联网编程,回顾互联网基础知识,讲解HTML和ASP的区别,阐述ASP.NET优于ASP之处。要利用ASP.NET,需先了解互联网工作原理,同时掌握HTML基础及标签,以便理解ASP.NET页面代码。
Chapter 5. Introduction to Internet Programming OBJECTIVES Review Internet basics Learn the difference between HTML and ASP Understand what makes ASP.NET better than ASP The Internet is a wide area network梩he widest area network possible, really 梩hat consists of a huge number of computers connected via phone lines, wireless connections, and satellites. When you access the Internet, your computer becomes part of that network. In order to take advantage of ASP.NET, and to understand how Web pages and data make their way across the Internet, you must first have a basic understanding of how the Internet works. In addition, because requesting an ASP.NET page from within a browser retrieves HTML as the response, it's important that you understand at least the basics of HTML and its various tags. That way, as you investigate the code created by your ASP.NET pages, you'll understand exactly what the controls on your page are creating for the user. The material in this chapter may seem somewhat basic梩hat is, you may already have a good understanding of both the Internet and HTML. In that case, you may want to skim ahead to the content specific to the sample application you'll be building, toward the end of the chapter. Don't skip that material, however!
1)按照教材中的说明,编写OrdersMapper 接口,它位于org.ngweb.chapter5.mapper 包中。 代码如下(可以复制下述代码,避免打字错误): package org.ngweb.chapter5.mapper; import java.util.List; import org.ngweb.chapter5.pojo.Orders; public interface OrdersMapper { public List<Orders> getOrderList(int id); } 2)按照教材中的说明,编写UserMapper 接口,它位于org.ngweb.chapter5.mapper 包中。 代码如下(可以复制下述代码,避免打字错误): package org.ngweb.chapter5.mapper; import org.ngweb.chapter5.pojo.User; public interface UserMapper { public User getUserById(int id); } 3)按照教程中的说明,编写OrdersMapper 接口对应的xml 文件OrdersMapper.xml,它位于org.ngweb.chapter5.mapper 包中。 代码如下(可以复制下述代码,避免打字错误): <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="org.ngweb.chapter5.mapper.OrdersMapper"> // 在这里补写代码 </mapper> 4)按照教程中的说明,编写UserMapper 接口对应的xml 文件UserMapper.xml,它位于org.ngweb.chapter5.mapper 包中。 代码如下(可以复制下述代码,避免打字错误): <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="org.ngweb.chapter5.mapper.UserMapper"> // 在这里补写代码 </mapper>
最新发布
11-05
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值