Http is a Stateless
Because a stateless protocol does not require the server to retain session information or status about each communications partner for the duration of multiple requests.
HTTP is a stateless protocol, which means that the connection between the browser and the server is lost once the transaction e...
Java Servlet code for print out the current date and time
Posted by Jothi Basu
on October 06, 2016
with
No comments

Java Servlet code for print out the current date and time
import java.io.PrintWriter;
import java.io.IOException;
import java.util.Date;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
/**
This servlet prints out the...
JavaScript HTML DOM Elements (Nodes) | Removing Existing HTML Elements
Posted by Jothi Basu
on October 06, 2016
with
No comments

Removing Existing HTML Elements
To remove an HTML element, you must know the parent of the element:
Example
<!DOCTYPE html>
<html>
<body>
<div id="div1">
<p id="p1">This is a paragraph.</p>
<p id="p2">This is another paragraph.</p>
</div>
<script>
var parent = document.getElementById("div1");
var...
JavaScript HTML DOM Elements (Nodes)
Posted by Jothi Basu
on October 06, 2016
with
No comments

Creating New HTML Elements (Nodes)
To add a new element to the HTML DOM, you must create the element (element node) first, and then append it to an existing element.
Example
<!DOCTYPE html>
<html>
<body>
<div id="div1">
<p id="p1">This is a paragraph.</p>
<p id="p2">This is another paragraph.</p>
</div>
<script>
var...
Internet Programming | HTML and JSP program for simple calculator
Posted by Jothi Basu
on October 06, 2016
with
No comments

HTML and JSP program for simple calculator
<html>
<head>
<title>calculator program in jsp</title>
<script>
function checkValue(){
var msg = "";
if (f1.operand1.value == "" || f1.operand2.value == "")
msg += "Operands missing\n";
if (f1.op.selectedIndex == 3 && f1.operand2.value == 0)
msg += "Division by zero";
if...