Show layout.jsp syntax highlighted
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic"%>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
<%@page import="ch.iticket.webapp.Constants"%>
<%@page import="ch.iticket.pd.interfaces.bean.IBookerBean"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html:html locale="true" xhtml="true">
<head>
<link href="/iTicket/main.css" rel="stylesheet" type="text/css"
media="all" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>
<tiles:getAsString name="title" />
</title>
</head>
<body>
<div class='main'>
<%-- include header --%>
<tiles:insert attribute="header" />
<div class='navi'>
<logic:present name="user" scope="session">
<% String username = ((IBookerBean) session.getAttribute(Constants.USER_KEY)).getUsername(); %>
<p>You're logged in as <b><%= username %></b></p>
</logic:present>
<logic:notPresent name="user" scope="session">
<html:form action="/logon">
<h1>Login</h1>
<p>Username:
<html:text name="dynaLogonForm" property="username" />
Password:
<html:password name="dynaLogonForm" property="password" />
</p>
<p align="right">
<html:submit property="action" value="Logon" />
</p>
</html:form>
</logic:notPresent>
<h1>Quick Links</h1>
<p>
<html:link module="/booking" action="/loadsearchflightform">Search Flight</html:link>
<br />
<html:link module="/check-in" action="/loadBookings">Check-in</html:link>
<br />
</p>
<p>
<html:link module="/" action="/logoff">Logoff</html:link>
</p>
</div>
<div class='cont'>
<html:errors />
<%-- include body --%>
<tiles:insert
attribute="body" />
</div>
<%-- include footer --%>
<tiles:insert attribute="footer" />
</div>
</body>
</html:html>
See more files for this project here