Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Ajax how to create a xml page
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


salim
how to create a xml page
0 Answer(s)      2 years and 7 months ago
Posted in : Ajax


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>

<meta name="Description" content="Information architecture, Web Design, Web Standards." />
<meta name="Keywords" content="your, keywords" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta name="Distribution" content="Global" />
<meta name="Author" content="Erwin Aligam - ealigam@gmail.com" />
<meta name="Robots" content="index,follow" />       

<link rel="stylesheet" href="images/telecom.css" type="text/css" />

<title>BluePigment</title>
<script type="text/javascript">
        function validate()
        {
            //Name validation
            var a=document.frm.name.value;
            if(a=="")
            {
                alert("Please enter the name");

                return false;
            }
            if(!isNaN(a))
            {
                alert("Please enter the correct name");

                return false;
            }
            if(a.length > 25)
            {
                alert("Please enter name less than 25 characters");

                return false;
            }

            //License validation
            var b=document.frm.licence.value;
            if(b=="")
            {
                alert("Please enter the License number");

                return false;
            }
            if(isNaN(b))
            {
                alert("Please enter the correct Licence number");

                return false;
            }

            //Address validation
            var c=document.frm.address.value;
            if(c=="")
            {
                alert("Please enter address");
                return false;
            }


            //Contact validation
            var d=document.frm.cno.value;

            if(d.length!=10 )
            {
                alert("Please enter valid contact number");
                return false;
            }

            if(isNaN(d))
            {
                alert("Please enter valid contact number");
                return false;
            }

            //Email-id validation
            var e=document.frm.email.value;
            if((e.indexOf("@")==-1) || (e.indexOf(".")==-1))
            {
                alert("Please Enter valid Email-id");
                return false;
            }

            if((e.indexOf("@")!=e.lastIndexOf("@"))||(e.lastIndexOf(".")-e.indexOf("@")<=2))
            {
                alert("Please Enter valid Email-id");
                return false;
            }

            //DOB validation
            var f=document.frm.date.value;
            if(f=="")
            {
                alert("Please enter valid date");
                return false;
            }



            alert("You have submitted data successfully.");
            return true;
        }

</script>

</head>

<body>

    <!-- header starts here -->
    <div id="header"><div id="header-content">  

        <h1 id="logo-text"><a href="index.html" title="">Telecom<span>Inventory</span><span>Store</span></a></h1>
        <h2 id="slogan">One Roof For All...</h2>        

        <div id="header-links">
            <p>
                <a href="index.html"></a>
                <a href="index.html"></a>
                <a href="index.html"></a>           
            </p>        
        </div>  

    </div></div>

    <!-- navigation starts here -->
    <div id="nav-wrap"><div id="nav">

        <ul>
            <li><a href="home.html">Login</a></li>
            <li ><a href="retailerRegistration.html">Retailer Registration</a></li>
            <li id="current"><a href="imRegistration.html">IM Registration</a></li>
            <li><a href="index.html"></a></li>
            <li><a href="index.html"></a></li>          
        </ul>

    </div></div>

    <!-- content-wrap starts here -->
    <div id="content-wrap"><div id="content">    
    <div id="sidebar" > 



        </div>

        <div id="main">     

            <div class="box">

                <a name="TemplateInfo"></a>             
                <h1><a href="index.html">Welcome <span class="white">Inventory Manager</span></a></h1>


            </div>          

            <div class="box">

                <a name="SampleTags"></a>
                <h1><a href="index.html"><span class="white">Inventory Manager</span> Registration</a></h1>

                <h3></h3>


                <form name="frm" method="post" action="InsertServlet" onsubmit="return validate()">     
                    <p>
                        <label>Name</label>
                        <input name="name"  type="text" placeholder="Name" size="30" />
                        <label>Licence Number</label>
                        <input name="licence"  type="text" placeholder="License Number" size="30" />
                        <label>Address</label>
                        <textarea name="address" placeholder="Address" rows="1" cols="3"></textarea>
                        <br />
                          <label>Contact Number</label>
                        <input name="cno"  type="text" placeholder="Contact Number" size="30" />


                        <label>Email</label>
                        <input name="email"  type="text" placeholder="Email id" size="30" /><br/><br/>

                    <label>Date of Birth</label>
                        <input type="text" name="date" size=10 placeholder="dd" maxlength=10/>


                        <br/><br/>



                        <input name="registerM" class="button" type="submit" value="Register" />    
                        <input class="button" type="reset" value="Cancel"/>
                    </p>        
                </form> 


            </div>          

            <br />              

        </div>          


    <!-- content-wrap ends here -->     

    </div></div>

    <!-- footer starts here-->      
    <div id="footer-wrap">

        </div>  
        <font size=2>
        <div id="footer-bottom">        
            <p>

            © 2012-2013 Tata Consultancy Services Limited. All Rights Reserved
            </p>        
        </div>  
        </font>

<!-- footer ends-->
</div>

</body>
</html>


import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;

public class Connections {
static Connection con=null;
static Statement st=null;
public static void theconnect()
{
    try{
        Class.forName("com.mysql.jdbc.Driver");
        con=DriverManager.getConnection("jdbc:mysql://localhost:3306/vinay","root","yanivx");
        st=con.createStatement();
        }
        catch(Exception e)
        {
            System.out.println(e);
        }
}
}

