Tuesday, September 13, 2016

Simple Layout for using JSP (Java Server Pages) , Template




SIMPLE Layout for JSP (Java Server pages, the low level stuff)

<html>
    <body>
        <div class="container">
     
            <header>
                <%@include file="<YOUR JSP HEADER FILE>" %>
            </header>
            <nav>
                <%@include file="<YOUR JSP NAVIGATION FILE>" %>
            </nav>    
            <article>
                      MY INPUT STUFF
                     <advertisement>
                             TRYING TO MAKE SOME MONEY
                     </advertisement>
            </article>
            <footer>
                <%@include file="<YOUR JSP FOOTER FILE>" %>
            </footer>
        </div>
   </body>
</html>

HERE IS THE SITE - HOSTED ON GOOGLE CLOUD APP ENGINE - 

HERE IS THE CODE - 

<jsp:useBean id='mycommon' scope='page' 
class='info.safetynetaccess.blstraininghfhs.beans.commonstringsbean' />

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html>
<head>
<%--Google Header--%>
<%= mycommon.getGoogleTagManagerHead() %>
<%--Meta Data--%>
<%= mycommon.getMetaData() %>
<%--Get jQuery--%>
<%= mycommon.getJQueryScript() %>
<%--CSR Javascript--%>
<%= mycommon.getJavaScriptAndCSS() %>
<%--Resize Window--%>
<%= mycommon.getRizeWindowJS() %>
<%--No enter key--%>
<%= mycommon.getNoEnterKeyJavaScript() %>
<%--Viewport--%>
<%= mycommon.getViewPortMetaData() %>
<%--Google Analytics--%>
<%= mycommon.setGoogleAnalytics() %>

<title>Basic Life Support</title>
</head>
<body onload="setBLSMain();">

<%--Google Body Tag--%>
<%= mycommon.getGoogleTagManagerBody() %>

<%--<header>--%>
<div class='headerHTML'>
<%= mycommon.getBLSMainFormHeader() %>
</div>
<%--</header>--%>
<div class='navHTML'>
<%= mycommon.getMainFormNav() %>
</div>
<%--<nav>
<%= mycommon.getMainFormNav() %>
</nav>--%>

<%--<section>--%>
<div class='indexHTML'>
<%--<article class='articleMain'>--%>

<p class="mainPara">Safety Net Access - </p>
<p class="mainPara">Building Whats Next.</p>
<p class="mainPara">Non-Clinical Business Informatics.</p>

<%--<aside>--%>
<%--INSERT HERE--%>
<%--</aside>--%>
<%--</article>--%>
</div>
<%--</section>--%>

<%--<footer class='footer-bottom'>--%>
<div class='footerHTML'>
<%= mycommon.getCopyRight() %>
</div>
<%--</footer>--%>
</body>
</html>

No comments:

Post a Comment