<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>$Title$</title>
</head>
<body>
<%
String title="关于我们";
String body="这是学习JAVA技术的社区;<br>访问https://blog.csdn.net/weixin_39593940";
Date now=new Date();
String day=String.format("%tY年%tm月%td日",now,now,now);
out.print("<h2>"+title+"</h2>");
out.print(body);
out.print("<p>"+day+"</p>");
%>
</body>
</html>
【汇智学堂】jsp语法-java脚本
原创
©著作权归作者所有:来自51CTO博客作者wx622c0209dfb71的原创作品,请联系作者获取转载授权,否则将追究法律责任
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章
-
Java使用Lua脚本案例
java使用lua快速入门
redis lua java -
【汇智学堂】SpringbootHello
IDEA
restful -
【汇智学堂】JSP中使用连接池
使用连接池使用传统的数据库连接方式(通过DriverManager类)时,一个数据库连接对象均为
jsp 连接池 数据库连接 bc java -
【汇智学堂】ETCD简介
ETCD简介etcd是一个可靠的分布式KV存储,其底层使用Raft算法保证一致性,主要用于
etcd zookeeper 服务发现 配置信息 提供方