前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >请给出一个JSTL的helloWorld的最简单例子

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

作者头像
马克java社区
修改2021-07-15 18:00:02
2740
修改2021-07-15 18:00:02
举报
文章被收录于专栏:java大数据

1)helloWorld:

注 意当做下面的项目时,需要导入两个包:jstl.jar和standard.jar。其它的就是单个单个的jsp了,比较简单。

例 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>

更多请看:https://blog.csdn.net/qq_44594371/article/details/103183681

本文系转载,前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文系转载前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档