Advertisement
View Answers

Related Tutorials/Questions & Answers:
how to create a xml page
how to create a xml page  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <
How to create XML file - XML
How to create XML file  Creating a XML file, need an example. Thanks!!  To create XML file you need plain text editor like note pad. After... language has many API's to create xml file from program.Here is the code example
Advertisements
how to create web page on jsp?
how to create web page on jsp?  how to create web page on jsp
How to create XML from Swings
How to create XML from Swings  How to create XML using Swings. I have a Swing GUI and capturing all data from it.When i click on submit, an xml... components and display it in xml file. import java.io.*; import java.util.*; import
how to create a login page and registration page?
how to create a login page and registration page?  hellow, pls tell me the code for how we can create a login page and registration page and how we can store the info in database.only in advance java as jsp
how to create xml schema from xml doc using java
how to create xml schema from xml doc using java  i want to create xml schema from xml document programatically using java... am using Netbeans IDE... need to create the xml schema for that document and send both xml doc ans schema
How to create one xml file from existing xml file's body?
How to create one xml file from existing xml file's body?  Hi, i'm working with content optimization system.I want to know how we can take all data from an xml doc's body to develope another xml with that content.I'm using JDOm
how to create an xml file in following clear format
how to create an xml file in following clear format  anyone please help me out to create this file,,. <Tasks> <Taskid>1 <Taskname>Coding <Project>CeMIC <Date>
May I know how to create a web page?
May I know how to create a web page?  can u suggest me how to start
how to create 3d chart in dojox charting - XML
how to create 3d chart in dojox charting  Please provide some example for 3d charting in dojox chart
how to create a jsp page like gmail inbox page
how to create a jsp page like gmail inbox page  in my struts project i need to create a page like gmail inbox page..........how can i create this? help me some one
How to Create JSP Page
How to Create JSP Page       In this section we will show you how you can create JSP page and then test... can be used. In this example I will show you how to create a simple JSP page
Create XMl dynamically - XML
Create XMl dynamically  Hi I am retreiving the list from database which i need to display in an XML file with some nodes How can I do
Create XML - XML
Create XML   Hi, Can you please provide java code,that will create xxx.XML file where all the attributes and values of those attributes... elements in your XML file: "); String str = buff.readLine(); int
How to store data entered in JSP page by a user in XML file & later retrieval of data using id at other page
How to store data entered in JSP page by a user in XML file & later retrieval..., projectname and emp name.I want to store data related to employee in xml file.How can i store data entered by user in XML file and later retrieve data
How to create and use custom error page in jsp
How to create and use custom error page in jsp       This is detailed java code how to create...; // This line will create an error so error page will be called
How to store data entered by User in JSP page in XML file
How to store data entered by User in JSP page in XML file  How to store data entered by user in JSP page to be saved in XML file.On clicking submit button data entered by a user in a page must be saved in XML file.How to do so
how to write in xml? - XML
how to write in xml?  can anybody give the code how to write in xml... Source source = new DOMSource(doc); // Create File to view your xml...(new InputStreamReader(System.in)); System.out.print("Enter XML file name
Java Swing Create XML file
Java Swing Create XML file In this tutorial, you will learn how to create XML... and fetch all the data from textfields and create an xml file with proper... swing components and display it in xml file. We have created textfields
create a xml from sql server 2005 - XML
create a xml from sql server 2005  hello Dear, i want to know how we create a xml file which retrieve data from Sql server 2005 using java. i... with the name as 'student' i want to create a xml file from the table values which
create a folder in jsp page
create a folder in jsp page  i want to create a folder in jsp page And it can be delete aslo
create a one web page
create a one web page  create a one web page with stored values in a database
parser xml one page to another
parser xml one page to another  parser xml one page to another
What is XML?
and create well formatted XML document. What is XML Document? Some facts about XML...What is XML? In the first section of XML tutorials we will learn the basics of XML and then write our first xml document. After completing this section
Create dynamic page through JSP
how to create dynamic page. This code shows one by one record of student from... Create dynamic page through JSP..., application fetch next record from database. Create a database :  Before
Create XML File using Servlet
Create XML File using Servlet       In this section, you will learn how to create xml... XML file with its version and encoding and display a message 'Xml File Created
create main page
create main page  <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@page import="java.sql.*"%> <%@page import="java.util.*"%> <%@ page session="true
how to create a slider on jsp page n slider has values from 0-4
how to create a slider on jsp page n slider has values from 0-4  i want to create a slider on jsp page and slider has values from 0-4   Using the jquery, you can create a slider in jsp. <html> <head> <
Create Web Page with jsp
Web Page with jsp       In this example we will show you how to create first web page on tomcat.... For this we will create a simple dynamic JSP page with java.util.Date class (<
How to prepare XML file?
How to prepare XML file?  Hi, I want to prepare XML File, can you tell me how should I do it? Thanks.   Hello, Following links can help you create an XML file.. Create XML File using Servlet How to generate
html program to create home page
html program to create home page  html program to create home page
 

 

 

DMCA.com