How to convert ResultSet of MySQL to XML

How can we convert ResultSet of MySQL using Hibernate into XML packet for JSP?

maybe something like this
http://beansource.sourceforge.net

Similar Messages

  • HOW TO CONVERT PDF FILE IN TO XML FILE?

    HOW TO CONVERT PDF FILE IN TO XML FILE

    No Office programs can open a pdf and edit the contents so you will have to get a different app to convert teh pdf into xls format. There are plenty to be found on the web.
    Rod Gill
    The one and only Project VBA Book
    Rod Gill Project Management

  • How to Convert Oracle Apps Report into XML Publisher

    Hi
    How to Convert Oracle Apps Report into XML Publisher?
    Thanks

    In Brief :
    Re: XML Publisher
    In Details :
    http://www.oracle.com/technology/products/xml-publisher/docs/XMLEBSRep.pdf

  • How to convert HL7 file into an XML

    Hi All,
    I am new to HL7,can any one tell how to convert HL7 file into an XML.Give sample demo or related links.
    My sample HL7 file is as follows how can I convert.
    FHS|^~\&||Tax ID123^Lab Name123^L|||201110191435||HL7.txt||1234567|123||
    PID|seqno|123||john^chambers^^Dr^Dr|2456 california ave^San jose^CA^85254|19601212|M
    FHS|^~\&||Tax ID123^Lab Name123^L|||File Creaqted Date|File Security|FileName||File HeaderComment||Facility|FileCreatedDateTime|File Security|File Name|File Header Comment|FileControlId|Reference File Control ID|
    PID|seqno|patientId||LastName^FirstName^MiddleName^Title^Degree|Street^City^State^zip|patientDOB|gender
    <Report>
    <FileHeader>
    <FileSendingApplication> </FileSendingApplication>
    <TaxID>Tax ID123</TaxID>
    <LabName>Lab Name123</LabName>
    <FileSendngFacilityType>L</FileSendngFacilityType>
    <FileReceivingApplication></FileReceivingApplication>
    <FileReceivingFacility></FileReceivingFacility>
    <FileCreatedDateTime>201110191435</FileCreatedDateTime>
    <FileSecurity></FileSecurity>
    <FileName>HL7.txt</FileName>
    <FileHeaderComment></FileHeaderComment>
    <FileControlId>1234567</FileControlId>
    <ReferenceFileControlID></ReferenceFileControlID>
    <FileHeader>
    <Patient>
    <seqno> </seqno>
    <patientId>Tax ID123</patientId>
    <LastName>Lab Name123</LastName>
    <FirstName>L</FirstName>
    <MiddleName></MiddleName>
    <Title> </Title>
    <Degree></Degree>
    <Street></Street>
    <City></City>
    <State>HL7.txt</State>
    <Zip></Zip>
    <patientDOB>1234567</patientDOB>
    <gender></gender>
    <Patient>
    </Report>
    Thanks
    Mani

    Hi Prabu,
    With input as in single line I'm able to get the the output but with the multiple lines of input,error was occured.Any suggestions.
    Error while translating. Translation exception. Error occured while translating content from file C:\temp\sampleHL7.txt Please make sure that the file content conforms to the schema. Make necessary changes to the file content or the schema.
    The payload details for this rejected message can be retrieved.          Show payload...
    Thanks
    Mani

  • How to convert ResultSet's value to String

    Dear JDC's
    plz tell me how to convert ResultSet's value to String.
    kashif

    I want to read a whole array from a table into a String[]
    and then send it to another servlet before I forward it all to anther servlet with request.setParameter.....
    Any ideas how to solve it....that is how far I got so far:
    rs=pgresult("select count (answer) from answers where qid="+idnum);
                                                           numberofquestions = rs.getInt("mynumber");     
                                                           rs=pgresult("SELECT answer FROM answers WHERE qgroup="+qgroup);
                                                           allanswers = new String[numberofquestions];
                                                           allanswers = (String[])rs.getArray(1).getArray();     
                                                           req.setParameter("allanswers",allanswers);
                                                           RequestDispatcher dispatcher = req.getRequestDispatcher("editanswers");
                                                           dispatcher.forward(req,res);
    Tobi

  • How to convert CSV/Text files to XML format

    Hi,
    I am trying to convert a .csv/.txt(Flat) file(s) to XML format. How can i achive this?
    Ex: I want to convert this text file to XML.
    Book#      first name                                last name                               ID#                 ID1#      F#
    B99          FRISBY                                  NASIER                                  LUCJ A         A 3127      1    
    B131         HAWKINS                              MICHAEL                               LUCJ A         A 3129       2    
    B313         KING                                     JOSHUA                                 CUCJ I         I-DORM      10   
    B307         GRAVES                               KIMBERLY                              NUCJ F         F-DORM     24-FL
    R469         HEATH                                  DARRELL                                SUCJ A         A 3132       1    
    R212         PEREZ                                  DARRELL                                SUCJ A         A 3133       2    
    R62          COFFEY                                GREGORY                               NUCJ HC      H C 3112    3FLOOR
    R215         BLACKWELL                          DEREK                                   LUCJ OOW     W 01       1     Could anyone please suggest me if we have any open source java api to acheive this?
    Thanks,
    Srikanth.

    Have a look at [http://servingxml.sourceforge.net/|http://servingxml.sourceforge.net/] or [http://www.talend.com/|http://www.talend.com/]

  • How to convert Oracle Collection(Objects) to XML dynamically?

    Dear members,
    As a requirement I need to pass the collection of values(typically a object or a table type) to a procedure and generate a XML file on the fly basing on these collection values.I am not sure how to do it.Can anyone please guide me on that?
    Thanks

    Hi,
    depending on how often/how complex the programming job is:
    --- complex Xml structure, lots of changes: Have a look at [Oracle XML DB Developers Guide|http://download-west.oracle.com/docs/cd/B28359_01/appdev.111/b28369/toc.htm], chapter 3: Using Oracle XML DB
    --- simple:
    Here's a quick sample for generating Xml from SQL collection types. Works (at least) >= 10g.
    create type xxp_foo_type as object (
    a number
    instantiable
    create type xxp_foo_tab as table of xxp_foo_type
    declare
    v_table xxp_foo_tab := xxp_foo_tab();
    v_xml xmltype;
    begin
    v_table.extend(2);
    v_table(1) := xxp_foo_type( 1 );
    v_table(2) := xxp_foo_type( 2 );
    select xmlelement( "MyXml",
    xmlagg(
    xmlelement( "SomeValue", t.a )
    into v_xml
    from table( v_table ) t
    dbms_output.put_line( v_xml.getStringVal() );
    end;

  • How To Convert Oracle To Mysql

    Hi,
    I have an oracle database with certain number of objects in it and I want it to convert/migrate to mysql.
    I have done the reverse using oracle sql developer and it was pretty convenient,but I am not finding any likewise feature for converting oracle to mysql.
    Can someone help me to do so?
    Thanks
    Arnab

    Arnab,
    Even if Google didn't provide a 'free lunch', ie software you don't need to pay for, your attempt to get something for free should be directed at a MySQL forum and not at an Oracle forum.
    Why would anyone using Oracle convert to a product with much less features?
    Your question is off-topic here.
    Sybrand Bakker
    Senior Oracle DBA

  • How to Convert internal table data into xml and xml data into internal tab

    Hi Guys,
          I have a requirement  that  i have to convert the internal table data into xml format and viceversa . for my requirement  i came to know that i have to use Transformations concept.  i done the converting the data from internal table into xml data by using standard Tranformations. My Question is 
    1) Can i use same Transformation to convert the xml data into abap internal table. if it is possible then how ???
    2) Is it possible using the standard Transformation  or I have to go for XSLT approach
    Please help me out from this guys,
    Thanks and Regards
    Koti

    Hi Koti,
    This is possible. There is a link. With the help of this link you can convert ABAP data to XML and vice versa.
    Link: http://www.heidoc.net/joomla/index.php?option=com_content&view=article&id=15:sapxslt&catid=22:sap-xslt&Itemid=31

  • How to convert a dxf file to xml fifle with CAD.xsd

    Hello~
    I have generated a test vi by motion asistant, but I found that the VI can only input with xml format file.
    My CAD files are all dxf format for kinds of models.
    Therefore, I have to write a VI to convert dxf to xml.
    How can I do that?Can anyone give me some suggestions?
    I have searched forum and found Labview creates the xml file comply with CAD.xsd shema, but I don't know how to use that shema.
    The tutorial is : http://zone.ni.com/devzone/cda/tut/p/id/3718#toc2
    Please help me.
    Thanks a lot.

    Hi,
    According to the following document, it seems there must be some specific conversion done by motion assistant when generating LabVIEW code, in order to parse the DXF file into a XML which complies with a specific schema.
    http://www.ni.com/white-paper/3718/en/#toc5
    I believe that Ann must have made some effort to study both file formats and to build a vi doing this conversion, yet I think this would so far be the best chance we can have.
    The DXF file information is provided in the Ann's latest post, and the XML schema is located in the <Motion Assistant>\bin\mxwPlugins\XMLSchema\CAD.xsd.

  • How to convert 864 Transaction code into XML in EDI to File Scenario

    Hello Friends,
                            Can any body help me out in using 864 Transaction Code (Tex Message) in EDI to Flat File Conversion?? I mean i am using just 2 Fields i.e  Name and Address.I didnt understand the Format given<u><i>..Here is the format for Name
    N1 Name                                                           </i></u>                 Pos: 040 Max: 1
                                                                                    Heading - Optional
                                                                                    Loop: N1 Elements: 4
    To identify a party by type of organization, name, and code
    Element Summary:
    <u><i>Ref     Id       Element Name                     Req  Type    Min/Max    Usage</i></u>
    N101 98        Entity Identifier Code             M      ID        2/3          Must use
    Description: Code identifying an organizational entity, a physical
    location, property or an individual
    All valid standard codes are used.
    N102   93      Name                                  C     AN       1/60            Used
    Description: Free-form name
    N103 66        Identification Code Qualifier   C     ID        1/2              Used
    Description: Code designating the system/method of code structure used
    for Identification Code (67)
    All valid standard codes are used.
    N104 67        Identification Code                C     AN        2/80           Used
    Description: Code identifying a party or other code
    Syntax:
    1. N102 R0203 -- At least one of N102 or N103 is required.
    2. N103 P0304 -- If either N103 or N104 are present, then the others are required.
    Comments:
    1. This segment, used alone, provides the most efficient method of providing organizational identification. To obtain this efficiency the "ID Code" (N104)
    must provide a key to the table maintained by the transaction processing party.
    2. N105 and N106 further define the type of entity in N101.
    [<u>b]
    Here is the format for Address</b></u>
    N3 Address Information                                                 Pos: 060 Max: 2
                                                                                    Heading - Optional
                                                                                    Loop: N1 Elements: 2
    To specify the location of the named party
    Element Summary:
    <b><u><i>Ref            Id              Element Name            Req     Type      Min/Max   Usage</i></u></b>
    N301        166            Address Information       M        AN         1/55       Must use
    Description: Address information
    N302 166 Address Information
    Description: Address information                     O          AN         1/55       Used
    So Help me hoe to convert this into XML...

    try this
    For EDI U need SEEBURGER Adapter or Conversion agent by itemfield.
    Using Conversion agent convert EDI Into XSD and Import using External definition.
    Have look
    EDI Conversion
    Re: Seeburger Splitter adapter!!
    Thanks

  • HOW TO CONVERT SAP DB TABLE TO XML FILE

    Initially I want to store sap db table as xml file so that an external program can read it. Also i want that when table is updated only updated data is stored in xml file.
    Edited by: Sandip Mane on Apr 2, 2008 9:19 PM
    Edited by: Alvaro Tejada Galindo on Apr 2, 2008 12:47 PM

    should do this way
    CALL TRANSFORMATION (`ID`)
    SOURCE output = your_itab[]
    RESULT XML xml_out.
    also check this link
    Convert data from internal table to XML file.

  • How to convert .xsd file into corresponding .xml file?

    Hi,
    If any one of you know this, please let me know?
    Thanks,
    Veera

    You cannot convert XSD into an XML as it is already a XMl file, but it defines the rules and restrictions for other XML which abide them.

  • How to convert a delimited string to XML?

    Hi there,
    Please help me to convert a pipe delimited string into XML, e.g.
    string -------SubName:abc|SuvValue:123|
    required XML:
    <ROWS>
    <ROW>
    <SubName>abc</SubName>
    <SubValue>123</SubValue>
    </ROW>
    </ROWS>
    or
    string -------abc|123|
    required XML:
    <ROWS>
    <ROW>
    <SubName>abc</SubName>
    <SubValue>123</SubValue>
    </ROW>
    </ROWS>
    -----i am trying to first parse the string into a table type and then using the DBMS_XMLGen.getXML function but unable to get values from table type...
    any prompt response is highly appriciated...
    Regards, Hassan

    Hi Hassan,
    If your version supports it (ie 10gR2 and upwards), you can use XQuery to directly parse the string and generate the XML :
    SQL> SELECT XMLQuery(
      2   '<ROWS>
      3    <ROW> {
      4     for $i in ora:tokenize($str,"\|")
      5     return
      6      if ($i) then element {substring-before($i,":")} {substring-after($i,":")}
      7      else ()
      8   } </ROW>
      9   </ROWS>'
    10   passing sys_xmlgen('SubName:abc|SubValue:123|') as "str"
    11   returning content
    12  ).getClobVal()
    13  FROM dual;
    XMLQUERY('<ROWS><ROW>{FOR$IINO
    <ROWS><ROW><SubName>abc</SubName><SubValue>123</SubValue></ROW></ROWS>
    Each element is built based on its name from the input string.

  • How to convert resultset variable to integer variable

    hii..i am making a jsp page in which i get the name of the product from the available products in the database and i give the quantity of the product from the jsp page which get stored in the database.Now the problem is when i give I want that only the product which i want come to the screen from the available products..for this i had made a combobox which selects the next item I want,but it is not working.Can anyone help me out.I am wriiting the code which I have written,Although it's not working.
    <%@page language="java"%>
    <%@page import="java.sql.*"%>
    <%@page import="connect.connection"%>
    <%
    String productId = request.getParameter("pname")==null? "": request.getParameter("pname");
    String strQuantity="";
    %>
    <%
         Connection con1=null;
         connection conn1=null;
         con1=conn1.getconnection();
         Statement st=null;
         ResultSet rs=null;
         st=con1.createStatement();
    %>
    <!--<script>
    function subject()
    document.registration.action="buyerForm2.jsp";
    //document.registration.submit();
    </script>-->
    <HTML>
    <HEAD>
    <TITLE>Shree Cement : Register Buyer</TITLE>
    <script language="javascript" src="../js/buyervalidate.js"></script>
    </HEAD>
    <body bgColor=3F7790 text=#000000 topMargin=12 border="0">
    <!-- Begin header section -->
    <jsp:include page="../header/header.jsp" />
    <!-- End header section -->
    <table width="800" align="center" border="0">
    <tr>
    <td bgcolor="#EBEBEB" width="135" valign="top">
         <!--Begin left nav section-->
              <jsp:include page="../include/left-nav-main.jsp" />
              <!-- End left nav section-->
    </td>
    <!--main section of pp Buyer-->
         <br>
    <td rowspan=7 valign=top width="58%" align="center">
         <table>
                        <tr>
                        <td class="img">Registration Form</td>
    <td width="60%"></td>
    <td align="left" class="img1">Buyer</td>
                        </tr>
         </table>
    <form name="login" method="post">
    <table cellpadding=3 class="pp">
    <tr>
    <td>Online bid date :</td>
    <td colspan=3 >
    <select name="monthonline" class="formfield1" value="month" >
    <option value="Month">-Month-
    <option value=1> January
    <option value=2>February
    <option value=3>March
    <option value=4>April
    <option value=5> May
    <option value=6> June
    <option value=7> July
    <option value=8> August
    <option value=9> September
    <option value=10> October
    <option value=11> November
    <option value=12> December
    </select>
              </td>
                   <td colspan=3 >
    <select name="dateonline" class="formfield1" value="date">
    <option value="Day">-Day-
    <option value=1>1
    <option value=2>2
    <option value=3>3
    <option value=4>4
    <option value=5>5
    <option value=6>6
    <option value=7>7
    <option value=8>8
    <option value=9>9
    <option value=10>10
    <option value=11>11
    <option value=12>12
    <option value=13>13
    <option value=14>14
    <option value=15>15
    <option value=16>16
    <option value=17>17
    <option value=18>18
    <option value=19>19
    <option value=20>20
    <option value=21>21
    <option value=22>22
    <option value=23>23
    <option value=24>24
    <option value=25>25
    <option value=26>26
    <option value=27>27
    <option value=28>28
    <option value=29>29
    <option value=30>30
    <option value=31>31
    </select>
                   </td>
                   <td >
    <select name="yearonline" class="formfield1" value="year" align="left">
    <option value="Year">-Year-
    <option value=2003>2003
    <option value=2004>2004
    <option value=2005>2005
    <option value=2006>2006
    <option value=2007>2007
    <option value=2008>2008
    <option value=2009>2009
    <option value=2010>2010
    </select>
    </td>
    </tr>
    <tr>
    <td>Start time :</td>
    <td colspan=3 width="296">
    <select name="starttime" class="formfield1" size=1>
    <option selected value="08:00:00">8 : 00 am
    <option value="08:15:00">8 : 15 am
    <option value="08:30:00">8 : 30 am
    <option value="08:45:00">8 : 45 am
    <option value="09:00:00">9 : 00 am
    <option value="09:15:00">9 : 15 am
    <option value="09:30:00">9 : 30 am
    <option value="09:45:00">9 : 45 am
    <option value="10:00:00">10 : 00 am
    <option value="10:15:00">10 : 15 am
    <option value="10:30:00">10 : 30 am
    <option value="10:45:00">10 : 45 am
    <option value="11:00:00">11 : 00 am
    <option value="11:15:00">11 : 15 am
    <option value="11:30:00">11 : 30 am
    <option value="11:45:00">11 : 45 am
    <option value="12:00:00">12 : 00 pm
    <option value="12:15:00">12 : 15 pm
    <option value="12:30:00">12 : 30 pm
    <option value="12:45:00">12 : 45 pm
    <option value="13:00:00">1 : 00 pm
    <option value="13:15:00">1 : 15 pm
    <option value="13:30:00">1 : 30 pm
    <option value="13:45:00">1 : 45 pm
    <option value="14:00:00">2 : 00 pm
    <option value="14:15:00">2 : 15 pm
    <option value="14:30:00">2 : 30 pm
    <option value="14:45:00">2 : 45 pm
    <option value="15:00:00">3 : 00 pm
    <option value="15:15:00">3 : 15 pm
    <option value="15:30:00">3 : 30 pm
    <option value="15:45:00">3 : 45 pm
    <option value="16:00:00">4 : 00 pm
    <option value="16:15:00">4 : 15 pm
    <option value="16:30:00">4 : 30 pm
    <option value="16:45:00">4 : 45 pm
    <option value="17:00:00">5 : 00 pm
    <option value="17:15:00">5 : 15 pm
    <option value="17:30:00">5 : 30 pm
    <option value="17:45:00">5 : 45 pm
    <option value="18:00:00">6 : 00 pm
    <option value="18:15:00">6 : 15 pm
    <option value="18:30:00">6 : 30 pm
    <option value="18:45:00">6 : 45 pm
    <option value="19:00:00">7 : 00 pm
    <option value="19:15:00">7 : 15 pm
    <option value="19:30:00">7 : 30 pm
    <option value="19:45:00">7 : 45 pm
    <option value="20:00:00">8 : 00 pm
    </select>
    </td>
    </tr>
    <tr>
    <td>End
    time :</td>
    <td colspan=3 width="296">
    <select name="endtime" class="formfield1" size=1><br>
    <option selected value="08:00:00">8 : 00 am
    <option value="08:15:00">8 : 15 am
    <option value="08:30:00">8 : 30 am
    <option value="08:45:00">8 : 45 am
    <option value="09:00:00">9 : 00 am
    <option value="09:15:00">9 : 15 am
    <option value="09:30:00">9 : 30 am
    <option value="09:45:00">9 : 45 am
    <option value="10:00:00">10 : 00 am
    <option value="10:15:00">10 : 15 am
    <option value="10:30:00">10 : 30 am
    <option value="10:45:00">10 : 45 am
    <option value="11:00:00">11 : 00 am
    <option value="11:15:00">11 : 15 am
    <option value="11:30:00">11 : 30 am
    <option value="11:45:00">11 : 45 am
    <option value="12:00:00">12 : 00 pm
    <option value="12:15:00">12 : 15 pm
    <option value="12:30:00">12 : 30 pm
    <option value="12:45:00">12 : 45 pm
    <option value="13:00:00">1 : 00 pm
    <option value="13:15:00">1 : 15 pm
    <option value="13:30:00">1 : 30 pm
    <option value="13:45:00">1 : 45 pm
    <option value="14:00:00">2 : 00 pm
    <option value="14:15:00">2 : 15 pm
    <option value="14:30:00">2 : 30 pm
    <option value="14:45:00">2 : 45 pm
    <option value="15:00:00">3 : 00 pm
    <option value="15:15:00">3 : 15 pm
    <option value="15:30:00">3 : 30 pm
    <option value="15:45:00">3 : 45 pm
    <option value="16:00:00">4 : 00 pm
    <option value="16:15:00">4 : 15 pm
    <option value="16:30:00">4 : 30 pm
    <option value="16:45:00">4 : 45 pm
    <option value="17:00:00">5 : 00 pm
    <option value="17:15:00">5 : 15 pm
    <option value="17:30:00">5 : 30 pm
    <option value="17:45:00">5 : 45 pm
    <option value="18:00:00">6 : 00 pm
    <option value="18:15:00">6 : 15 pm
    <option value="18:30:00">6 : 30 pm
    <option value="18:45:00">6 : 45 pm
    <option value="19:00:00">7 : 00 pm
    <option value="19:15:00">7 : 15 pm
    <option value="19:30:00">7 : 30 pm
    <option value="19:45:00">7 : 45 pm
    <option value="20:00:00">8 : 00 pm
    </select>
    </td>
    </tr>
              </table>
              <table class="log" cellpadding=3 cellspacing=0 border="0">
         <% String strname="";
              rs=st.executeQuery("select name from product");
              if(rs.next())
    strname=rs.getString(1);
    %>
              <tr>     
              <td align="left"><%=strname%></td>
              <td></td>
    <td>Quantity(in lacs):</td>
    <td><input type="text" class="formfield" name="items2" onkeypress="if(event.keyCode >47 && event.keyCode < 58){event.returnValue = true;} else{event.returnValue = false;}"></td>
              </tr>
              <tr>          
    <td>Select Product Name :</td>
              <td></td>
    <td>
    <select name="pname"><option>select</option>
              <%
                        String username="";
                        rs=st.executeQuery("select name from product");
                        while(rs.next())
    username = rs.getString(1);
              %>
    <option <%if(productId.equals(username)){%> <%}%>><%=username%></option>
    <% } %>
              </select>
              </td>
    </tr>
              <%          
                        int count=1;
                        rs=st.executeQuery("select max(auction_id) from auction1");
         int num = Integer.parseInt(pageContext.findAttribute("num").toString());
                        out.println(num);
                        //for(count=1;count < num;count++)
                             //out.println(rs);
                        String name="";          
                             rs=st.executeQuery("select name from product where name='"+username+"'");
                             //out.println(rs);
                             if(rs.next())
                                  name=rs.getString(1);
                             if(name.equals(username))
                             {%>
                                  <tr>
                                  <td align="left"><%=name%></td>
                                  <td>Quantity(in lacs):</td>
                                  <td><input type="text" class="formfield" name="items2" onkeypress="if(event.keyCode > 47 && event.keyCode < 58){event.returnValue = true;} else{event.returnValue = false;}"></td>
                                  </tr>
              <%}
              %>
    </table>
              <table cellpadding="5" align="center" bgcolor=#FFFFFF width="397">
    <tr>
                   <td>
                        <input type="submit" value="Add more Items" onClick="add();">
                   </td>
                   <td width="115"align="right">
                        <input type="submit" value="Continue"onClick="return validate();" name="submit">
                   </td>
    <td>
                        <input type="reset" value="Clear all fields" name="reset">
    </td>
    </tr>
    </table>
         </form>               
    </td>
    <!-- End Main section -->
    <td width="23%" valign="top" bgcolor="#EBEBEB" border="0">
         <!--Begin right nav section-->
              <jsp:include page="../include/rightbar2.jsp" />          
              <!-- End right nav section -->
              </td>
    <!-- Begin footer section -->
    <jsp:include page="../footer/footer.jsp" />
    <!-- End footer section -->

    It's highly recommended to use any business, logic and DB access tasks in a Servlet. JSP should be used only to display HTML forms/results.
    <%@page language="java"%>
    <%@page import="java.sql.*"%>
    <%@page import="connect.connection"%>
    <% String productId = request.getParameter("pname")==null? "": request.getParameter("pname"); String strQuantity=""; %>
    <% Connection con1=null; connection conn1=null; con1=conn1.getconnection(); Statement st=null; ResultSet rs=null; st=con1.createStatement(); %>
    <!--<script> function subject() { document.registration.action="buyerForm2.jsp"; //document.registration.submit(); } </script>-->
    <HTML>
    <HEAD>
    <TITLE>Shree Cement : Register Buyer</TITLE>
    <script language="javascript" src="../js/buyervalidate.js"></script>
    </HEAD>
    <body bgColor=3F7790 text=#000000 topMargin=12 border="0">
    <!-- Begin header section -->
    <jsp:include page="../header/header.jsp" />
    <!-- End header section -->
    <table width="800" align="center" border="0">
         <tr>
              <td bgcolor="#EBEBEB" width="135" valign="top"><!--Begin left nav section--> <jsp:include
                   page="../include/left-nav-main.jsp" /> <!-- End left nav section--></td>
              <!--main section of pp Buyer-->
              <td rowspan=7 valign=top width="58%" align="center">
              <table>
                   <tr>
                        <td class="img">Registration Form</td>
                        <td width="60%"></td>
                        <td align="left" class="img1">Buyer</td>
                   </tr>
              </table>
              <form name="login" method="post">
              <table cellpadding=3 class="pp">
                   <tr>
                        <td>Online bid date :</td>
                        <td colspan=3><select name="monthonline" class="formfield1" value="month">
                             <option value="Month">-Month-
                             <option value=1>January
                             <option value=2>February
                             <option value=3>March
                             <option value=4>April
                             <option value=5>May
                             <option value=6>June
                             <option value=7>July
                             <option value=8>August
                             <option value=9>September
                             <option value=10>October
                             <option value=11>November
                             <option value=12>December
                        </select></td>
                        <td colspan=3><select name="dateonline" class="formfield1" value="date">
                             <option value="Day">-Day-
                             <option value=1>1
                             <option value=2>2
                             <option value=3>3
                             <option value=4>4
                             <option value=5>5
                             <option value=6>6
                             <option value=7>7
                             <option value=8>8
                             <option value=9>9
                             <option value=10>10
                             <option value=11>11
                             <option value=12>12
                             <option value=13>13
                             <option value=14>14
                             <option value=15>15
                             <option value=16>16
                             <option value=17>17
                             <option value=18>18
                             <option value=19>19
                             <option value=20>20
                             <option value=21>21
                             <option value=22>22
                             <option value=23>23
                             <option value=24>24
                             <option value=25>25
                             <option value=26>26
                             <option value=27>27
                             <option value=28>28
                             <option value=29>29
                             <option value=30>30
                             <option value=31>31
                        </select></td>
                        <td><select name="yearonline" class="formfield1" value="year" align="left">
                             <option value="Year">-Year-
                             <option value=2003>2003
                             <option value=2004>2004
                             <option value=2005>2005
                             <option value=2006>2006
                             <option value=2007>2007
                             <option value=2008>2008
                             <option value=2009>2009
                             <option value=2010>2010
                        </select></td>
                   </tr>
                   <tr>
                        <td>Start time :</td>
                        <td colspan=3 width="296"><select name="starttime" class="formfield1" size=1>
                             <option selected value="08:00:00">8 : 00 am
                             <option value="08:15:00">8 : 15 am
                             <option value="08:30:00">8 : 30 am
                             <option value="08:45:00">8 : 45 am
                             <option value="09:00:00">9 : 00 am
                             <option value="09:15:00">9 : 15 am
                             <option value="09:30:00">9 : 30 am
                             <option value="09:45:00">9 : 45 am
                             <option value="10:00:00">10 : 00 am
                             <option value="10:15:00">10 : 15 am
                             <option value="10:30:00">10 : 30 am
                             <option value="10:45:00">10 : 45 am
                             <option value="11:00:00">11 : 00 am
                             <option value="11:15:00">11 : 15 am
                             <option value="11:30:00">11 : 30 am
                             <option value="11:45:00">11 : 45 am
                             <option value="12:00:00">12 : 00 pm
                             <option value="12:15:00">12 : 15 pm
                             <option value="12:30:00">12 : 30 pm
                             <option value="12:45:00">12 : 45 pm
                             <option value="13:00:00">1 : 00 pm
                             <option value="13:15:00">1 : 15 pm
                             <option value="13:30:00">1 : 30 pm
                             <option value="13:45:00">1 : 45 pm
                             <option value="14:00:00">2 : 00 pm
                             <option value="14:15:00">2 : 15 pm
                             <option value="14:30:00">2 : 30 pm
                             <option value="14:45:00">2 : 45 pm
                             <option value="15:00:00">3 : 00 pm
                             <option value="15:15:00">3 : 15 pm
                             <option value="15:30:00">3 : 30 pm
                             <option value="15:45:00">3 : 45 pm
                             <option value="16:00:00">4 : 00 pm
                             <option value="16:15:00">4 : 15 pm
                             <option value="16:30:00">4 : 30 pm
                             <option value="16:45:00">4 : 45 pm
                             <option value="17:00:00">5 : 00 pm
                             <option value="17:15:00">5 : 15 pm
                             <option value="17:30:00">5 : 30 pm
                             <option value="17:45:00">5 : 45 pm
                             <option value="18:00:00">6 : 00 pm
                             <option value="18:15:00">6 : 15 pm
                             <option value="18:30:00">6 : 30 pm
                             <option value="18:45:00">6 : 45 pm
                             <option value="19:00:00">7 : 00 pm
                             <option value="19:15:00">7 : 15 pm
                             <option value="19:30:00">7 : 30 pm
                             <option value="19:45:00">7 : 45 pm
                             <option value="20:00:00">8 : 00 pm
                        </select></td>
                   </tr>
                   <tr>
                        <td>End time :</td>
                        <td colspan=3 width="296"><select name="endtime" class="formfield1" size=1>
                             <option selected value="08:00:00">8 : 00 am
                             <option value="08:15:00">8 : 15 am
                             <option value="08:30:00">8 : 30 am
                             <option value="08:45:00">8 : 45 am
                             <option value="09:00:00">9 : 00 am
                             <option value="09:15:00">9 : 15 am
                             <option value="09:30:00">9 : 30 am
                             <option value="09:45:00">9 : 45 am
                             <option value="10:00:00">10 : 00 am
                             <option value="10:15:00">10 : 15 am
                             <option value="10:30:00">10 : 30 am
                             <option value="10:45:00">10 : 45 am
                             <option value="11:00:00">11 : 00 am
                             <option value="11:15:00">11 : 15 am
                             <option value="11:30:00">11 : 30 am
                             <option value="11:45:00">11 : 45 am
                             <option value="12:00:00">12 : 00 pm
                             <option value="12:15:00">12 : 15 pm
                             <option value="12:30:00">12 : 30 pm
                             <option value="12:45:00">12 : 45 pm
                             <option value="13:00:00">1 : 00 pm
                             <option value="13:15:00">1 : 15 pm
                             <option value="13:30:00">1 : 30 pm
                             <option value="13:45:00">1 : 45 pm
                             <option value="14:00:00">2 : 00 pm
                             <option value="14:15:00">2 : 15 pm
                             <option value="14:30:00">2 : 30 pm
                             <option value="14:45:00">2 : 45 pm
                             <option value="15:00:00">3 : 00 pm
                             <option value="15:15:00">3 : 15 pm
                             <option value="15:30:00">3 : 30 pm
                             <option value="15:45:00">3 : 45 pm
                             <option value="16:00:00">4 : 00 pm
                             <option value="16:15:00">4 : 15 pm
                             <option value="16:30:00">4 : 30 pm
                             <option value="16:45:00">4 : 45 pm
                             <option value="17:00:00">5 : 00 pm
                             <option value="17:15:00">5 : 15 pm
                             <option value="17:30:00">5 : 30 pm
                             <option value="17:45:00">5 : 45 pm
                             <option value="18:00:00">6 : 00 pm
                             <option value="18:15:00">6 : 15 pm
                             <option value="18:30:00">6 : 30 pm
                             <option value="18:45:00">6 : 45 pm
                             <option value="19:00:00">7 : 00 pm
                             <option value="19:15:00">7 : 15 pm
                             <option value="19:30:00">7 : 30 pm
                             <option value="19:45:00">7 : 45 pm
                             <option value="20:00:00">8 : 00 pm
                        </select></td>
                   </tr>
              </table>
              <table class="log" cellpadding=3 cellspacing=0 border="0">
                   <%      String strname="";
                        rs=st.executeQuery("select name from product");
                        if(rs.next()) {
                             strname=rs.getString(1);
                   %>
                   <tr>
                        <td align="left"><%=strname%></td>
                        <td></td>
                        <td>Quantity(in lacs):</td>
                        <td><input type="text" class="formfield" name="items2"
                             onkeypress="if(event.keyCode >47 && event.keyCode < 58){event.returnValue = true;} else{event.returnValue = false;}"></td>
                   </tr>
                   <tr>
                        <td>Select Product Name :</td>
                        <td></td>
                        <td><select name="pname">
                             <option>--select--</option>
                             <%
                                  String username="";
                                  rs=st.executeQuery("select name from product");
                                  while(rs.next()) { username = rs.getString(1); %>
                                  <option>
                                       <%if(productId.equals(username)){%>
                                       <%}%>
                                       <%=username%>
                                       </option>
                             <% } %>
                        </select></td>
                   </tr>
                   <%
                        int count=1;
                        rs=st.executeQuery("select max(auction_id) from auction1");
                        int num = Integer.parseInt(pageContext.findAttribute("num").toString());
                        out.println(num);
                        //for(count=1;count < num;count++) //{ //out.println(rs); String name=""; rs=st.executeQuery("select name from product where name='"+username+"'"); //out.println(rs); if(rs.next()) { name=rs.getString(1); } //} if(name.equals(username)) {
                   %>
                   <tr>
                        <td align="left"><%=num%></td>
                        <td>Quantity(in lacs):</td>
                        <td><input type="text" class="formfield" name="items2"
                             onkeypress="if(event.keyCode > 47 && event.keyCode < 58){event.returnValue = true;} else{event.returnValue = false;}"></td>
                   </tr>
              </table>
              <table cellpadding="5" align="center" bgcolor=#FFFFFF width="397">
                   <tr>
                        <td><input type="submit" value="Add more Items" onClick="add();"></td>
                        <td width="115" align="right"><input type="submit" value="Continue" onClick="return validate();" name="submit">
                        </td>
                        <td><input type="reset" value="Clear all fields" name="reset"></td>
                   </tr>
              </table>
              </form>
              </td>
              <!-- End Main section -->
              <td width="23%" valign="top" bgcolor="#EBEBEB" border="0"><!--Begin right nav section-->
              <jsp:include page="../include/rightbar2.jsp" /> <!-- End right nav section --></td>
              <!-- Begin footer section -->
              <jsp:include page="../footer/footer.jsp" />
              <!-- End footer section -->

Maybe you are looking for

  • Unable to capture UCOMM for cancel & Exit

    Hi, From the fbv2 transaction(Invoice Change) invoice change, we need to capture the User Command (SY-UCOMM) for the exit & cancel, but we are not able to find any BTE,Enhancements for capturing that.Kindly let me know if any other solution is possib

  • Populate word document with default metadata information

    Problem is revers as it is available in internet.  I have created list and  columns. Which are populated  with default value. I have created word  template. I can enter  data related to "Document properties", ect. When I save that document to documen

  • Hide price in ALL Tx accg to material authorization group or material group

    Hello, I'm currently working on a customer's need which consists in hiding the material price in all transactions (MM, SD, FI...), according to the material master authorization group OR the material group. The difficulty remains on the fact that use

  • About servletContext (i need a good explanation)

    Hi! what is the use of servlet context. what is the difference between request.GetRequestDispatcher and servletContext.gerRequestDispatcher . Friends,i need a clear explanation with some example code.

  • DAte field trouble consuming web service

    Hi Guys I have developed a Webservice from a FM. When i try to test it it gives me the error deserialization failed. I think is due to the date fields. How can i solve it? Thanks!! Jon