<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<jsp:forward page="calulate.jsp">
<jsp:param name="num1" value="https://bbs.csdn.net/topics/1" />
</jsp:forward>
</body>
</html>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%!String str; %>
<%
str=request.getParameter("num1");
%>
<P>您傳過來的數值是:<BR>
<%=str%>
</body>
</html>
結果:
您傳過來的數值是:
null
這是什么問題?
轉載請註明出處,本文鏈接:https://www.uj5u.com/qianduan/163846.html
標籤:其他
上一篇:為什么各種云服務器,網站域名沒有備案為什么就不能訪問?
下一篇:請問 文中代碼是純手工 撰寫嗎
