<%@ page import="java.lang.Double"%>
<%@ page language="java" import="java.util.*" %>
<%@ page contentType="text/html;charset=Big5"%>
<taglib prefix="fmt" uri= "http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'MyJsp.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<%
request.setAttribute("now",new Date());
request.setAttribute("num",new Double(23.45));
%>
<br>
<fmt:bundle basename="Resource">
<fmt:message key="Str">
<fmt:param value="welcome!!!">
<fmt:param value="${now}"/>
<fmt:param value="${now}"/>
<fmt:param value="${now}"/>
</fmt:message>
</fmt:bundle>
</body>
</html>
在class里面也添加了资源文件了 可是一直显示空白页面!!
不报错都不知道哪里出错 郁闷啊
那位老大能帮帮忙 不胜感激
<%@ page language="java" import="java.util.*" %>
<%@ page contentType="text/html;charset=Big5"%>
<taglib prefix="fmt" uri= "http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'MyJsp.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<%
request.setAttribute("now",new Date());
request.setAttribute("num",new Double(23.45));
%>
<br>
<fmt:bundle basename="Resource">
<fmt:message key="Str">
<fmt:param value="welcome!!!">
<fmt:param value="${now}"/>
<fmt:param value="${now}"/>
<fmt:param value="${now}"/>
</fmt:message>
</fmt:bundle>
</body>
</html>
在class里面也添加了资源文件了 可是一直显示空白页面!!
不报错都不知道哪里出错 郁闷啊
那位老大能帮帮忙 不胜感激
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货