index.jsp:代码
<%@ page language="java" contentType="text/html" pageEncoding="GBK"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>主页</title>
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<div align="center">
<div style="width: 500px; border: solid 1px; padding: 5px;">
<h1>注册协议</h1>
<textarea rows="20" cols="70"><c:import url="a.txt" charEncoding="GBK"></c:import></textarea>
<input type="radio" name="select">同意
<input type="radio" name="select">不同意
</div>
</div>
</body>
</html>
//
也可以使用include 来包含文件 如:<jsp:include page="">或<%@ include file=""%>
前者可以包含静态页面(.html文件等)或是动态页面(jsp文件) ,后者只能包含静态文件(.html)