servlet
来源:互联网 发布:武汉人工智能创业公司 编辑:程序博客网 时间:2024/05/20 17:10
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
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>My JSP 'myLogin.jsp' starting page</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">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<a href="wr.rar">下载</a><br>
<a href="FileRead?fileName=test.txt">srvlet读取文本文件内容</a><br/>
使用srvlet处理表单。<br>
<form action="login.action" method="post">
用户名:<input type="text" name="user">
密码:<input type="password" name="pass">
<input type="submit" value="提交">
</form>
</body>
</html>
<%
String path = request.getContextPath();
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>My JSP 'myLogin.jsp' starting page</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">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<a href="wr.rar">下载</a><br>
<a href="FileRead?fileName=test.txt">srvlet读取文本文件内容</a><br/>
使用srvlet处理表单。<br>
<form action="login.action" method="post">
用户名:<input type="text" name="user">
密码:<input type="password" name="pass">
<input type="submit" value="提交">
</form>
</body>
</html>
0 0
- Servlet
- servlet
- Servlet
- servlet
- Servlet
- servlet
- servlet
- Servlet
- Servlet
- servlet
- Servlet
- servlet
- servlet
- servlet
- Servlet
- servlet
- servlet
- servlet
- 三个数求最大数
- HDU 2013 蟠桃记【递推】【递归】
- U-boot的环境变量值得注意的有两个: bootcmd 和bootargs
- VC各种格式转换
- 设计模式实现(十六)---迭代器模式(Iterator)
- servlet
- 串口收发数据时字符、十六进制、二进制格式详细区分
- 合作开发三层架构版机房中的一些工具软件
- 8月风怒
- SQL 忽略大小写模糊查询
- 又要搬家了
- U-boot在S3C2440上的移植详解(一)
- 初始化String的两种方法有何异同
- java类中只能放变量和方法,语句非也