Skip to content

This repository provides HTML file for front end that takes input from user. This HTML file is embedded with JavaScript. The Javascript code listens for the form submission event and makes a GET request to the server. This server is created using Java and hosted locally and listens on port 8080.

Notifications You must be signed in to change notification settings

Nehanth67/Encode_Text_HTML_JS_Java

 
 

Repository files navigation

Encode_Text_HTML_JS_Java

This repository provides HTML file for front end that takes input from user. This HTML file is embedded with JavaScript. The Javascript code listens for the form submission event and makes a GET request to the server. This server is created using Java and hosted locally and listens on port 8080.

Prerequsites:

  1. Use java 11 or later version to run this code. I tried running the same code in java 8 but facing some errors(will try to fix it later). So better to use java 11 or later for now.

To run this. Follow below steps:

  1. Download 'index.html' file and 'TextEncoderHttpServer.java' files.
  2. Compile the java code using the command: javac TextEncoderHttpServer.java
  3. Run the java code using the command: java TextEncoderHttpServer
  4. Now the server starts at 'http://localhost:8080'
  5. Now double click on the index.html file.
  6. Give some text in 'Text to Encode' text box.
  7. Click on 'Encode' button.

About

This repository provides HTML file for front end that takes input from user. This HTML file is embedded with JavaScript. The Javascript code listens for the form submission event and makes a GET request to the server. This server is created using Java and hosted locally and listens on port 8080.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 75.1%
  • HTML 24.9%