Professional Documents
Culture Documents
Template PDF
Template PDF
Vng thay i 1
Vng thay i 2
NHT NGH
Vng thay i 1
Vng thay i 2
NHT NGH
Khm ph Project
Cu trc Project
Th vin: lib/*.jar
Tp tin cu hnh: web.xml
Template.jsp
Cc trang p dng Template.jsp
+ Home.jsp
+ AboutUs.jsp
Trang mu (Template.jsp)
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Online Shopping Center</title>
<style>
body{background: lightgray; font-family: verdana; font-size: 12px;}
#outer{width:950px; margin:0px auto;}
NHT NGH
#header{height:150px; background:red;}
#menu{height:25px; background:aqua; padding-top: 5px; text-align: center;}
#left{width:300px; min-height:400px; background:yellow; float: left;}
#content{width:650px; min-height:400px; background:white; float: right;}
#footer{height:25px; background:red; clear: both;}
#left a{display: block; padding: 5px 0px;}
</style>
</head>
<body>
<div id="outer">
<div id="header"></div>
<div id="menu">
<a href="Home.jsp">Home</a> |
<a href="AboutUs.jsp">About Us</a> |
<a href="ContactUs.jsp">Contact Us</a> |
<a href="Feedback.jsp">Feedback</a> |
<a href="FAQs.jsp">FAQs</a> |
<a href="MyAccount.jsp">My Account</a>
</div>
<div id="left">
<fieldset>
<legend>Title</legend>
<tiles:insertAttribute name="head"/>
</fieldset>
<fieldset>
nh du vng thay i 1
<legend>Vertical Menu</legend>
<ul>
<li><a href="Home.jsp">Home</a></li>
<li><a href="AboutUs.jsp">About Us</a></li>
<li><a href="ContactUs.jsp">Contact Us</a></li>
<li><a href="Feedback.jsp">Feedback</a></li>
<li><a href="FAQs.jsp">FAQs</a></li>
<li><a href="MyAccount.jsp">My Account</a></li>
</ul>
</fieldset>
</div>
<div id="content">
<tiles:insertAttribute name="body"/>
</div>
<div id="footer"></div>
nh du vng thay i 2
</div>
</body>
</html>
Ch nh mu p dng
NHT NGH
<tiles:putAttribute name="head">
<h1>HOME PAGE</h1>
</tiles:putAttribute>
<tiles:putAttribute name="body">
<img src="images/java.png">
</tiles:putAttribute>
</tiles:insertTemplate>
Ch nh mu p dng
<tiles:putAttribute name="body">
<img src="images/about.jpg">
</tiles:putAttribute>
</tiles:insertTemplate>