struts2的標籤庫:
<%@ taglib prefix="s" uri="/struts-tags" %>
JSTL中C標籤庫:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
三.補充知識點
替換request.getParameter("test")————EL表達式${param.test};
EL表達式,一般用在獲取後臺的值,可以獲得一個值,也可以獲得一個對象,同樣也可以是對象的屬性。
比如:後臺有一個int類型的數int a = 1;
前臺可以寫${a}
後臺如果是一個user對象,裏面有name 和 id 兩個屬性,那麼前臺可以寫${user.name} ${user.id}