Programmer's Rules

Glassfish

Simple web application in Glassfish with html code only

Very simple application in Glassfish 4.1 using html code only. No java needed.

Glassfishwebhtml

1. Open a text editor, e.g. Notepad (on Windows), gedit, nano, etc. (on Linux).

2. Write the necessary HTML5 DOCTYPE preamble and any text to the file.

3. Save the file as index.html.

4. Zip the file, eg. using 7zip software (with zip format option).

5. Change the *.zip filename and extention to hello.war.

6. Open Admin Console of Glassfish. Go to Applications --> Deploy --> Browse and choose the hello.war file. Press ok.

7. Now you application is deployed. You can access it with url: http://localhost: 8080/hello/
Tutorial statistics