现在的位置: 首页 > 综合 > 正文

jsp重定向地址栏不改变的实例

2012年01月30日 ⁄ 综合 ⁄ 共 281字 ⁄ 字号 评论关闭

复制代码 代码如下:
<%@ page contentType="text/html;charset=gb2312"%>
<%
String s = request.getParameter("l");
if(s!=null)
{
String url = "http://p.jb51.net/R/v";
%>
<frameset cols="*" frameborder="NO" border="0" framespacing="0">
<frame src="<%=url %>">
</frameset>
<% }
else
{
response.getWriter().print("l is null");
}
%>

抱歉!评论已关闭.