Home Answers Viewqa Ajax how to create a xml page

 
 


salim
how to create a xml page
0 Answer(s)      11 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);
        }
}
}
View Answers









Related Pages:
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"> <
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
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
Creating XMl file - XML
Creating XMl file   I went on this page: http://www.roseindia.net/xml/dom/createblankdomdocument.shtml and it shows me how to create an XML file, however there is something I don't understand. I have to create an XML file
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
XML Tutorial
XML and HTML. You will also learn how to start using XML in your applications... was designed to display data and to focus on how data looks. XML tags... for information storage and interchange, and give you a general idea of how XML can
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 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
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 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
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
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>
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
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
Display image on JSP page using XML
display a image on JSP page by using XML.  This example will examine how to parse and expose XML information using the JAXP with a JSP page. This tutorial... Display image on JSP page using XML   
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
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
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
XML Interviews Question page24,xml Interviews Guide,xml Interviews
; How do I create documents that use XML namespaces? The same as you create...;    How can I validate an XML document that uses XML...;  How can I check that a document conforms to the XML namespaces
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
XML base64 ecoding - XML
XML base64 ecoding  Hello..I have this code which is in the JSP page and generates XML... I want this to have base64 encoding.. I have no idea how to do that..can anyone help me thanks %out.print
XML Interviews Question page29,xml Interviews Guide,xml Interviews
XML resource.    How do I contribute? The XPointer... to be inserted into XML documents in order to create and describe links between resources. It uses XML syntax to create structures that can describe links similar
XML Interviews Question page8,xml Interviews Guide,xml Interviews
use it to create an XML file: give your editor the declarations: <?xml....    How do I get XML into or out of a database? Ask your... XML Interviews Question page8   
XML Interviews Question page7,xml Interviews Guide,xml Interviews
the rest of this question carefully.    How do I create my... XML Interviews Question page7       If XML is just a subset of SGML, can I use XML
XML and Velocity
XML and Velocity  How to create xml file using velocity template engine
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 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 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 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
Designing XML Schema
the  XML namespaces (we will discuss it in the coming segment of current page... Designing XML Schema       XML documents can have a reference to a DTD or to an XML Schema. A Simple
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
XML
XML  How i remove a tag from xml and update it in my xml
XML Books
as XML. How and why to create well formed documents, and how to create your own DTDs... to learn how to read and write XML documents from their code. The paper version... is a comprehensive introduction to using XML for Web page design. It shows you
XML
XML  create flat file with 20 records. Read the records using xml parser and show required details
XML
XML  please tell me how i remove one tag out of all similar type of tags in xml
xml
xml  how can i remove white space and next line when i copy stream to xml file
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
XML
XML  Design an XML to maintain book details to do the following: (i) Separate Data (ii) Exchange Data (iii) Store Data (iv) Create new language
xml
xml  Design an XML to maintain book details to do the following: (i) Separate Data (ii) Exchange Data (iii) Store Data (iv) Create new language
how to create servlet
how to create servlet   package com.controller; import... if(request.getParameter("page").equalsIgnoreCase("create...(Exception e) { System.out.println("Error in controller create
how to create using jsp
how to create using jsp  code 1: <%@ page language="java...;%=request.getContextPath()%>/Controller"> <input type="hidden" name="page" value="create...; <title>Create New Student</title> </head> <
web.xml - XML
web.xml  Can you please help me to create web.xml I tried to create like this in editplus.. and enter ctrl + B It shows some error.. ---- The XML page cannot be displayed Cannot view XML input using style sheet. Please
how to parse xml in j2me tutorial
how to parse xml in j2me tutorial   i want to parse xml file in j2me wireless toolkit.i saw ur examples & source code for parsing xml file... it is running so can anyone pls tell me how to create a localhost easily step by step
Create Data Grid in JSP page
Create Data Grid in JSP page       This is detailed code that how to create data grid that shows data from database table in jsp page. In this jsp code given
creating index for xml files - XML
creating index for xml files  I would like to create an index file for xml files which exist in some directory. Say, my xml file is like below: smith 23 USA john 25 USA ... ... All xml files in the directory have
Retrieving Data From the XML file
and expose XML information using the JAXP with a JSP page. This example is only geared towards showing how to construct a Java object from an XML document. ... Retrieving Data From the XML file   
hi - XML
hi  Can you plz tell mee about Rss feeds.What is the purpose of xml in RSS? how we can develope an RSS using XML  RSS generaly used..., defined in the 1.0 version of XML. Information provided by a website in an XML file

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.