Internet Programming | Http is a Stateless

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

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

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)

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

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...

Internet Programming | Simple Scientific calculator using HTML, JavaScript and css

Simple Scientific calculator using HTML, JavaScript and css Hello guys, today i am going to walk you through step by step in creating your own simple scientific calculator which can perform the major calculations which most of the calculators do. Take a look at the awesome...