how to create a xml page

Ads
 

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

<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 - [email protected]" />
<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);
        }
}
}
View Answers

Ads









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 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
Advertisements
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 web page on jsp?
how to create web page on jsp?  how to create web page on jsp
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>
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
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 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 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
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
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
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
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
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
how to create frame in swings
how to create frame in swings  how to create frame in swings
how to create notepad in java
how to create notepad in java  how to create notepad in java
How to create simple HTML Login Page?
with JavaScript. You will  learn How to create a simple HTML login page...Simple HTML Login Page- Create a Simple HTML Login page and validate... How to make Spring web Login form? HTML Login Page Code
How to create simple HTML Login Page?
with JavaScript. You will  learn How to create a simple HTML login page...Simple HTML Login Page- Create a Simple HTML Login page and validate... How to make Spring web Login form? HTML Login Page Code
Easily create JSP page
Easily create JSP page  Hi, How I can easily create JSP page? Where... Pages and its easy to create a simple JSP page. Check the tutorial: How to Create JSP Page? Thanks
create the SQL tables from an XML schema
create the SQL tables from an XML schema  I'm using Eclipse, Please let me know if anyone developped an application that would automatically create the SQL tables from an XML schema
how to create session for login
how to create session for login  how to create session for login? how to display uploaded resume and images in the profile
How to write to xml file in Java?
How to write to xml file in Java?  Hi Friends, Can anyone help me how to write in xml file in Java programming. Please fill free to give example... offers the opportunity to create XML file. For more details visit link text
How to create form in Swings
How to create form in Swings  How to create registration, login and question form in Java Swing?   Creating different forms in Java Swing - Examples how to create registration form in swing swing login form example
How to create a class in java
How to create a class in java  I am a beginner in programming and tried to learn how to do programming in Java. Friends please explain how can I create a class in Java
how to create web aplli
how to create web aplli  how to Create a web application using any technology to display 10 most relevant tweets from Twitter in real-time for the keyword "@cldmgc
how to create web aplli
how to create web aplli  how to Create a web application using any technology to display 10 most relevant tweets from Twitter in real-time for the keyword "@cldmgc
How to Create Keyboard in JAVA
How to Create Keyboard in JAVA  please help me to create On-Screen Keyboard with java and please give me an another idia to make it ..............iam waiting for your help ,think u so much
create a one web page
create a one web page  create a one web page with stored values in a database
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
how to create a table
how to create a table  create table tablename (name varchar(10),name.... Use the following query: create table tablename (name varchar(10),address varchar(10)); For more information, visit the following link: Java Create

Ads