- Create JSP layout (master layout, non-master layout) using layout directives
- Translates JSP master layouts, JSP pages, JSP fragments with layout directives to pure JSP pages, JSP fragments
- Multi master layout supported
- Easy, flexible, and fastest way to achieve JSP master layouts
<body>
<!-- @doBody -->
</body>
<!-- @header -->
<!-- @inc_js? -->
<!-- @header begin -->
<h2>This is a page header</h2>
<!-- @header end -->
<!-- @inc_js begin -->
<script type="text/javascript">
</script>
<!-- @inc_js end -->
<!-- @variables
__layout=layout1
pageTitle= ${messages.login_title}
-->
<!-- @variable __layout=layout1 -->
<!-- @variable pageTitle=${messages.login_title} -->
<!-- @variables: shared_variables.properties -->
<head>
<title>@{pageTitle} OR @(pageTitle)</title>
</head>
+ WebContent
+ WEB-INF
+ __config
- layout1.jsp // Page Layout
- layout2.jsp
- shared_variables.properties
+ __jsp
- login.jsp // Page body
- registration.jsp
+ jsp
- login.jsp // Page generated by __config/layout1.jsp & __jsp/login.jsp
- login_inc.jsp // Body generated by __jsp/login.jsp
- registration.jsp
- registration_inc.jsp
<build>
<plugins>
<plugin>
<groupId>com.appslandia</groupId>
<artifactId>appslandia-jsp-processor</artifactId>
<version>{LATEST_VERSION}</version>
<executions>
<execution>
<id>process-jsp</id>
<phase>generate-sources</phase>
<goals>
<goal>process-jsp</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
Please feel free to contact me if you have any questions or comments. Email: haducloc13@gmail.com
This code is distributed under the terms and conditions of the MIT license.