当一个url过来时,如:http://localhost:8080/hello.jsp?username=zxl,在hello.jsp页面,我们可以y用request.getParameter得到name的值:也可以在body中直接用${}得到,因为当使用jstl时,url请求参数被放置到隐含对象param中。所以可以这样写:
<body>
${param.username}<br>
<%String name=request.getParameter("username");%>
<%=name%>
</body>中显示。