How to write the JTables Content into the CSV File.

Hi Friends
I managed to write the Database records into the CSV Files. Now i would like to add the JTables contend into the CSV Files.
I just add the Code which Used to write the Database records into the CSV Files.
void exportApi()throws Exception
          try
               PrintWriter writing= new PrintWriter(new FileWriter("Report.csv"));
               System.out.println("Connected");
               stexport=conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
               rsexport=stexport.executeQuery("Select * from IssuedBook ");
               ResultSetMetaData md = rsexport.getMetaData();
               int columns = md.getColumnCount();
               String fieldNames[]={"No","Name","Author","Date","Id","Issued","Return"};
               //write fields names
               String rec = "";
               for (int i=0; i < fieldNames.length; i++)
                    rec +='\"'+fieldNames[i]+'\"';
                    rec+=",";
               if (rec.endsWith(",")) rec=rec.substring(0, (rec.length()-1));
               writing.println(rec);
               //write values from result set to file
                rsexport.beforeFirst();
               while(rsexport.next())
                    rec = "";
                     for (int i=1; i < (columns+1); i++)
                         try
                                rec +="\""+rsexport.getString(i)+"\",";
                                rec +="\""+rsexport.getInt(i)+"\",";
                         catch(SQLException sqle)
                              // I would add this System.out.println("Exception in retrieval in for loop:\n"+sqle);
                     if (rec.endsWith(",")) rec=rec.substring(0,(rec.length()-1));
                    writing.println(rec);
               writing.close();
     }With this Same code how to Write the JTable content into the CSV Files.
Please tell me how to implement this.
Thank you for your Service
Jofin

Hi Friends
I just modified my code and tried according to your suggestion. But here it does not print the records inside CSV File. But when i use ResultSet it prints the Records inside the CSV. Now i want to Display only the JTable content.
I am posting my code here. Please run this code and find the Report.csv file in your current Directory. and please help me to come out of this Problem.
import javax.swing.*;
import java.util.*;
import java.io.*;
import java.awt.*;
import java.awt.event.*;
import javax.swing.table.*;
public class Exporting extends JDialog implements ActionListener
     private JRadioButton rby,rbn,rbr,rbnore,rbnorest;
     private ButtonGroup bg;
     private JPanel exportpanel;
     private JButton btnExpots;
     FileReader reading=null;
     FileWriter writing=null;
     JTable table;
     JScrollPane scroll;
     public Exporting()throws Exception
          setSize(550,450);
          setTitle("Export Results");
          this.setLocation(100,100);
          String Heading[]={"BOOK ID","NAME","AUTHOR","PRICE"};
          String records[][]={{"B0201","JAVA PROGRAMING","JAMES","1234.00"},
                           {"B0202","SERVLET PROGRAMING","GOSLIN","1425.00"},
                           {"B0203","PHP DEVELOPMENT","SUNITHA","123"},
                           {"B0204","PRIAM","SELVI","1354"},
                           {"B0205","JAVA PROGRAMING","JAMES","1234.00"},
                           {"B0206","SERVLET PROGRAMING","GOSLIN","1425.00"},
                           {"B0207","PHP DEVELOPMENT","SUNITHA","123"},
                           {"B0208","PRIAM","SELVI","1354"}};
          btnExpots= new JButton("Export");
          btnExpots.addActionListener(this);
          btnExpots.setBounds(140,200,60,25);
          table = new JTable();
          scroll=new JScrollPane(table);
          ((DefaultTableModel)table.getModel()).setDataVector(records,Heading);
          System.out.println(table.getModel());
          exportpanel= new JPanel();
          exportpanel.add(btnExpots,BorderLayout.SOUTH);
          exportpanel.add(scroll);
          getContentPane().add(exportpanel);
          setVisible(true);
      public void actionPerformed(ActionEvent ae)
          Object obj=ae.getSource();
          try {
          PrintWriter writing= new PrintWriter(new FileWriter("Report.csv"));
          if(obj==btnExpots)
               for(int row=0;row<table.getRowCount();++row)
                         for(int col=0;col<table.getColumnCount();++col)
                              Object ob=table.getValueAt(row,col);
                              //exportApi(ob);
                              System.out.println(ob);
                              System.out.println("Connected");
                              String fieldNames[]={"BOOK ID","NAME","AUTHOR","PRICE"};
                              String rec = "";
                              for (int i=0; i <fieldNames.length; i++)
                                   rec +='\"'+fieldNames[i]+'\"';
                                   rec+=",";
                              if (rec.endsWith(",")) rec=rec.substring(0, (rec.length()-1));
                              writing.println(rec);
                              //write values from result set to file
                               rec +="\""+ob+"\",";     
                               if (rec.endsWith(",")) rec=rec.substring(0,(rec.length()-1));
                               writing.println(rec);
                               writing.close();
     catch(Exception ex)
          ex.printStackTrace();
     public static void main(String arg[]) throws Exception
          Exporting ex= new Exporting();
}Could anyone Please modify my code and help me out.
Thank you for your service
Cheers
Jofin

