[b] Populating List Box from MySQL Database[/b]

Hi all,
I'm trying to populate a JComboBox from MySQL database, I Have an applet which send's the query to a server through sockets on the localhost, but when i try to retrieve the result set from the MySQL database, i get an index out of bounds exception, It's probably something simple, any help regarding the above problem!! I've included the code below!!
Cheers
Dave
java.lang.ArrayIndexOutOfBoundsException: 1
at dbWrapper1.Select(dbWrapper1.java:97)
at TestUpdateDB.main(TestUpdateDB.java:29)
Applet Code:
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
import java.util.*;
import java.io.*;
import java.net.*;
*     @version  04/18/05
*     @author David Lawless
public class cust extends JApplet implements ActionListener
//Declare Labels for Form
private JLabel titleLabel;
private JLabel firstNameLabel;
private JLabel lastNameLabel;
private JLabel addressLabel;
private JLabel countyLabel;
private JLabel countryLabel;
//Declare Input fields for user
private JTextField firstNameText;
private JTextField lastNameText;
private JTextField addressLineOneText;
private JTextField addressLineTwoText;
private JTextField addressLineThreeText;
//Declare list for title box
private JComboBox titleList;
private String[] title = {"Mr.","Mrs.","Miss","Ms","Dr."};
//Declare list for county box
private JComboBox countyList;
//Called when this applet is loaded into the browser.
public void init()
lookAndFeel();
//Initialise Labels
firstNameLabel = new JLabel("First Name * ");
lastNameLabel = new JLabel("Last Name * ");
titleLabel = new JLabel("Title * ");
addressLabel = new JLabel("Address *");
countyLabel = new JLabel("County *");
countryLabel = new JLabel("Country *");
//Initialise title List
titleList = new JComboBox( title );
titleList.setActionCommand("Title");
//Set up Text fields
firstNameText = new JTextField(30);
firstNameText.setToolTipText("Please enter your first name here");
lastNameText = new JTextField(30);
lastNameText.setToolTipText("Please enter your surname here");
addressLineOneText = new JTextField(30);
addressLineTwoText = new JTextField(30);
addressLineThreeText = new JTextField(30);
//Retrieve County List From Database
//countyList = new JComboBox( counties );
try
     try
          Socket mySocket = new Socket ("127.0.0.1", 1983 );
          ObjectOutputStream out = new ObjectOutputStream(mySocket.getOutputStream());
          String entry1 ="SELECT county FROM data";
          out.writeObject(new String(entry1));
          ObjectInputStream in = new ObjectInputStream(mySocket.getInputStream());
          int size = in.readInt();
          Object [] results = new Object[size];
          for (int i=0; i < size  ; i++ )
               results[i] = in.readObject();
          countyList = new JComboBox( results );
          countyList.setActionCommand("County");
          mySocket.close ();
     catch (Exception exp)
          exp.printStackTrace();
// detect problems interacting with the database
catch ( Exception sqlException )
     System.exit( 1 );
