About
webapp0 is Java Web Application Template.
This template already implements common logic and patterns.
It enables rapid web application development, and you just have to imitate it according to your purpose.
Getting started
Project files
- Download ZIP and unzip.
- Import to the Eclipse.
- Rename the package name from
com.takashiharano.webapp0
to your own package name. - Grep and replace whole 'webapp0' in the source code with your own app name. (case-sensitive)
- Modify the pom.xml to suite your app.
- Once build with command
mvn clean package
so that download dependencies. - Right click on your app project > Maven > Update Project
Properties
- Create a folder.
Linux:/home/<USER>/webapphome/<APPNAME>
Windows:C:/Users/<USER>/webapphome/<APPNAME>
- Copy the following files in
<Project>/webapphome/webapp0
to the folder you created.- app.properties
- users.txt
- userspw.txt
Run
Right click on your app project > Run As > Run on Server
You can login with the default user account admin
and the password is the same as the username.
Development and debugging
- Remove the sample screen definition
screen1
,screen2
,_template
frommenu.jsp
. - Delete .jsp and .js files of the above screen.
- Copy
_template.jsp
and_template.js
with your new screen id. - Replace all
_template
in those files with new screen id. - Add screen definition of the new screen in
menu.jsp
. - Write your code in the new .jsp and .js.
WAR building
mvn clean package
License
webapp0 is licensed under the MIT License.