JSP页面参数详解
2009-12-11 16:57
239 查看
<%@ page language="java" import="java.util.*" pageEncoding="GBK"%> <% // 输出相对工程目录:/myBlog String path = request.getContextPath(); // 输出绝对工程目录:http://localhost:8080/myBlog/ 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>主页</title> <!-- 禁止浏览器从本地机的缓存中调阅页面内容 --> <meta http-equiv="pragma" content="no-cache"> <!-- 指示请求或响应消息不能缓存 --> <meta http-equiv="cache-control" content="no-cache"> <!-- 指定网页在缓存中的过期时间,一旦网页过期,必须到服务器上重新调阅 --> <meta http-equiv="expires" content="0"> <!-- 本网页的关键信息,为搜索引擎提供关键字("Keywords") --> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"> <!-- 网页描述 --> <meta http-equiv="description" content="This is heyuanbo's page"> <!-- 本网页的作者 --> <meta name="author" content="贺圆波"> <!-- 每3秒钟刷新一次页面 --> <!-- <Meta http-equiv="refresh" content="3"> --> <!-- 3秒钟后跳转到指定页面 --> <!-- <Meta http-equiv="refresh" content="3; url=http://www.baidu.com/">--> <!-- <link rel="stylesheet" type="text/css" href="styles.css" mce_href="styles.css">s --> <script type="text/javascript" src="common.js" mce_src="common.js" /> </head> <body> This is heyuanbo's page </body> </html>
相关文章推荐
- jsp页面中获取servlet请求中的参数的办法详解
- JAVAEE中从JSP页面向Action传递中文参数
- struts2中action如何获取Session,request,jsp页面参数等等信息的值
- 五种JSP页面跳转方法详解
- 使用struts2提交jsp页面表单时参数中汉字乱码的问题
- 皕杰报表在JSP页面中如何传递参数和变量
- 五种JSP页面跳转方法详解
- JSP页面-------${fn:}内置函数常用()的详解
- 【转】(超详细)jsp与servlet之间页面跳转及参数传递实例
- jsp页面间传递参数 中文乱码问题(zz)
- Jsp页面在URL中传递参数会出现乱码
- PHP页面间参数传递的四种方法详解
- Strut2在Action-Result的配置文件内转到jsp页面时用URL传递参数
- jsp如何获取url中的参数并且防止中文乱码以及如何先执行servletzai执行jsp页面
- jsp页面间的传值方法,jsp 获取 url参数
- struts2解决jsp与jsp页面之间参数的传递
- 在jsp页面如何获得url参数
- spring MVC 参数映射JSP页面
- 五种JSP页面跳转方法详解
- JSP父页面传参数到子页面及接收示例