//set up command buttons
submitButton = new JButton("Submit");
submitButton.setToolTipText("Click here to submit your details ");
submitButton.addActionListener(this);
cancelButton = new JButton("Cancel");
cancelButton.setToolTipText("Click here to cancel order");
cancelButton.addActionListener(this);
Container topLevelContainer = getContentPane();
getContentPane().setBackground(Color.blue);
//Create Layout
JPanel contentPane = new JPanel();
//Set transparent background instead of blue
contentPane.setBackground(Color.white);
contentPane.setLayout(null);
contentPane.setOpaque(true);
titleLabel.setBounds(37,10,75,20);
contentPane.add(titleLabel);
firstNameLabel.setBounds(93,10,100,20);
contentPane.add(firstNameLabel);
lastNameLabel.setBounds(198,10,100,20);
contentPane.add(lastNameLabel);
titleList.setBounds(37,35,50,20);
contentPane.add(titleList);
firstNameText.setBounds(93,35,100,20);
contentPane.add(firstNameText);
lastNameText.setBounds(198,35,100,20);
contentPane.add(lastNameText);
addressLabel.setBounds(37,65,100,20);
contentPane.add(addressLabel);
addressLineOneText.setBounds(37,90,125,20);
contentPane.add(addressLineOneText);
addressLineTwoText.setBounds(37,115,125,20);
contentPane.add(addressLineTwoText);
addressLineThreeText.setBounds(37,140,125,20);
contentPane.add(addressLineThreeText);
countyLabel.setBounds(37,165,100,20);
contentPane.add(countyLabel);
countyList.setBounds(37,190,100,20);
contentPane.add(countyList);
submitButton.setBounds(60,250,100,20);
contentPane.add(submitButton);     
cancelButton.setBounds(180,250,100,20);
contentPane.add(cancelButton);
topLevelContainer.add(contentPane);
}//End init()
static void lookAndFeel()
     try
          UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
     catch(Exception e)
}//End look and feel method
public synchronized void actionPerformed(ActionEvent e)
String actionCommand = e.getActionCommand();
if (e.getSource() instanceof JButton)
     if (actionCommand.equals("Cancel"))
               int returnVal = JOptionPane.showConfirmDialog(null,
                    "Are you sure you want cancel and discard your order?",
                    "Cancel Order", JOptionPane.YES_NO_OPTION);
               if(returnVal == JOptionPane.YES_OPTION)
                    System.exit(0);
     if (actionCommand.equals("Submit"))
          firstName = firstNameText.getText();
          Surname = lastNameText.getText();
     }//end action command for submit button
}//end method actionperformed
}//End class customerDatabase Connection Code:
import java.sql.*;
import java.util.*;
class dbWrapper1
    private Statement statement;
    private Connection connection;
    private String strUserName;
    private String strPassword;
     Object [] results = null;
     static final String JDBC_DRIVER = "com.mysql.jdbc.Driver";
     static final String DATABASE_URL = "jdbc:mysql://localhost:3306/ecommerce";
    public dbWrapper1()
        // the DSN for the Db connection
        strUserName = "root";
        strPassword = "password";
    public void Open()
        try
            // Load the jdbc-odbc bridge driver
            Class.forName ( JDBC_DRIVER );
               //                    ***** TESTING PURPOSES *****
               //Check currently loaded drivers
               System.out.println("Currently loaded drivers...");   
               for
                    Enumeration enum1 = DriverManager.getDrivers() ;
                    enum1.hasMoreElements();
               System.out.println(enum1.nextElement().getClass().getName());
            // Attempt to connect to a driver.
            connection = DriverManager.getConnection ( DATABASE_URL, strUserName, strPassword );
            // Create a Statement object so we can submit
            // SQL statements to the driver
            statement = connection.createStatement();
        catch (SQLException ex)
            while (ex != null)
                System.out.println ("SQL Exception:  " + ex.getMessage () );
                ex = ex.getNextException ();
        catch (java.lang.Exception ex)
            ex.printStackTrace ();
    public void Update( String strUpdate )
        try
            // Submit an update or create
            statement.executeUpdate( strUpdate );
          catch (SQLException ex)
            while (ex != null)
                System.out.println ("SQL Exception:  " + ex.getMessage () );
                ex = ex.getNextException ();
    public Object[] Select( String strQuery )
        try
            // Submit a query, creating a ResultSet object
            ResultSet resultSet = statement.executeQuery( strQuery );
            // process query results
               ResultSetMetaData metaData = resultSet.getMetaData();
               int numberOfColumns = metaData.getColumnCount();
               results = new Object[numberOfColumns];
               while ( resultSet.next() )
                    for ( int i = 1; i <= numberOfColumns; i++ )
                         results[i] = resultSet.getObject(i);
                         System.out.print(resultSet.getString(i) + " | " );
                    System.out.println();
               resultSet.close();
        catch (SQLException ex)
            while (ex != null)
                System.out.println ("SQL Exception:  " + ex.getMessage () );
                ex = ex.getNextException ();
          for (int i=0;i<results.length ;i++ )
               System.out.println(results);
          return results;
