BAEL-1275 Introduction to ActiveWeb (#3638)

* BAEL-1275 Introduction to active web first commit

* BAEL-1275 Added the module to parent pom

* BAEL-1275 Introduction to ActiveWeb
This commit is contained in:
Dhrubajyoti Bhattacharjee
2018-02-24 12:48:53 +05:30
committed by Grzegorz Piwowarek
parent 2399b4d817
commit d7aecc83de
18 changed files with 277 additions and 11 deletions
+18
View File
@@ -0,0 +1,18 @@
<@content for="title">Articles</@content>
<table>
<tr>
<td>Title</td>
<td>Author</td>
<td>Words #</td>
<td>Date Published</td>
</tr>
<#list articles as article>
<tr>
<td>${article.title}</td>
<td>${article.author}</td>
<td>${article.words}</td>
<td>${article.date}</td>
</tr>
</#list>
</table>
+17
View File
@@ -0,0 +1,17 @@
<@content for="title">Search</@content>
<table>
<tr>
<td>Title</td>
<td>Author</td>
<td>Words #</td>
<td>Date Published</td>
</tr>
<tr>
<td>${article.title}</td>
<td>${article.author}</td>
<td>${article.words}</td>
<td>${article.date}</td>
</tr>
</table>
+3
View File
@@ -0,0 +1,3 @@
<@content for="title">Simple Web App</@content>
<h2>Application error</h2>
+3
View File
@@ -0,0 +1,3 @@
<@content for="title">Simple Web App</@content>
<h2>Baeldung ActiveWeb Demo Application</h2>
@@ -0,0 +1,16 @@
<#setting url_escaping_charset='ISO-8859-1'>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body>
<div class="main">
<#include "header.ftl" >
<div class="content">
${page_content}
</div>
<#include "footer.ftl" >
</div>
</body>
</html>
@@ -0,0 +1,3 @@
<div class='footer'>
<p>2018 Baeldung. No Rights Reserved.</p>
</div>
@@ -0,0 +1,4 @@
<div class="header">
<h1><a href="${context_path}">Baeldung ActiveWeb Demo</a></h1>
</div>
@@ -6,6 +6,10 @@
<filter>
<filter-name>dispatcher</filter-name>
<filter-class>org.javalite.activeweb.RequestDispatcher</filter-class>
<init-param>
<param-name>root_controller</param-name>
<param-value>home</param-value>
</init-param>
<init-param>
<param-name>exclusions</param-name>
<param-value>css,images,js,ico</param-value>