jsp页面向html页面传参
来源:互联网 发布:软件开发立项申请书 编辑:程序博客网 时间:2024/06/01 09:08
1.jsp
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html> <head> <title>jsp页面向html页面传值</title><meta http-equiv="pragma" content="no-cache"><meta http-equiv="cache-control" content="no-cache"><meta http-equiv="expires" content="0"> <meta http-equiv="keywords" content="keyword1,keyword2,keyword3"><meta http-equiv="description" content="This is my page"> </head> <body> <a href="events.html?name=张三&pwd=suyunlong">转到</a> </body></html>
2.html
<!DOCTYPE html><html> <head> <title>接收参数</title> <meta name="keywords" content="keyword1,keyword2,keyword3"> <meta name="description" content="this is my page"> <meta name="content-type" content="text/html; charset=UTF-8"> <script type="text/javascript"> function getURLParameter(name) { return decodeURIComponent((new RegExp("[?|&]"+name+"="+"([^&;]+?)(&|#|;|$)").exec( location.search)||[,""])[1].replace(/\s+/g,"%20"))||null;} function init() { var name=getURLParameter("name"); var pwd=getURLParameter("pwd"); alert(name+","+pwd); } </script> </head> <body onload="init()"> </body></html>
0 0
- jsp页面向html页面传参
- 从一个jsp页面向另一个jsp页面传值
- 过滤器中向所有JSP页面插入html代码
- jsp(out对象可以向html页面中输出)
- jsp 页面转成 html 页面
- js 向jsp页面传值
- jsp html 页面DOCTYPE
- web页面(html,jsp)
- jsp底层页面重向
- jsp页面向servlet传值
- jsp页面传参
- 将JSP页面完美转换HTML页面
- jsp页面包括html页面出现乱码
- jsp页面向jsp页面传递中文变量
- jsp,html 清除页面缓存
- html转jsp页面变形
- JSP和HTML关闭页面
- jsp生成静态html页面
- 第5周项目2:游戏中的角色类(2)
- 水仙花数
- 第五届河南省大学生程序设计竞赛 题解
- eclipse 中maven编译出现问题-Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOM
- Python基础:容器类型和简单的语法
- jsp页面向html页面传参
- onAttach(Context) 在Fragment中没有调用
- CodeForces 626C Block Towers (水,读题)
- 关于一些自己的博客的介绍
- 第5周项目1—三角形类雏形(4、默认参数的构造函数)
- android 基于矩阵的图形变换--原理简介
- 23种设计模式
- JS基本知识
- 第5周项目1—三角形类雏形(5、复制构造函数)