<%@ page language="java"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%> 
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>

<html:html locale="true">
  <head>
    <html:base />
	
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

	<title>Library Application</title>
	</head>
	<body>
	<table border="0" width="100%" height="100%">
		<colgroup>
    		<col width="10%">
			<col width="80%">
			<col width="10%">
		</colgroup>
  		<!-- Kopfbereich -->
		<tr bgcolor="lightgrey" height="10%">
			<td align="center" colspan="3"><b>Library Manager</b></td>
		</tr>
		<!-- Hauptbereich -->
		<tr>
			<!-- Linker Navigationsbereich -->
			<td bgcolor="peachpuff" valign="top" with="100">
				<% out.println(com.peetz.library.navigation.MenuLinks.getInstance().toString()); %>
			</td>
			<td bgcolor="papayawhip">
 <%-- create a html form --%>
 <html:form action="shelfEdit">
 <%-- print out the form data --%>
 <table border="1">
 <tbody>
 <tr>
 <td>Title:</td>
 <td><html:text property="title" /></td>
 </tr>
 </tbody>
 </table>
 <%-- set the parameter for the dispatch action --%>
 <html:hidden property="do" value="saveShelf" /> 
			
 <br>
 <%-- submit and back button --%>
 <html:button property="back" 
 onclick="history.back();">
					 Back
 </html:button>
 &nbsp;
 <html:submit>Save</html:submit>
 </html:form>
			</td>
			<!-- Rechter Navigationsbereich -->
			<td bgcolor="peachpuff" with="15%">&nbsp;</td>
		</tr>
		<!-- Fussbereich -->
		<tr bgcolor="lightgrey" height="10%">
			<td align="right" colspan="3">
				<p>Ingenieurb&uuml;ro Thomas Peetz</p>
			</td>
		</tr>
	</table>
	</body>
</html:html>
