'HTML Table head fixed'에 해당되는 글 1건

아래 JSP Code는 System property 목록들을 Table 형태로 출력한 부분입니다. 


<%@ page language="java" contentType="text⁄html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*;"%>
<!DOCTYPE html PUBLIC "-⁄⁄W3C⁄⁄DTD HTML 4.01 Transitional⁄⁄EN" "http:⁄⁄www.w3.org⁄TR⁄html4⁄loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text⁄html; charset=UTF-8">
<link rel="stylesheet" href=".⁄css⁄bootstrap.css">
<link rel="stylesheet" href=".⁄css⁄bootstrap-responsive.css">
<⁄head>
<body>

	<div style="margin-left:40px; margin-right: 40px;">
		<h2>Description<⁄h2>
		<p>
			The <strong>java.lang.System.getProperties()<⁄strong>method
			determines the current system properties. The current set of system
			properties for use by the getProperty(String) method is returned as a
			Properties object. If there is no current set of system properties, a
			set of system properties is first created and initialized. This set
			of system properties includes values for the following keys:
		<⁄p>
		
		<div>
			<table class="table">
				<thead>
					<tr>
						<th width="10%" style="text-align:center">No<⁄th>
						<th width="15%" style="text-align:center">Key<⁄th>
						<th width="75%" style="text-align:center">Value<⁄th>
					<⁄tr>
				<⁄thead>
			<⁄table>
		<⁄div> <!-- Table Header -->
		<div style="width: 100%; height:300px; overflow-y:auto; overflow-x: hidden;">
			<table class="table">
				<tbody>
					<% Map<String, String> env = System.getenv(); 	int index = 1; for (String key : env.keySet()) { %>
					<tr>
						<td width="10%" style="text-align:center"><%= index++ %><⁄td>
						<td width="15%" ><%= key %><⁄td>
						<td width="75%" ><%= env.get(key) %><⁄td>
					<⁄tr>
					<% } %>
				<⁄tbody>
			<⁄table>
		<⁄div>
	<⁄div>

	<script src=".⁄js⁄jquery-1.11.1.js"><⁄script>
	<script src=".⁄js⁄bootstrap.js"><⁄script>
<⁄body>
<⁄html>


블로그 이미지

행복그리고..

,