Author Archives: RAJ9992

JHTML (Java within Hypertext Markup Language)

JHTML (Java within Hypertext Markup Language) is a standard for including a Java program as part of a Web page (a page written using the Hypertext Markup Language, or HTML). A Web site developer can write a small program using the Java programming language … Continue reading

Posted in Uncategorized | Leave a comment

How to Use Jstl(JSP Standard Tag Library) Sql tag

  Using   Tag Library To Retrieve Data From The Data Base      Before Implementing Import Jstl.jar                               <%@ page import=”java.io.*,java.util.*,java.sql.*”%><%@ page import=”javax.servlet.http.*,javax.servlet.*” %><%@ taglib uri=”http://java.sun.com/jsp/jstl/core&#8221; prefix=”c”%><%@ taglib uri=”http://java.sun.com/jsp/jstl/sql&#8221; prefix=”sql”%> <html><head><title>Retrieving Using Sql Tag </title></head><body> <sql:setDataSource  driver=”com.mysql.jdbc.Driver” url=”jdbc:mysql://localhost:3306/LOGIN” user=”root”  password=”root”   /> … Continue reading

Posted in Uncategorized | Leave a comment

disable back button functionality With JavaScript

                                                                       Disable Back Button Functionality <HTML> <HEAD> <TITLE>Disable Back Button in Browser</TITLE> <STYLE>body,input{font-family:Calibri,Arial}</STYLE> <script type=”text/javascript”>     function clickLink() {         document.getElementById(“link”).click();     } </script> <body onload=”clickLink()”> <a id=”link” href=”#” /> <H2>BackButtonRestrict</H2> </BODY> </HTML> With Regards RAJ9992

Posted in Uncategorized | Tagged | Leave a comment

EmailValidation

<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”&gt;<html> <head>  <title> New Document </title>  <meta name=”Generator” content=”EditPlus”>  <meta name=”Author” content=””>  <meta name=”Keywords” content=””>  <meta name=”Description” content=””> </head><script>function ValidateEmail(inputText)  {  var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;  if(inputText.value.match(mailformat))  {  document.form1.text1.focus();  return true;  }  else  {  alert(“You have … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

javascript to get value of File in Html with in the Page

<html> <head> <title> New Document </title> <meta name=”Generator” content=”EditPlus”> <meta name=”Author” content=””> <meta name=”Keywords” content=””> <meta name=”Description” content=””> </head> <script > function Check() { var name=document.getElementById(‘INPUT’).value; alert(name); document.getElementById(‘OUTPUT’).innerHTML=name; } </script> <body> <input type=”file”  id=’INPUT’  value=””  > <input type=”button”  value=”Check”  onclick=”Check()” … Continue reading

Image | Posted on | Leave a comment

Disable Back Button in Browser With JavaScript

Disable Back Button in Browser With JavaScript <HTML> <HEAD> <TITLE>Disable Back Button in Browser</TITLE> <STYLE>body,input{font-family:Calibri,Arial}</STYLE> <script type=”text/javascript”>window.history.forward();function noBack(){window.history.forward();}</script> </HEAD> <BODY onload=”noBack();” onpageshow=”if (event.persisted) noBack();” onunload=””> <H2>BackButtonRestrict</H2> <p>This page contains the code to avoid Back button. </p> <p>Click here to Goto … Continue reading

Posted in JavaScrpit | Tagged | Leave a comment

Constructor and Destructor of Java

Constructor and Destructor of Java Intriduction of constructor. Constructor and destructor are two important concepts of object oriented programming language. Constructor is nothing but a special type of member function that invokes automatically when the object is created of the … Continue reading

Posted in Java Concepts | Leave a comment