<%@ 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 'tpl.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">
<script type="text/javascript" src="jQuery.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
</head>
<body>
<form>
<input type="text" id="txt3" style="width:60px;height:50px;font-size:30px;">
<input type="text" id="txt4" style="width:60px;height:50px;font-size:30px;">
<input type="submit" value="submit">
</form>
</body>
</html>
解决方案 »
- he content of element type "set" must match (领分)
- 考试系统中的问题
- java如何的到电脑主板串号
- (急)服务器带宽在10M/s,同时大概能支撑多少用户访问?
- Struts、jQuery和Ajax提交数据的一个小问题
- weblogic的用户名,密码问题
- 100分求jsp:usebean的用法。
- 200分请高手指点: jsp怎样调用webservice 解决再送100分,在线等,立即给分
- 高分个位师兄请介绍struts
- spring注入失败
- ehcache.xml异常。。。which is already used by an existing CacheManager.
- apache cxf 在Interceptor的handleMessage方法给客户端返回json
得到页面传过来的数据,String txt3 = request.getParameter("txt3");
使用文件流的写入方法写入文件就行了 fw.writeLine(txt3);
大概思路就这样了。