请给出一个JSTL的helloWorld的最简单例子

helloWorld:
注意当做下面的项目时,需要导入两个包:jstl.jar和standard.jar。其它的就是单个单个的jsp了,比较简单。
马克- to-win:马克 java社区:防盗版实名手机尾号: 73203。



例 2.2.1


hello.jsp:

<%@ page contentType="text/html; charset=GBK" %>
<!--why here is http://java.sun.com/jsp/jstl/core,because lib/standard.jar/c.tld has a statement,
  <uri>http://java.sun.com/jsp/jstl/core</uri>, you change there, then here you can also change.
  I tried before. in internal tomcat you can not cahnge, but in the external tomcat,
  you can change the content of c.tld.
-->
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page import="java.util.*"%>
<html>
<body>
      <c:out value="你好,马克-to-win!"/><br>
</body>
</html>


运行jsp后,浏览器中输出结果是:

你好,马克-to-win!