# shop
**Repository Path**: study_1/shop
## Basic Information
- **Project Name**: shop
- **Description**: 使用java EE开发的demo示例,基于jdk8,servlet-api3.1,apache-commons
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2019-04-26
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
使用java EE开发的demo示例
- 基于jdk8
- servlet-api3.1
- apache-commons
动态引入和静态引入
- 静态是已经在翻译的文件Servlet里
- 动态的是在运行的时候才会生成的内容,运行的时候,可以临时变化的就是动态的。
```$xslt
<%@ include file = frangmentURL%> 静态的
动态的
```
req.getContextPath()去到的是webRoot目录
```aidl
<%=request.getContextPath() %>
${pageContext.request.contextPath}
```
jstl el
```
servlet中request.setAttribute("list", list)
jsp页面部分 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
| ${list.getName()} |
${list.getChinese()} |
${list.getMath()} |
${list.getEnglish()} |
```