Write the content to UCM

Hi,
How to write the content to UCM with VCR adapter?
Is there any API to do this?
Any clues..........
Thanks in Advance,
Venu--

Hi Venu,
This isn't available with the current adapter but will come with the upcoming WebLogic Portal "Sunshine" release.
-Ryan

Similar Messages

  • Is content viewed during "private browsing" forensically extractable? e.g does it still write the content to the disk and can it be recovered?

    is content viewed during "private browsing" forensically extractable? e.g does it still write the content to the disk and can it be recovered?
    If a forensic investigator was to do forensics on my disk after i browsed content under private browsing, could it be recovered
    There is no intention to use this for illegall purposes, i just wondered how to private is "private browsing"

    Private browsing basically prevents any data from being stored in your Profile folder. [http://support.mozilla.com/en-US/kb/Private%20Browsing This] article provides more details.
    Please note that cookies '''are '''created during a private browsing session. However, they are deleted once the session is ended or when you exit Firefox application.
    Also note that other applications on your computer might be tracking which sites you visit (firewall, antivirus etc). They will still be able to collect your browsing related data even if you have activated private browsing in Firefox.

  • How to write the contents of string buffer to a file

    hi all
    how is it possible to write the contents of a string buffer to a new file (ie i have to create a file and write in it )
    this my string buffer
    StringBuffer s=new StringBuffer();
    s.append("<html><head><title>Welcome</title>");
    s.append("</head>");
    s.append("<body>");
    s.append("<b> Hello,");
    s.append(output);
    s.append(" You have been Sucessfully authenticated</b>");
    s.append("</body></html>");
    so please can anyone help me

    for nice examples of how to do things you may look int [url http://javaalmanac.com]Java Almanac
    or more specifficly: [url http://javaalmanac.com/egs/java.io/WriteToFile.html?l=find]Writin to a File
    in case you don't know how to apply that example on your code, since you have StringBuffer instead of String, then look at [url http://java.sun.com/j2se/1.4.2/docs/api/]API Specification of [url http://java.sun.com/j2se/1.4.2/docs/api/java/lang/StringBuffer.html]StringBuffer, and see if there is some method like toString() or similar, that would help you convert your StringBuffer to a String.

  • How to modify/replace the content server(UCM) file/image?

    Hi All,
    I want to modify the content/file of the Oracle UCM server. Do we have any Oracle UCM/IPM's webservice for this?
    For example, content server has a document/file which named as "a.doc". I want to replace this file with "b.doc" without altering any of the meta data.
    Kindly let me know if anybody have a solution for this.
    Thanks in advance!!
    Edited by: 902526 on Mar 20, 2012 1:58 PM
    Edited by: 902526 on Mar 20, 2012 2:02 PM

    Hi All,
    I want to modify the content/file of the Oracle UCM server. Do we have any Oracle UCM/IPM's webservice for this?
    For example, content server has a document/file which named as "a.doc". I want to replace this file with "b.doc" without altering any of the meta data.
    Kindly let me know if anybody have a solution for this.
    Thanks in advance!!
    Edited by: 902526 on Mar 20, 2012 1:58 PM
    Edited by: 902526 on Mar 20, 2012 2:02 PM

  • Reading an XML file and write the contents to another xml file in java

    Hi,
    I am new to xml parsing.My requirement is that I am getting a message (xml) using ibm MQ in the ByteArrayInputStream format.I have to read this xml message and write to another file.
    I am creating a POC for this.
    First I used simple reading and writing concept but the output is "java.io.FileInputStream@3e25a5 "
    Sample xml file
    - <Client>
    <ClientId>1234</ClientId>
    <ClientName>STechnology</ClientName>
    <DTU_ID>567</DTU_ID>
    <ClientStatus>ACTIVE</ClientStatus>
    - <LEAccount>
    <ClientLE>678989</ClientLE>
    <LEId>56743</LEId>
    - <Account>
    <AccountNumber>9876543678</AccountNumber>
    </Account>
    </LEAccount>
    - <Service>
    <Cindicator>Y2Y</Cindicator>
    <PrefCode>980</PrefCode>
    <BSCode>876</BSCode>
    <MandatoryContent>MSP</MandatoryContent>
    </Service>
    </Client>
    code:
    import java.io.ByteArrayInputStream;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    public class ByteArrayInputStreamToXml {
         public static void main(String srg[]) throws IOException{
              InputStream inputStream= new FileInputStream("C:\\soft\\test2\\sample1.xml");
              byte currentXMLBytes[] = inputStream.toString().getBytes();
              ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(currentXMLBytes);
              OutputStream out = new FileOutputStream("C:\\soft\\test\\data.xml");
              int read=0;
              byte[] bytes = new byte[1024];
              while((read = byteArrayInputStream.read(bytes))!= -1){
              out.write(bytes, 0, read);
              out.write( '\n' );
              inputStream.close();
              out.flush();
              out.close();
              System.out.println("New file created!");
    Please suggest me how can I use DOM/SAX parser ,I can see several code on net for reading xml file using SAX/DOM parser but writing an xml file after reading it using ByteArrayInputStream I am not getting .A help through some example Link will also be helpful for me.
    Thanks
    Sumit
    Edited by: user8687839 on Apr 30, 2012 2:37 AM
    Edited by: user8687839 on Apr 30, 2012 2:43 AM

    Thanks I got the result.
    package com.sumit.collections;
    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.FileInputStream;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.OutputStream;
    public class ByteArrayInputStreamToXml {
         public static void main(String srg[]) throws IOException{
              InputStream inputStream= new FileInputStream("C:\\soft\\test2\\sample1.xml");
              ByteArrayOutputStream buffer = new ByteArrayOutputStream();
              int nRead; byte[] data = new byte[1024];
              while ((nRead = inputStream.read(data, 0, data.length)) != -1) {
              buffer.write(data, 0, nRead); } buffer.flush();
              byte currentXMLBytes[]= buffer.toByteArray();
              /* byte currentXMLBytes[] = inputStream.toString().getBytes();*/
              ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(currentXMLBytes);
              OutputStream out = new FileOutputStream("C:\\soft\\test\\data.xml");
              int read=0;
              byte[] bytes = new byte[1024];
              while((read = byteArrayInputStream.read(bytes))!= -1){
              out.write(bytes, 0, read);
              out.write( '\n' );
              inputStream.close();
              out.flush();
              out.close();
              System.out.println("New file created!");
    }

  • How do I write the contents of a string array to file?  Is there a package

    freely avaliable to do this? I am writing a console program that will save the selections made to file. I have convenience packages that came with my book, it allows int and double arrays to be written to file, but not string arrays. Any help would be greatly appreciated.
    Thanks,
    Joe Lavender

    One easy way to do this is to populate a Properties object with the index as the key and the element as the value.
    The properties has built in methods for writing it to file and reading it in.

  • Not able to access the floating content from UCM into WLP using VCR

    Hi,
    I am facing an issue while accessing the content ( floating content i.e CSS,content,javascript) from UCM 11g into WLP 10.3.2 using VCR. But at the sametime, i am able to access the content once its moved to contribution folder.
    Please let me know is there any limitation in VCR i.e VCR can read the content from UCM once its moved to Contribution folder.
    Thanks a lot,
    Suresh

    Hi
    Do you have sample code , how to refer css stored in UCM. If you have please share it

  • URGENT: How to read the content of a PDF-file in Java?

    Hello
    What I need are some classes which can read a pdf and translate it in normal Text, so that I can write the content of the pdf in my database.
    Where can I find those classes? Or how else could I get there?

    www.lowagie.com/itext
    www.etymon.com/pj
    www.retep.org.uk/pdf
    www.pdflib.comwww.pdfzone.com
    www.planetpdf.com
    www.purepdf.com
    www.adobe.com
    www.pdfstore.com
    www.adobe.com/proindex/acrobat/formsresources.html
    www.partners.adobe.com/asn/developer/acrosdk/forms.html
    www.rrsys.com
    www.javafoundry.com/javapdf
    www.novagraphix.com/internet_publishing_with_acrobat/forms/forms_tutorial.html
    www.binarything.com

  • Dbms_xmlgen: write emp content to xml file

    Hi.
    I have the following procedure to write the content of the emp table in xml to a file:
    CREATE OR REPLACE PROCEDURE BSP_DBMSXMLGEN IS
    v_ctx DBMS_XMLGen.ctxHandle;
    v_file Utl_File.File_Type;
    v_xml CLOB;
    v_more BOOLEAN := TRUE;
    l_exception varchar2(2000);
    BEGIN
    -- XML context erzeugen
    v_ctx := DBMS_XMLGen.newContext('SELECT * from emp_big');
    -- Root Element und Zeilentag setzen
    DBMS_XMLGen.setRowsetTag(v_ctx, 'Emp');
    DBMS_XMLGen.setRowTag(v_ctx, 'Zeile');
    -- XML Dokument erzeugen
    v_xml := DBMS_XMLGen.GetXML(v_ctx);
    DBMS_XMLGen.closeContext(v_ctx);
    -- Ausgabedatei erzeugen
    v_file := Utl_File.FOpen('XML_DIR', 'BSP_DBMSXMLGEN.xml', 'w');
    -- In Datei schreiben
    WHILE v_more LOOP
    Utl_File.Put(v_file, Substr(v_xml, 1, 32767));
    IF Length(v_xml) > 32767 THEN
    v_xml := Substr(v_xml, 32768);
    ELSE
    v_more := FALSE;
    END IF;
    END LOOP;
    Utl_File.FClose(v_file);
    EXCEPTION
    when OTHERS then
    l_exception := sqlerrm;
    dbms_output.put_line('Error: ' || l_exception);
    END;
    The procedure works well with 14 emp rows. But after duplicating the rows a few times the procedure stops working...
    insert into emp_big select * from emp_big;
    commit;
    select count(*) from emp_big;
    COUNT(*)
    960
    exec bsp_dbmsxmlgen;
    The file content:
    <?xml version="1.0"?>
    <Emp>
    <Zeile>
    <EMPNO>7369</EMPNO>
    <ENAME>SMITH</ENAME>
    <JOB>CLERK</JOB>
    <MGR>7902</MGR>
    <HIREDATE>17.12.80</HIREDATE>
    <SAL>800</SAL>
    <DEPTNO>20</DEPTNO>
    </Zeile>
    <Zeile>
    <EMPNO>7499</EMPNO>
    <E
    The procedure stops writing to file in the middle of a table row...
    Any ideas?
    Thanks
    Markus

    Thanks, Marco, but I think I need to be more clear. The original XML data in the XMLType field looks like:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <metadata>
    </metadata>where "metadata" is the root node of the entire file. What happens is when I run the script listed above, the name of the field being queried gets added as a root node, which I don't want. I did figure out how to omit the "ROW" and ROWSET" nodes from being placed in the resulting XML flat file. Using the same script, I replaced:
    -- Root Element und Zeilentag setzen
    DBMS_XMLGen.setRowsetTag( v_ctx, 'Emp' );
    DBMS_XMLGen.setRowTag( v_ctx, 'Zeile' );with
    -- Root Elements
    DBMS_XMLGen.setRowsetTag( v_ctx, '' );
    DBMS_XMLGen.setRowTag( v_ctx, '' );I simply removed "Emp" and "Zeile." By doing this, those nodes are omitted. I still can't figure out how to omit the "XML_DATA" node.

  • How to fetch content from UCM in WLP using VCR

    Hi,
    I configured the connection between weblogic portal v10.3.2 and UCM 11g using VCR adapter guide. But i am struck in how to fetch the content from UCM/VCR and display it in Weblogic portal.
    Please guide me on how to fetch the content from UCM/VCR and display it in Weblogic Portlet ( JSF Portlet). is there any api is available to get the content from ucm and display it in portlet.
    Appreciate your support here.
    Thanks a lot,
    Suresh

    Suresh,
    Please check the name of the VCR configured in the UCm.
    You can use a batch file to load the VCR on to your Weblogic server. Using the name you can retrieve the contents from UCM.
    Please let us know other configuration details to help you further

  • How to Retrive the content from Archive folder ???

    Hi,
    1. I was working on the archiving of the documents and was able to archive the docs into a local archive folder.
    Then I had to test a scenario where when the user wants to search for a document with a specific ContentId, if the ContentId was not present in the content repository, then the content manager has to search for the same in the archived documents. Is this achievable?
    While testing the above, the UCM server had stopped indexing and started giving a Interrupted exception for indexing. While we do a normal checkin also the documents are in DONE status and are not getting published. Tried restarting the indexer also but in vain. How can we restart the indexing so as to publish the docs?
    2. indexing not working even for normal checkin the content.its showing error "indexing aborted" ? content never gets released after checkedin the content ? its struch in done status ?
    while importing the content to ucm serverl, i have deleted "testarchive " (which was exported from contentserver) from Archive folder in UCM install directory.. then many contents were in done status at contentmanagement-> workin progress. Errors showing in content server ...
    Indexing aborted. Error: Directory 'C:/UCM/archives/testacrchive' does not exist. Directory 'C:/UCM/archives/testacrchive' does not exist. [ Details ]
    An error has occurred. The stack trace below shows more information.
    !csIndexerAbortedMsg!syGeneralError!syFileUtilsDirNotFound,C:/UCM/archives/testacrchive!syFileUtilsDirNotFound,C:/UCM/archives/testacrchive
    intradoc.common.ServiceException: !syGeneralError
         at intradoc.common.FileUtils.testFileSystem(FileUtils.java:452)
         at intradoc.server.archive.ArchiveUtils.readFileEx(ArchiveUtils.java:215)
         at intradoc.server.archive.ArchiveUtils.readFile(ArchiveUtils.java:193)
         at intradoc.server.archive.ArchiveUtils.readArchiveFile(ArchiveUtils.java:158)
         at intradoc.server.IndexerReplication.readArchiveProperties(IndexerReplication.java:279)
         at intradoc.server.IndexerReplication.doReplication(IndexerReplication.java:156)
         at intradoc.server.IndexerReplication.doWork(IndexerReplication.java:92)
         at intradoc.indexer.Indexer.doIndexing(Indexer.java:431)
         at intradoc.indexer.Indexer.buildIndex(Indexer.java:340)
         at intradoc.server.IndexerMonitor.doIndexing(IndexerMonitor.java:1012)
         at intradoc.server.IndexerMonitor$4.run(IndexerMonitor.java:832)
    Caused by: intradoc.common.ServiceException: !syFileUtilsDirNotFound,C:/UCM/archives/testacrchive!syFileUtilsDirNotFound,C:/UCM/archives/testacrchive
         at intradoc.common.FileUtils.validatePath(FileUtils.java:801)
         at intradoc.common.FileUtils.validateDirectory(FileUtils.java:781)
         at intradoc.common.FileUtils.testFileSystem(FileUtils.java:437)
         ... 10 more
    Error showing in Archive logs
    Instance idc with archive testAcrchive is no longer being exported. Exception type is 'java.lang.Throwable'. [ Details ]
    An error has occurred. The stack trace below shows more information.
    !csReplicationInstanceRemoved,idc,testAcrchive!syExceptionType,java.lang.Throwable
    java.lang.Throwable
         at intradoc.common.IdcLogWriter.doMessageAppend(IdcLogWriter.java:81)
         at intradoc.common.Log.addMessage(Log.java:268)
         at intradoc.common.Log.errorEx2(Log.java:216)
         at intradoc.common.LoggingUtils.logMessage(LoggingUtils.java:97)
         at intradoc.common.SystemUtils.reportErrorEx(SystemUtils.java:462)
         at intradoc.common.SystemUtils.errEx(SystemUtils.java:547)
         at intradoc.server.IndexerReplication.doExport(IndexerReplication.java:196)
         at intradoc.server.IndexerReplication.doReplication(IndexerReplication.java:169)
         at intradoc.server.IndexerReplication.doWork(IndexerReplication.java:92)
         at intradoc.indexer.Indexer.doIndexing(Indexer.java:431)
         at intradoc.indexer.Indexer.buildIndex(Indexer.java:340)
         at intradoc.server.IndexerMonitor.doIndexing(IndexerMonitor.java:1012)
         at intradoc.server.IndexerMonitor$4.run(IndexerMonitor.java:832)
    Please resove the above issues,
    Please helpme out... this is pretty urgent as i am strucked at my work ? how to get relase the content ?
    thanks inadvance.
    Thanks,
    yt
    Edited by: 792821 on Oct 28, 2010 12:17 PM

    hi,
    We wanted to achieve the following.
    1) Data which is older more than 2 months should be sent and stored in a different storage device[ example: SAN storage / oracle storage etc ].
    2) When user requests for the contentId and if its older more than 2 months, the request has to search / retrieve the secondary storage system and get the documents.
    As of now, we need not required archival things, we just need retrive documents from out side devices. it can be SAS or any other storage device/unit.
    i just need to retrive the content based on metadata from other storage device.
    lets say one example , we have large amount data which is stored in one device or hard disc
    it can be SAS or any storge unit, using UCM, i need to retrive to the content from storage device/unit.
    how to retrive document from out side device ? how i need to configure for other storge unit ? is it possible through provider for providing other system information in UCM server ? is there any other alternate way ???
    how it be achived ? how to config to other storage device using ucm ?
    this requirement is very very urgent and we need proper soluation, so could please let me know soluation with a in detail description.
    thanks in advance

  • LSO- offline player-Is the content secure?

    Hi
    Is it possible to record the content in a PC or write the content in a CD from offline player? meaning is the content is secure?

    We have a concern that if we allow offline player, it may allow employees to record the course on a CD and is there any possibility to restrict this.

  • Submitted content via UCM not showing up (blank page) in Oracle Webcenter

    Hi All,
    Once in a while (1/10, recently more and more), when users in our system Database Version:10.2.0.3.0 ---Oracle Database 10g Enterprise - UCM/Webcenter uploads new content via UCM or updating an existing content, they experience a blank page on the corresponding Webcenter page, i.e. all metadata on that content page in Webcenter appears to be blank.
    In UCM the content metadata and all downloads are uploaded successfully. Our workaround is to enter the content via UCM and submit it without any changes to its metadata fields (blank submit). Sometimes, it takes more then one blank submit.
    Another problem that might be related to this is downloads related items of the parent record on the content getting zero size length on Webcenter. Again, our workaround for this is to blank submit the related items via UCM, or re-upload these downloads via UCM so they be downloadable in Webcenter side.
    If more info needed for this please let me know.
    Please provide your input.
    Thanks,
    Alex.

    I probably didn't explain myself. We have two UCM instances: contribution and consumption. UCM contribution instance used to submit/update new/existing contents. These content aren’t available immediately on the Oracle Webcenter, instead, these contents replicated to the UCM consumption instance and available from there to Oracle Webcenter.
    We never update/create new content via UCM consumption.
    So, if for instance I've updated content xyz on UCM contribution, these changes are replicated to UCM consumption and then Oracle Webcenter can retrieve the info from content xyz and present this corresponding page.
    I think the issue with blank pages (metadata fields - HCSP forms) or zero size download files has something to do with replication between UCM instances.
    To fix this issue, we just submitting (blank submit - without changing any field) the form via UCM contribution instance, or we have to upload the same file again for it to replicate.

  • Is it possible to change the path of the JSESSIONID in WebCenter Content (formerly UCM)?

    We are having problems with multiple portal applications, spaces, and WebCenter Content all using JSESSIONID. I know you cannot change the name or path of the cookie in spaces and I know how it can be changed in the apps. I also know that Oracle do not recommend changing the name in UCM, which would be OK if we could change the path from "/" to something else...say "/cs". I have not been able to find a way to do this so any help would be appreciated.
    Bill

    Hi Bill ,
    I think the details in the following link will help you achieve this :
    http://www.extended-content.com/logged-out-of-ucmwebcenter-content-after-opening-an-adf-page/
    Thanks,
    Srinath

  • 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

Maybe you are looking for