public void Close()
try
statement.close();
connection.close();
catch (SQLException ex)
while (ex != null)
System.out.println ("SQL Exception: " + ex.getMessage () );
ex = ex.getNextException ();
Server Code:
import java.io.*;
import java.net.*;
public class TestUpdateDB
     public static void main(String[] args)
          System.out.println ( "Server is active" );
          try {
          ServerSocket sock = new ServerSocket ( 1983 );
          while ( true )
               try
                    Socket mySock = sock.accept();
                    ObjectInputStream iStream = new ObjectInputStream(mySock.getInputStream());
                    ObjectOutputStream oStream = new ObjectOutputStream(mySock.getOutputStream());
                    Object temp = iStream.readObject();
                    String entry = (String)temp;
                    System.out.println ( entry );
                    dbWrapper1 myDB = new dbWrapper1();
                    myDB.Open();
                    Object [] query = myDB.Select(entry);
                    int size = query.length;
                    oStream.writeInt(size);
                    for (int i=1 ; i <= query.length ; i++)
                         oStream.writeObject( query );
                    myDB.Close();
               catch ( Exception exp )
                    exp.printStackTrace ();
          catch ( Exception exp ) {
            exp.printStackTrace();

Sir,
The exception is probably in here.
for ( int i = 1; i <= numberOfColumns; i++ ){
  results[i] = resultSet.getObject(i);
  System.out.print(resultSet.getString(i) + " | " );
}ResultSet counting begins with 1 but array indexing begins with 0 your code should look more like.
for ( int i = 0; i <= numberOfColumns; i++ ){
  results[i] = resultSet.getObject(i+1);
  System.out.print(resultSet.getString(i+1) + " | " );
}Sincerely,
Slappy

Similar Messages

  • Dynamically populating List box

    Hello Everyone:
    I need to create a JSP with two combo boxes and submit button.
    Where the first combo box will be updated from database - which is simple.
    but depending on the selection of the first box the second box should be populated and should be able to make multiple selections in it.
    and in the same jsp page should be able to display the results, of what I added by submiting the previous form.
    Please can somebody help me witha sample.
    Thanks
    ASB

    Dear user,
    If you get any response for the asked question on Dynamically populating List box from anybody please forward the reply to the following e-mail id.
    [email protected]
    --SUBIR                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Populate Livecycle PDF from mySQL database using PHP

    I'm trying to set up a database of loan agreements, where users will submit a form through Acrobat and their information will be stored in a mySQL database. Later, they can go back and download the PDF, which will be repopulated with their data in the mySQL db.
    I made the form in Livecycle Designer and submit the information through HTTP POST. I can easily get the information from the form into the database...my only problem is getting that information back out into the PDF.
    What would allow me to write back to the PDF, preferably using PHP? What kind of syntax would that require?
    Thanks!

    I have a vital form that clients fill out, which is passed to many people in the company along the workflow. The form is a Planner and we have in the following PDF, Word Doc..
    Well before, the Planner.pdf was originally created in Word, since most people have access to Word.. but evolved to a PDF form created from the Word Doc via Adobe LiveCycle Designer 8.0 w/ User Rights enabled so that the form could be filled out and saved using Adobe Reader.. which was a step better than Word.. being that it is free. But this needed to be easier and more to the point b/c some clients don't particularly like installing the latest version of Reader, even if you provide them the link. Nor do they like saving the form, filling the form, and attaching the form to send back.
    My goal is to have the client fill an HTML version of the form, submit and be done with it, but everyone in the workflow be able to easily receive the filled Planner as a PDF form.
    So some months ago I ran into this post Chris Trip, "Populate Livecycle PDF from mySQL database using PHP" #8, 22 Sep 2007 4:37 pm
    which uses the command line Win32 pdftk.exe to merge an FDF file into an existing PDF on the remote server, and serve this to whoever.
    My problem was with shared hosting and having the ability to use the Win32 pdftk.exe along with PHP which is predominantly used on Linux boxes. And we used a Linux box.
    so i created the following unorthodox method, which a client fills the HTML version of the Planner, all field values are INSERTED into a table in MySQL DB, I and all filled planners that have been filled by clients to date can be viewed from a repository page where an XML file is served up of the corresponding client, but someone would have to have Acrobat Professional, to import the form data from the XML file into a blank form.. altoughh this is simple for me.. I have the PHP file already created so that when a Planner is filled and client submits. >> the an email is sent to me with a table row from the repository of the client name, #, email, and a link to d-load the XML file,
    But I also have the PHP files created so that the Planner can be sent to by email to various people in the workflow with certain fileds ommitted they they do not need to see, but instead of the XML file beiong served up i need the filled PDF Planner to be served.
    I can do this locally with ease on a testing server, but I am currently trying to use another host that uses cross-platform compatibility so i can use PHP and the pdftk.exe to achieve this, as that is why I am having to serve up an XML file b/c we use a Linux server for our website, and cant execute the exe.
    Now that I am testing the other server (cross-platform host), just to use them to do the PDF handling (and it's only $5 per month) I am having problems with getting READ, WRITE, EXECUTE permissions..
    Si guess a good question to ask is can PHP do the same procedure as the pdftk.exe, and i can eleminate it.
    or how in the heck can i get this data from the DB into a blank PDF form, like i have described??
    here are some link to reference
    Populating a LiveCycle PDF with PHP and MySQL
    http://www.andrewheiss.com/Tutorials?page=LiveCycle_PDFs_and_MySQL
    HTML form that passed data into a PDF
    http://www.mactech.com/articles/mactech/Vol.20/20.11/FillOnlinePDFFormsUsingHTML/index.htm l
    and an example
    http://accesspdf.com/html_pdf_form/

  • How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    How to get the data from mysql database which is being accessed by a PHP application and process the data locally in adobe air application and finally commit the changes back in to mysql database through the PHP application.

    If the data is on a remote server (for example, PHP running on a web server, talking to a MySQL server) then you do this in an AIR application the same way you would do it with any Flex application (or ajax application, if you're building your AIR app in HTML/JS).
    That's a broad answer, but in fact there are lots of ways to communicate between Flex and PHP. The most common and best in most cases is to use AMFPHP (http://amfphp.org/) or the new ZEND AMF support in the Zend Framework.
    This page is a good starting point for learning about Flex and PHP communication:
    http://www.adobe.com/devnet/flex/flex_php.html
    Also, in Flash Builder 4 they've added a lot of remote-data-connection functionality, including a lot that's designed for PHP. Take a look at the Flash Builder 4 public beta for more on that: http://labs.adobe.com/technologies/flashbuilder4/

  • Populating menu items from the database...is it possible?

    hi
    using :forms 10g
    we have a requirement in forms where we need to populate the menu items from the database.first we used hiearchial tree where it was possible.but since the requirement changed i am not sure that whether the menu items can be populated by data from the database...will be glad if someone could throw some light on this issue...
    thanks

    You could always do it but would need to put a fix limit on the number of menu items.
    For example you could create a set of menu items at design time with the visible property set to False.
    While reading the database, you then set them to True while setting the label to whatever you require.
    But it all depends also on what you want your menu items to do when selected.

  • Call oracle_procedure from mysql database

    Hi all,
    How do I call oracle_procedure from mysql database?
    Is it possible at all?
    Thanks ahead.

    Hi,
      You can use the Database Gateway for ODBC (DG4ODBC) to connect to MySQL from Oracle.
    If you have access to My Oracle Support have a look at these notes -
    Master Note for Oracle Gateway Products (Doc ID 1083703.1)
    How to Configure DG4ODBC on 64bit Unix OS (Linux, Solaris, AIX, HP-UX Itanium) to Connect to Non-Oracle Databases Post Install (Doc ID 561033.1)
    How to Configure DG4ODBC (Oracle Database Gateway for ODBC) on Windows 32bit to Connect to Non-Oracle Databases Post Install (Doc ID 466225.1)
    How to Configure DG4ODBC (Oracle Database Gateway for ODBC) on 64bit Windows Operating Systems to Connect to Non-Oracle Databases Post Install (Doc ID 1266572.1)
    - depending on your platform.
    Regards,
    Mike

  • I cant read correct single quote from mySQL database...

    I cant read correct single quote from mySQL database, pls help. What i'm talking about. I must import, "J'adore" for example in my DB and I'm doing this. Thats ok. But when I try to read this value from my DB through JDBC I'm receiving SQL exception (because JDBC thinks that i didn't close may quote). If somebody knows solution for this problem lets tell me.

    I'm not sure I got your question correctly, but maybe
    this solves your problem:
    Connection conn = // Wherever you get it from
    PreparedStatement query =
    = conn.prepareStatement("INSERT INTO table_A (field_A) VALUES (?)");
    query.setString(1, "J'adore");
    query.execute();
    query.close()Regards, Eirikthe select variation which i think you mean the WHERE clause would be...
    Connection conn = // Wherever you get it from
    PreparedStatement query = conn.prepareStatement("SELECT * FROM table_A WHERE field_A = ?");
    query.setString(1, "J'adore");
    ResultSet rs = query.executeQuery();

  • Removing Items from Populated List-Box

    I have a drop down box populate a list box. (change: ListBox1.addItem(xfa.event.newText)) But I can add more then one of the same selection so how do I remove them from the ListBox. Upon click? somehow? I don't konw the lingo.

    There is a selectedIndex property that will give you back the index of the 1st item that is selected.
    Paul

  • Populating List Boxes

    Azadi – Thanks for your HELP on my last problem.
    – This is the Old Dog Playing a Young persons game! And
    loving It! Using CF8 and MySQL 5
    New?? List Boxes, or drop-down Combo list Boxes, could you or
    someone direct me in the proper direction for information on how to
    Populate a list box or combo box based on the input of the previous
    list box?? Example Enter From Selection - Southern Gulf Coastal
    States - All the State in the Southern Gulf Coast would populate
    the next combo box, and select a State and all the Coastal Cities
    would be of choice and next after cities is the Zip.
    I know how to do it in MS Access not sure the best way to
    attack this in cf8.
    Thanks

    There are many ways to do this:
    1. By submitting your data to cf server first and query only
    according to user selection then populate the target fields
    according to query.
    2. By querying all data and use javascript
    variables/arrays/structures to populate your combo box everytime
    user change the selected item.
    3. By incorporating Ajax to your CF application.
    The first one is the easiest one. But everytime you make
    changes to your selection, your app submits to cf server which is
    kind of slow 'cause you have to submit everytime selection changes.
    The second one is by querying all the data, which is slow at
    first 'coz even the unnecessary data are returned. That is, I don't
    think the user would try to select all the selections one by one,
    but rather maybe just select one item. Though, it will be faster
    already when the user selects another item. This way, your form
    doesn't have to be re-submitted 'coz you let a javascript
    variable/arrays/structures store the data at first query.
    The third one(kind of a mix of both 1 and 2), which is the
    most efficient way among the three to achieve your goal, needs
    learning Ajax which is going to take a few of your time. But if you
    know it already, you can let it work well with CF8.
    Anyway, a simple sample code for the first method is
    attached:

  • Populating Drop down from Oracle Database

    Can someone please help me!
    I am trying to populate a drop down list in a JSP from an Oracle database. Basically the JSP gets the user, outputs their name and then should display a drop down for them with some values in it!
    However, I seem to be getting a drop down box for each option rather than one drop down with every option from the database;
    Here is my code!
    <html>
    <head>
    <title>JDBC and JSP</title>
    </head>
    <body bgcolor="#FDF5E6">
    <h1 align="center">Welcome to Student Sigon Page!!</h1>
    <%@ page import="java.sql.*" %>
    <%@ page import= "java.util.*"%>
    <%@page import= "java.io.*" %>
    <%
    //String driverClassString = "oracle.jdbc.driver.OracleDriver";
    //String driverConnectString = "jdbc:oracle:thin:@172.17.106.78:1521:globaldb";
    //String username = "system";
    //String password = "manager";
    %>
    <table>
    <tr>
    </tr>
    <%
    Connection conn = null;
    try {
    Class.forName("oracle.jdbc.driver.OracleDriver");
    conn = DriverManager.getConnection("jdbc:oracle:thin:@Midas2:1521:globaldb", "system", "manager");
    catch (Exception e) {
    out.println("Cannot close connect to database!"+e);
    if (conn != null) {
    String login = request.getParameter("username").trim();
    String pswd = request.getParameter("password").trim();
    String sqlQuery;
    if (login !="")
    if (pswd != ""){
    sqlQuery = ("SELECT familyname, givenname FROM STUDENTINFO WHERE username='"+login+"' AND password='"+pswd+"'");
    try { // execute the query
    Statement stmt = conn.createStatement();
    ResultSet rst;
    rst = stmt.executeQuery(sqlQuery);
    // Fetch the query result, and dispaly them in a table
    while (rst.next()) {
    %>
    <tr>
    <td> Family Name:<%= rst.getString("familyname") %> </td><tr>
    <td> Given Name:<%= rst.getString("givenname") %> </td><tr>
    <tr>
    <tr>
    </tr>
    <%
    stmt.close();
    } catch(Exception e) {
         out.println("Cannot fetch data from database!"+e);
    %>
    <%
    String sqlQuery2;
    sqlQuery2 = ("SELECT code,title FROM TMPOffering");
    try { // execute the query
    Statement stmt = conn.createStatement();
    ResultSet rst2;
    rst2 = stmt.executeQuery(sqlQuery2);
    while (rst2.next()) {
    %>
    <tr>
    <td width="20%">Session ID</td>
    <td width="80%"><select size="1" name="Course1">
    <option value=<%=rst2.getString("code")%>><%= rst2.getString("title") %>/option>
    <select>
    </td>
    </tr>
    </tr>
    <%
    stmt.close();
    catch(Exception e) {
    out.println("Cannot fetch data from database!"+e);
    %>
    </table>
    </body></html>

    Replace
    while (rst2.next()) {
    %>
    <tr>
    <td width="20%">Session ID</td>
    <td width="80%"><select size="1" name="Course1">
    <option value=<%=rst2.getString("code")%>><%= rst2.getString("title") %>/option>
    <select>
    </td>
    </tr>
    </tr>
    <%
    }with
    <tr>
    <td width="20%">Session ID</td>
    <td width="80%"><select size="1" name="Course1">
    <%
    while (rst2.next()) {
    %>
    <option value=<%=rst2.getString("code")%>><%= rst2.getString("title") %>/option>
    </td>
    </tr>
    </tr>
    <%
    </select>
    %>-Bharat

  • MIgration from MYSQL database to Oracle database

    HI,
    Can you pls let me know how can we do this using Oracle SQL Developer.
    In Mysql database we are having one table which is not normalized and corresponding to it we have created normalized tables in oracle database.
    so scenario is like this
    EMP table in MYSQL database ----------- need to migrate to----> Employee table
    Dept table.
    These tables are having some extra columns also which are not there in EMP table in MYSQL database.
    SO we want to fill some default values for the new columns while doing the migration.
    Can you pls let me know if this is achievable through SQL Developer and how?

    Sorry, you'd have to do this in 2 steps:
    1. Migrate the tables as they are.
    2. Insert the rows from the migrated tables into the new ones.
    Have fun,
    K.

  • Drop Down List Box from an Array?

    I have an array - a lovely little 1-dimensional array of customer last names - that I want to display in a drop down list box so my user can begin to type a value in that list box and CF will bring up the matching entry.
    I have tried cfloop and cfselect, but haven't had any success. Once the user clicks on a name, I want to be able to take that value and do some other processing.
      Any suggestions?

    No Ajax - CF is a ***** enough as it is.
    OK - I see where you started to go with your link, but lost you somewhere in Step 2.
    I like the idea of a master query with sub queries off of it (Queries of Queries).  Here's what I got so far:
    <cfquery 
    name = "MasterMemberQuery" datasource = "cfissues">
            SELECT *  FROM Members  
            ORDER BY LastName</cfquery>
      <cfquery  name = "LastNameQry" dbtype = "query">
         SELECT MemberID, LastName  
         FROM MasterMemberQuery  
        ORDER BY LastName</cfquery>
    This worked perfectly - nice cfselect to display the last names - just like before.  However, I still cannot capture the user's choice from the cfselect statement:
    <cfform> 
          <cfselect name = "ChosenLastName"  
                        query = "LastNameQry"  
                        value = "MemberID"  
                        display = "LastName"  
                        size = "1">  
         </cfselect>
         <cfoutput>
                   The chosen MemberID = '#LastNameQry.MemberID#'
         </cfoutput>
    </cfform>
    The name "ChosenLastName" is always labelled as invalid, and the cfoutput always gives the MemberID of the first entry in the LastNameQry, never the user's choice. 
    I need to take the user's choice of last name, capturing the MemberID (the value attribue of the cfselect) and read the MasterMemberQuery to get just the single member's data.
    And is it me or does this forum's site run at about 300 baud?????

  • Producing forms from mysql database

    I have a website that collects various information from a
    user. I then want it to produce a .pdf file that the user can
    download. The .pdf file would be a form with field values taken
    from an Access or MySQL database. It would be similar to producing
    a tax form with data from a database (the user does not fill in a
    .pdf form). What product lets me design the form for my website,
    and then lets the website produce the filled-in form?
    Thanks, Art Lieberman

    Please be advised that this forum is for discussions about
    the Acrobat.com online services only.
    Your best source of questions and answers for the Acrobat
    desktop product would be in the
    Acrobat
    Forums.
    That being said, I believe that one of the Livecycle server
    products may be able to do what you are asking. Try calling your
    Adobe Account Manager (or the generic sales number from our
    website) and they should be able to give you better information.
    Thanks!

  • Import � from mysql Database

    Hello,
    I have to import text with special characters like � from a mysql database. I want to test the string, in which I put the text, for these special characters but somehow these characters seem to be converted to a question mark before I have the chance to test for them. The special characters are never found and a questionmark is replacing them when i display them in the console window.
    Does anyone know the solution to this problem?
    kind regards, brassers

    Can you explain me how to print out the input string to its hex value Here's a program that does that; hope it illuminates the problem.
    public class StringToHex {
        public static void main(String[] args) {
            String input = "\u0001\u0066\u00d3\u0133\uc2fe\u9999\u0c00\uffff";
            System.out.println("String INPUT is:  " + input);
            char[] letter = input.toCharArray();
            for (int j = 0; j <letter.length; j++) {
                System.out.print(letter[j] + "/");
                String hexValue = Integer.toHexString(letter[j]);
                System.out.print(hexValue + "--");
    }

  • How to retrive data from MYSQL database beginner question

    I need to know a method, on how to retrieve values from a MYSQL database. I finally managed to insert data to a MySql database using hibernate, with the help of google. but, i couldn't find any helpful article on google, on retrieving data, will some plzz help me, by directing me to a site that has sample codes ??
    i am actually new to MYSql and Databases in java, so plzz do help me, i am lost here,,, :(

    Oh, it's Hibernate. In the future, please use the forums at their own site.
    Answers on how to use Hibernate are usually available in the excellent "Hibernate Reference Documentation" available here.

Maybe you are looking for