Java开发工具设置记录
新建工程后很多东西都要重新配置,很烦,集中记录一下
如何在MyEclipse中设置jsp页面为默认utf-8编码?
直接在Window–>preference搜索到JSP,把编码改成UTF-8
如何使用添加EL和JSTL:
- EL和JSTL库:jstl.jar、standard.jar
- 然后在JSP开头加上
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
举例:JSTL循环操作:
<c:forEach items="${list }" var="stu">
<tr align="center">
<td>${stu.sid }</td>
<td>${stu.sname }</td>
<td>${stu.gender }</td>
<td>${stu.phone }</td>
<td>${stu.birthday }</td>
</c:forEach>