JSP 页面传参和接受参数

<%@ page language="java" contentType="text/html; charset=GBK"
    pageEncoding="GBK"%>
<!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=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<jsp:forward page="HelloWorld.jsp">
<jsp:param value="helloWorld" name="pm"/>
</jsp:forward>
</body>
</html>

<!-- 页面传递链接地址及参数时,用动态服务器控件。接受参数时,用<%=request.getParameter("pm")%> -->

 

posted @ 2013-09-12 13:47  fang_beny  阅读(891)  评论(0编辑  收藏  举报