<jsp:include和<@include的疑问? <jsp:include flush="true" page="/inc/header.jsp">页面显示会出现乱码,但是用<@include file="/inc/header.jsp">显示则正常 什么原因 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <%@ page language="java" contentType="text/html; charset=GBK" import="java.util.*"%><html><head><title>欢迎学习JSP</title></head><body><%Calendar c1=Calendar.getInstance();c1.setTime(new Date());int month=c1.get(Calendar.MONTH);%> 当前月份是: <%=month %> <br><%--<%@ include file="hello.jsp"%>--%><jsp:include page="hello.jsp" flush="true"%></body></html>不是乱码,直接报错来着 你的动态参数导入时就有点问题,为什么动态导入时就没有file属性了?。。 终于找到错误了 总是犯这种低级错误啊 一个小地方折腾这么久<jsp:include page="hello.jsp" flush="true"%>改为<jsp:include page="hello.jsp" flush="true"/> 江湖救急,jsp连接servlet出错了~~ 中文乱码问题 jsp登陆密码验证 java串口测试请教高手 关于页面的一些问题(不知道是跳转出问题,还是其他出问题) 在JSP里怎么实现象.NET那样的事件处理 想学JSP 请大家介绍相关好的书藉!谢谢 Hibernate 和 struts有什么区别啊 请问如何替换制定文件中两个标记之间的内容,谢谢! 一个简单的JSP练习 转:如何修改mysql的my.ini文件? jquery 异步验证。
import="java.util.*"%>
<html>
<head>
<title>欢迎学习JSP</title>
</head>
<body>
<%
Calendar c1=Calendar.getInstance();
c1.setTime(new Date());
int month=c1.get(Calendar.MONTH);
%>
当前月份是:
<%=month %>
<br>
<%--<%@ include file="hello.jsp"%>--%>
<jsp:include page="hello.jsp" flush="true"%>
</body>
</html>不是乱码,直接报错来着
<jsp:include page="hello.jsp" flush="true"%>
改为
<jsp:include page="hello.jsp" flush="true"/>