I need some help getting started. I've been researching client and server site scripting and trying to understand how they communicate. but I didn't understand the basic. I just started with the basic example. It just return "Welcome !" message on the web browser
A client (browser) send request to the server; then the server returns a response to the client. POST requests are used to send data to the sever . GET request is what we get when we enter a URI in your browser or when we click on a link on a web page
I want to write code when I click button, Server would be display "Welcome !" message on web browser.
How to make complete program so that it can be run on any web server ?
client site script
Server site scripting
A client (browser) send request to the server; then the server returns a response to the client. POST requests are used to send data to the sever . GET request is what we get when we enter a URI in your browser or when we click on a link on a web page
I want to write code when I click button, Server would be display "Welcome !" message on web browser.
How to make complete program so that it can be run on any web server ?
client site script
HTML:
<!DOCTYPE html>
<html>
<body>
<h2>Press Button</h2>
<form action="button">
<button type="submit">Button</button>
<form>
</body>
</html>
Code:
public class HelloWorld {
public static void main(String[] args) {
System.out.println( "Welcome!" );
System.exit( 0 ); //success
}
}