Similar Messages

  • Hello , how could i insert some content into a large file?

    hello , how could i insert some content in a large file? ----just like a txt editor do.
    assume that i have a 6G file(i think it large enough), then i wann insert one ascii character at the begining of the file,does that means:
    1> i need create one 6G+1byte new file, then copy all content of the original file following by that addition character?
    2> not creat new file,just set original file length to 6G+1byte,then offset all 6G byte by one byte,after all adding my one character?(it seems not some kind of optimization ...)
    what should i do?
    Edited by: littleJohnny on Jan 16, 2008 2:03 AM

    could some means can set the read hint of 6Gbyte content after my character first read out? ----just let my addition point to the begining of 6G original content ,then the addition character take the place of the file header? ----the inster may be the same....
    i just think the already used txt editor seem so fast to process insert, replace .... 2M 10M maybe.... does they doing those operation use Java Type ---String? ------read all contet into memory,then it is easy to regular expression ,relinking read order....-----does it mean large file couldn't against with pattern?
    does all ctrl+s shortcut-----rewrite original file with memory relinked order? then large file could not easily manipulate its structure but all structured file is large than plain format...
    just teach me some "already used txt editor " trick,thanks very much.

  • How do i export my contacts into a csv file?

    I need to export my contacts into a csv file - Apple support says it can't be done.  Any suggestions anyone please?

    or -> http://lmgtfy.com/?q=Mac+OS+export+contacts+to+CSV

  • How to write a data type into an excel file?

    Hi everyone,
    What I am trying to do is to get some data from MS SQL then write into an excel file.
    stmtExcel.executeUpdate("Insert into [Output$] (CustomerID, ProductID, [Date], OrderQty) Values(" + rsSQL.getInt("CustomerID") + ", " + rsSQL.getInt("ProductID") + ", '" + (rsSQL.getString("Date")).substring(0,10) + "', " + rsSQL.getInt("OrderQty") + ")");
    There is no problem to write into an excel file, however, after all data is imported, excel sheet treats the the integers or dates as Text format. The funny part is, after I double click one of the cells with an integer value, that cell's format will be changed to integer, same thing happens with the date type.
    I am wondering if there is any way I can write an integer or whatever type into an excel file, which excel can recognize their own types instead of Text format. Thank you so much in advance.
    Sincerely,

    Yes, use an API that supports such things, like Andy
    Khan's JExcel:
    http://www.andykhan.com/
    %Thanks, duffymo. I haven't tried it yet, but according to the website, it seems that is possible! thanks again!

  • I am writing an applescript and want to paste the clipboard contents into a new file that opens in TextMate. This is what I have so far. The paste is NOT working...

    This is what I have so far:
    tell application "Google Chrome"
      view source of active tab of window 1 -- Or whichever tab you want
      delay 3
              repeat while loading of active tab of window 1
      delay 3
              end repeat
      select all of active tab of window 1 -- Must *always* be the active tab
      copy selection of active tab of window 1
      delay 3
      --          delete tab (active tab index of window 1) of window 1
    end tell
    delay 1
    tell application "TextMate-1.5.9"
      activate
      open
      paste
    end tell
    Paste is not working.

    This works, I am sure that there is a more elegant way??
    # Applescript to copy html of active tab to clipboard and open TextMate and paste source to new document
    tell application "Google Chrome"
              set theURL to URL of active tab of window 1
    view source of active tab of window 1
    delay 3
              repeat while loading of active tab of window 1
      delay 3
              end repeat
    select all of active tab of window 1 -- Must *always* be the active tab
    copy selection of active tab of window 1
    delay 3
    end tell
    do shell script "open -a TextMate"
    delay 3
    tell application "TextMate"
    open
    activate
              tell application "System Events"
      keystroke "a" using {command down}
      keystroke "v" using {command down}
              end tell
    end tell
    tell application "Google Chrome"
    delete tab (active tab index of window 1) of window 1
    end tell

  • How do I transfer the dvd content into iMovie?

    I have a family made dvd that I am trying to upload to iMovie so that I can edit it properly. How do I transfer the dvd content into iMovie?
    I originally had the video on tape and transfered the content to DVD. This was years ago and now I want to edit the video and make it better then just being cut and pasted together. I cannot find anything to help me in how to transfer or upload the video into iMovie so that I can edit it. Any help is greatly appreciated!

    put in the dvd go to moives in itunes drag the disk to the window make sure it is a .mov file

  • How to create, place, format and paste the clipboard contents into a text frame

    I am new to scripting and need help. I have an existing Indesign document. I need to be able to create a text frame on my current page, the width of my margins with the top of the text frame at the top margin and 1" in height, then format it to be 1-column, and then paste the clipboard contents into it and tag the text with a particular paragraph style. I am using Indesign CS4 on a mac, if that makes any difference. Thanks for any help.

    May this will help you. It will create an anchored object with a text what you desired, with object style. You should create an object style before with the x and y co ordinates. You can choose either para style or character style.
    var the_document = app.documents.item(0);
    // Create a list of paragraph styles
    var list_of_paragraph_styles = the_document.paragraphStyles.everyItem().name;
    // Create a list of character styles
    var list_of_character_styles = the_document.characterStyles.everyItem().name;
    // Create a list of object styles
    var list_of_object_styles = the_document.objectStyles.everyItem().name;
    // Make dialog box for selecting the styles
    var the_dialog = app.dialogs.add({name:"Create anchored text frames"});
    with(the_dialog.dialogColumns.add()){
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Make the anchored frames from ..."});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"This character style:"});
    var find_cstyle = dropdowns.add({stringList:list_of_character_styles, selectedIndex:0});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Or this paragraph style:"});
    var find_pstyle = dropdowns.add({stringList:list_of_paragraph_styles, selectedIndex:0});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Leave one dropdown unchanged!"});
    dialogRows.add();
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Delete matches?"});
    var delete_refs = dropdowns.add({stringList:["Yes","No"], selectedIndex:0});
    dialogRows.add();
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Anchored text frame settings:"});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Object style:"});
    var anchor_style = dropdowns.add({stringList:list_of_object_styles, selectedIndex:0});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Frame width:"});
    var anchor_width = measurementEditboxes.add({editUnits:MeasurementUnits.MILLIMETERS, editValue:72});
    with(dialogRows.add()){
    staticTexts.add({staticLabel:"Frame height:"});
    var anchor_height = measurementEditboxes.add({editUnits:MeasurementUnits.MILLIMETERS, editValue:72});
    the_dialog.show();
    // Define the selected styles
    var real_find_cstyle = the_document.characterStyles.item(find_cstyle.selectedIndex);
    var real_find_pstyle = the_document.paragraphStyles.item(find_pstyle.selectedIndex);
    var real_anchor_style = the_document.objectStyles.item(anchor_style.selectedIndex);
    // Check if a style is selected
    if(find_cstyle.selectedIndex != 0 || find_pstyle.selectedIndex != 0) {
    // Define whether to search for character styles or paragraph styles
    app.findChangeGrepOptions.includeFootnotes = false;
    app.findChangeGrepOptions.includeHiddenLayers = false;
    app.findChangeGrepOptions.includeLockedLayersForFind = false;
    app.findChangeGrepOptions.includeLockedStoriesForFind = false;
    app.findChangeGrepOptions.includeMasterPages = false;
    if(find_cstyle.selectedIndex != 0) {
    app.findGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.appliedCharacterStyle = real_find_cstyle;
    } else {
    app.findGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences.appliedParagraphStyle = real_find_pstyle;
    app.findGrepPreferences.findWhat = "^";
    // Search the document
    var found_items = the_document.findGrep();
    myCounter = found_items.length-1;
    do {
    // Select and copy the found text
    var current_item = found_items[myCounter];
    if(find_pstyle.selectedIndex != 0) {
    var found_text = current_item.paragraphs.firstItem();
    var insertion_character = (found_text.characters.lastItem().index) + 1;
    var check_insertion_character = insertion_character + 1;
    var alt_insertion_character = (found_text.characters.firstItem().index) - 1;
    var the_story = found_text.parentStory;
    app.selection = found_text;
    if(delete_refs.selectedIndex == 0) {
    app.cut();
    } else {
    app.copy();
    } else {
    var found_text = current_item;
    var insertion_character = (found_text.characters.lastItem().index) + 2;
    var check_insertion_character = insertion_character;
    var alt_insertion_character = (found_text.characters.firstItem().index) - 1;
    var the_story = found_text.parentStory;
    app.selection = found_text;
    if(delete_refs.selectedIndex == 0) {
    app.cut();
    } else {
    app.copy();
    // Make text frame from selection
    try {
    app.selection = the_story.insertionPoints[check_insertion_character];
    app.selection = the_story.insertionPoints[insertion_character];
    } catch(err) {
    app.selection = the_story.insertionPoints[alt_insertion_character];
    var the_anchored_frame = app.selection[0].textFrames.add({geometricBounds:["0","0",anchor_height.editContents,anch or_width.editContents],anchoredObjectSettings:{anchoredPosition: AnchorPosition.ANCHORED}});
    app.selection = the_anchored_frame.insertionPoints[0];
    app.paste();
    // Apply the object style now to "force apply" paragraph style set in the object style
    if(anchor_style.selectedIndex != 0) {
    the_anchored_frame.appliedObjectStyle = real_anchor_style;
    myCounter--;
    } while (myCounter >= 0);
    } else {
    alert("No styles selected!");

  • Why does the pop up window for a printable coupon only appears briefly (in the upper left corner) and then disappear, even after putting the web site into the Tools,Options,Content,Pop-Up Exceptions?

    I am at http://www.closys.com/samples_&_coupons/get_a_coupon.html and the pop up window for a printable coupon only appears briefly (in the upper left corner) and then disappears, even after putting the web site into the Tools,Options,Content,Pop-Up Exceptions. What gives and how can it be fixed. I have a time limit.
    Thanks for your solution.
    Dan

    Mha007:
    Sorry, but I have already tried this too and verified that the web addresses are listed as Allow, rather than Block. After restart there was no difference, I still get the disappearing pop-up windows.
    Thanks for offering suggestions though.
    Have you heard of any issues like this occurring based on the number of tabs that are open in Firefox?
    Just a thought, even though I have not heard of this as an issue before. I keep about 80 tabs open regularly, because of research that I am always conducting (I am a blogger, a writer/author, a technophile-especially Green Tech.,), email, work, etc.?
    I do have a check in the box for Firefox to let me know if the number of open tabs is causing slow down or other issues.
    Thanks for any help.

  • Java.io.NotSerializableException when overwrite the JTable data into .txt file

    hi everyone
    this is my first time to get help from sun forums
    i had java.io.NotSerializableException: java.lang.reflect.Constructor error when overwrite the JTable data into .txt file.
    At the beginning, the code will be generate successfully and the jtable will be showing out with the data that been save in the studio1.txt previously,
    but after i edit the data at the JTable, and when i trying to click the save button, the error had been showing out and i cannot succeed to save the JTable with the latest data.
    After this error, the code can't be run again and i had to copy the studio1.txt again to let the code run 1 more time.
    I hope i can get any solution at here and this will be very useful for me.
    the following is my code...some of it i create it with the GUI netbean
    but i dunno how to attach my .txt file with this forum
    did anyone need the .txt file?
    this is the code that suspect maybe some error here
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    String filename = "studio1.txt";
              try {
                  FileOutputStream fos = new FileOutputStream(new File(filename));
                  ObjectOutputStream oos = new ObjectOutputStream(fos);
                   oos.writeObject(jTable2);
                   oos.close();
              catch(IOException e) {
                   System.out.println("Problem creating table file: " + e);
                   return;
              System.out.println("JTable correctly saved to file " + filename);
    }the full code will be at the next msg

    this is the part 1 of the code
    this is the full code...i had /*....*/ some of it to make it easier for reading
    package gui;
    import javax.swing.*;
    import java.io.*;
    public class timetables extends javax.swing.JFrame {
        public timetables() {
            initComponents();
        @SuppressWarnings("unchecked")
        private void initComponents() {
            jDialog1 = new javax.swing.JDialog();
            buttonGroup1 = new javax.swing.ButtonGroup();
            buttonGroup2 = new javax.swing.ButtonGroup();
            buttonGroup3 = new javax.swing.ButtonGroup();
            buttonGroup4 = new javax.swing.ButtonGroup();
            jTextField1 = new javax.swing.JTextField();
            jLayeredPane1 = new javax.swing.JLayeredPane();
            jLabel6 = new javax.swing.JLabel();
            jTabbedPane1 = new javax.swing.JTabbedPane();
            jScrollPane3 = new javax.swing.JScrollPane();
            jTable2 = new javax.swing.JTable();
            jScrollPane4 = new javax.swing.JScrollPane();
            jTable3 = new javax.swing.JTable();
            jButton1 = new javax.swing.JButton();
            jButton2 = new javax.swing.JButton();
    /*       org.jdesktop.layout.GroupLayout jDialog1Layout = new org.jdesktop.layout.GroupLayout(jDialog1.getContentPane());
            jDialog1.getContentPane().setLayout(jDialog1Layout);
            jDialog1Layout.setHorizontalGroup(
                jDialog1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(0, 400, Short.MAX_VALUE)
            jDialog1Layout.setVerticalGroup(
                jDialog1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(0, 300, Short.MAX_VALUE)
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            jLayeredPane1.add(jLabel6, javax.swing.JLayeredPane.DEFAULT_LAYER);
            String filename1 = "studio1.txt";
            try {
                   ObjectInputStream ois = new ObjectInputStream(new FileInputStream(filename1));
                   jTable2 = (JTable) ois.readObject();
                   System.out.println("reading for " + filename1);
              catch(Exception e) {
                   System.out.println("Problem reading back table from file: " + filename1);
                   return;
            try {
                   ObjectInputStream ois = new ObjectInputStream(new FileInputStream(filename1));
                   jTable3 = (JTable) ois.readObject();
                   System.out.println("reading for " + filename1);
              catch(Exception e) {
                   System.out.println("Problem reading back table from file: " + filename1);
                   return;
            jTable2.setRowHeight(20);
            jTable3.setRowHeight(20);
            jScrollPane3.setViewportView(jTable2);
            jScrollPane4.setViewportView(jTable3);
            jTable2.getColumnModel().getColumn(4).setResizable(false);
            jTable3.getColumnModel().getColumn(4).setResizable(false);
            jTabbedPane1.addTab("STUDIO 1", jScrollPane3);
            jTabbedPane1.addTab("STUDIO 2", jScrollPane4);
            jTextField1.setText("again n again");
            jLabel6.setText("jLabel5");
            jLabel6.setBounds(0, 0, -1, -1);
            jButton2.setText("jButton2");
            jButton1.setText("jButton1");
            jButton1.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    jButton1ActionPerformed(evt);
          

  • Java.io.NotSerializableException when overwrite the JTable data into .txt

    hi everyone
    i had java.io.NotSerializableException: java.lang.reflect.Constructor error when overwrite the JTable data into .txt file.
    At the beginning, the code will be generate successfully and the jtable
    will be showing out with the data that been save in the studio1.txt
    previously,
    but after i edit the data at the JTable, and when i trying to click the
    save button, the error had been showing out and i cannot succeed to
    save the JTable with the latest data.
    After this error, the code can't be run again and i had to copy the studio1.txt again to let the code run 1 more time.
    I hope i can get any solution at here and this will be very useful for me.
    but i dunno how to attach my .txt file with this forum
    did anyone need the .txt file?
    the following is my suspect code
    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
    String filename1 = "studio1.txt";
              try {
                  FileOutputStream fos = new FileOutputStream(new File(filename1));
                  ObjectOutputStream oos = new ObjectOutputStream(fos);
                   oos.writeObject(jTable2.getModel());
                   oos.flush();
                   oos.close();
                   fos.close();
              catch(IOException e) {
                   System.out.println("Problem creating table file: " + e);
                            e.printStackTrace();
                   return;
              System.out.println("JTable correctly saved to file " + filename1);
    }this is the reading code
    String filename1="studio1.txt";
            try {
                   ObjectInputStream ois = new ObjectInputStream(new FileInputStream(filename1));
                   TableModel model = (TableModel)ois.readObject();
                    jTable3.setModel(model);
                   System.out.println("reading for " + filename1);
              catch(Exception e) {
                   System.out.println("Problem reading back table from file: " + filename1);
                   return;
              }Edited by: Taufulou on Jan 8, 2009 11:43 PM
    Edited by: Taufulou on Jan 8, 2009 11:44 PM
    Edited by: Taufulou on Jan 8, 2009 11:45 PM

    is this the code u mean?
    i had put this code inside it but the problem still remain the same
    if (jTable2.isEditing()) {
                jTable2.getCellEditor().stopCellEditing();
            }i had found a new thing that when i just double click the cell without change any data inside the table
    and click the button "Save". the same exception which is
    java.io.NotSerializableException: java.lang.reflect.Constructor
    will come out again.

  • How can i add Custom fields into the

    Dear Experts
    We have Ecc6.0 system,
    How can i add Custom fields into the Infotype Screen(PA30),i heard that we do it by PM01 Tcode.
    But in PM01 i am unable to find the enhance infotype tab.
    How can i do it ....pls help.....
    Regards
    Sajid

    Hi,
    Do it thru the third tab : Single Screen.
    There write down the infotype number (e.g. 0022) and say generate objects.
    Regards,
    Dilek

  • How to load the certificate authority into the keystore for the weblogic8.1

    how to load the certificate authority into the keystore for the weblogic8.1
    ==================================================
    Getting the message below when trying to improt the certificate to the weblogic 8.1 web server. Received this certificate from our internal IT certificate authority. Trying to import the certificate to our test sytem.
    ===================================================
    keytool error: java.lang.Exception: Failed to establish chain from reply
    Import failed. Verify that the Certificate Authority that signed 'certi.pem'
    has been loaded into your keystore 'keystore\pskey'
    To view keystore contents issue 'PSkeymanager -list -keystore keystore\pskey [-v
    To preview a certificate file issue 'PSkeymanager -previewfilecert -file certi.pem'

    You need to populate that field using cmod code. Find out from which table that field is and go to transaction cmod then enter project name and select component radio button then display.
    Now select the FM EXIT_SAPLRSAP_001  if your datasource is transactional dataource
    EXIT_SAPLRSAP_002 for master data attibute
    EXIT_SAPLRSAP_003 for Hierarchies
    EXIT_SAPLRSAP_004 for text
    then populate code .
    After your code then delete data from ods then reinit to populate the enhanced field.
    Hope it helps..

  • TS3899 Tried all the tips on line. Every time I try to send an e-mail, it gives me this message, "A copy has been placed in your Outbox. Sending the message content to the server failed" Any help in how to resolve would be appreciated

    I went through all the steps to try to resolve getting the message in a box every time i try to send an e-mail. What next ?
    Message is " A copy has been placed in your
                        Outbox. Sending the message content to the server failed."
    Any assistance would be greatly appreciated. My internet works fine as I can send e-mails from my Yahoo account on my MAC no problem.
    Address is fine etc.

    How long has it been going on? I've had my yahoo mess up and if i wait a bit it resolves itself. Yahoo is doing something with their servers and it messes with your mail if your mail happens to be on one of those servers.

  • How to write a pgm to change the existing encrypted password

    Hi all,
    can anybody tell me how to write a pgm to change the existing encrypted password.
    thanks in advance.

    Well, it's going to depend on how it's implemented in the current system.
    But basically it's going to look a lot like the current login actions. Presumably you have something that takes the user ID and password, encrypts the password, looks up the encrypted password in the database matching that user ID, and compares them. This functionality would also take a new password (preferably twice so they can be checked for consistency), and if the existing encrypted passwords match, it will encrypt the new password and put it in the database where the old one was.
    And if the application has a mechanism for new users to sign up, it'll look a lot like this as well.
    But I'm just guessing. This is all going to depend on how the existing functionality is written. Probably the best thing you can do is talk to a programmer at your organization who has worked on the application, and ask them for help.
    Hope this helps anyway.

  • I ended up having two id's, one being my original when first getting into itunes and the other came when I opened a me account.  I have purchases under the original id.  How do I merge the old account into the new account

    I ended up having two id's, one being my original when first getting into itunes and the other came when I opened a me account.  I have purchases under the original id.  How do I merge the old account into the new account

    Sorry, but it is not possible to merge two Apple IDs/iTunes Store accounts.
    Regards.

Maybe you are looking for