<%@ page contentType="text/html; charset=GBK" %>
<%!
//声明一常量
final String SF="";
//声明一个方法
public String cr(String SF){
String temp="";
temp=SF.substring(6,14);
return temp;
}
%>
<html>
<head>
<title>
jsp1
</title>
</head>
<body bgcolor="#00ffff">
<h1>
显示结果
</h1>
<% String sf1="010020198810092211";
String newsf1=cr(sf1);
String sf2="010020199009302211";
String newsf2=cr(sf2);%>
<table>
<tr>
<td align="center"> 身份证号</td>
<td align="center"> 生 日</td>
</tr>