Want to pass DataBase output to RFC as an Input

Hi All,
Can you please let me know, How to pass the DataBase output to RFC as an Input.
I am using JDBC Pooling to get the data from Oracle Databse.I want to pass output data(Which I got from the JDBC Pooling) to RFC as input parameters.

Hi,
Can you please elobrate your scenario and the meaning of JDBC Pooling as well? Are you writing some java jdbc program which will get the data from database and that data you want to send to RFC as input?
If so then you need to use BPM
Receive the request as output from jdbc.
Map it to the RFC structure.
Do the rest ....
Thanks
Amit
Reward points if suggestion is helpful.

Similar Messages

  • I want to show database output in table format by using javafx 1.2

    this code is running in javafx 1.1,but this code is not running in javafx 1.2 . i don't know about the differrence between javafx 1.1 and javafx 1.2.so plz change the code in javafx 1.2 . Iam struggling to create in javafx 1.2
    * Main.fx
    * Created on Sep 27, 2007, 9:37:26 AM
    package tablesample;
    * @author Radhika Gehant
    import javafx.ui.*;
    import javafx.ui.*;
    import java.lang.Thread;
    import java.lang.Exception;
    import java.sql.*;
    class Customer {
    attribute Name: String;
    attribute Addressline1: String;
    attribute Addressline2: String;
    attribute City: String;
    attribute Phone: String;
    attribute Email: String;
    class customerOperations {
    attribute customer : Customer*;
    public
    operation getCustomer();
    attribute datasource : DatabaseAccess;
    customerOperations.datasource = null;
    operation customerOperations.getCustomer() {
    var rs = this.datasource.processDBQuery("SELECT * FROM CUSTOMER");
    while(rs.next()) {
    println("City: {rs.getString('City')} Name: {rs.getString('Name')}");
    insert Customer{City: rs.getString('City') Name: rs.getString('Name') Addressline1: rs.getString('Addressline1') Addressline2: rs.getString('Addressline2') Phone: rs.getString('Phone')} into this.customer;
    }// getCustomer
    var db : DatabaseAccess = null;
    var rs : ResultSet = null;
    /*//Using JavaDB
    db = DatabaseAccess{driverName: 'org.apache.derby.jdbc.ClientDriver'
    jdbcUrl   : 'jdbc:derby://localhost:1527/sample'
    user      : 'app'
    password  : 'app'};
    //Using MySQL
    db = DatabaseAccess{driverName: 'com.mysql.jdbc.Driver'
    jdbcUrl   : 'jdbc:mysql://localhost:3306/MyNewDatabase'
    user      : 'root'
    password  : 'nbuser'};
    try {
    // Connect to database
    db.connect();
    var Allcustomers = customerOperations {
    datasource: bind lazy db
    Allcustomers.getCustomer();
    println("Name: {Allcustomers.customer.Name} ");
    //Begin Frame code
    Frame {
    height: 120
    width: 500
    title: "Populating Table From Database"
    onClose: function() {
    return db.shutdown();
    content: Table {
    columns:
    [TableColumn {
                    text: "Name"
    TableColumn {
    text: "Addressline1"
    TableColumn {
    text: "Addressline2"
    width: 100
    TableColumn {
    text: "City"
    alignment: TRAILING
    TableColumn {
    text: "Phone"
    alignment: CENTER
    cells: bind foreach(p in Allcustomers.customer)
    [TableCell {
                    text:bind p.Name
    TableCell {
    text:bind p.Addressline1
    TableCell {
    text: bind p.Addressline2
    TableCell {
    text: bind p.City
    TableCell {
    text: bind p.Phone
    visible: true
    }//end Frame code
    } catch(e:SQLException) {
    e.printStackTrace();
    * DataAccess.fx
    * Created on Sep 27, 2007, 9:46:04 AM
    package tablesample;
    * @author Radhika Gehant
    import javafx.ui.*;
    import java.lang.Thread;
    import java.lang.Exception;
    import java.sql.*;
    public class DatabaseAccess {
    private attribute driverName: String;
    private attribute jdbcUrl : String;
    private attribute user : String;
    private attribute password : String;
    public attribute driver : Driver;
    public attribute conn : Connection;
    private attribute rs : ResultSet;
    private attribute stmt : Statement;
    public
    operation connect();
    public
    operation shutdown();
    public
    operation tableExists(table: String);
    public
    operation processDBQuery(qry: String): ResultSet;
    }// Database
    attribute DatabaseAccess.conn = null;
    attribute DatabaseAccess.stmt = null;
    attribute DatabaseAccess.rs = null;
    operation DatabaseAccess.connect() {
    // Load driver class using context class loader
    var thread = Thread.currentThread();
    var classLoader = thread.getContextClassLoader();
    var driverClass = classLoader.loadClass(this.driverName);
    // Instantiate and register JDBC driver
    this.driver = (Driver) driverClass.instantiate();
    // JavaFX Class
    DriverManager.registerDriver(driver);
    // Connect to database
    this.conn = DriverManager.getConnection(this.jdbcUrl, this.user, this.password);
    }// Database.connect
    operation DatabaseAccess.processDBQuery(qry: String) :ResultSet {
    // process the query string
    try{
    if(null <> this.conn) { 
    if (this.stmt <> null) {
    this.stmt.close();
    this.stmt = null;
    if (this.rs <> null) {
    this.rs.close();
    this.rs = null;
    stmt = this.conn.createStatement();
    rs = stmt.executeQuery(qry);
    catch(e:SQLException) {
    e.printStackTrace();
    return rs;
    }//processDB

    Do you really need to post three messages with identical topic?
    You have an edit button, you know? That's the icon with a pencil, next to the envelope icon, on the top-right corner of your message (only for the last message of a thread).
    You also have a CODE button above your edit area, it will make code you post much more readable, as asterisks and plus signs are interpreted by the forum...
    i don't know about the differrence between javafx 1.1 and javafx 1.2See [JavaFX 1.2: Features and Enhancements|http://javafx.com/docs/articles/javafx1-2.jsp] for a good start.
    (Funny, I just noticed they write "Java FX" (with a space) in all the titles of the site. Bad for consistency...)

  • Passing the structure to rfc function module

    hi,
    iam having a rfc function module which is importing structure.
    i have to pass only one field value to that structure.
    how can i pass that field value to that structure.
    it is very urgent.
    thanks in advance

    Hi..
    You have to Declare the ACTUAL PARAMETER (workarea) with the Same Structure as that of the FORMAL PARAMETER.
    but you can fill only the FIELD that you want pass in the workarea and pass it to the RFC.
    <b>Reward if helpful.</b>

  • Want to pass STRS2 field into sales order and contract.

    Hi Friends.
    I am creating Sales order using function module IDOC_INPUT_ORDERS and Contract using SD_SALESDOCUMENT_CREATE.
    Now I want to pass STRS2(House number field into Sales Order/Contract). In IDOC I tried to pass E1EDKA1-STRS2, but its not coming into Sales order output.But SD_SALESDOCUMENT_CREATE dont have an option to pass the field value.
    So in that case how can I achieve the desired functionality, Is there any user exit or let me know the suitable method to achieve the functionality.
    Thanks
    Gowrishankar

    Yes I tried that also.I passed the value from program to user exit MV45AFZZ and updated the structure XVBADR in USEREXIT_SAVE_DOCUMENT_PREPARE, but its not getting reflected in Sales Order/Contract.
    Anyone have suggestion..plz let me know.
    Thanks
    Gowrishankar

  • Passing database table values to drop down list list using "vrm_set_values"

    DEar Experts,
    How can we pass database travel to drop down list using vrm_set_value call function.
    Looking forward for advise from you experts .
    REgards
    CHandan

    Dear Anubhab,
    Thanks for your suggestion,
    Plz see my code:
    Type-pools: vrm.
    DATA: it_zlt_mita       TYPE STANDARD TABLE OF Zlt_mita,
               wa_zlt_mita    TYPE zlt_mita,
               it_vrm              TYPE vrm_values with header line .
    Selection-Screen: Begin of Block b1 With Frame Title text-001.
      Parameters:
        p_mitar            Type Zlt_mita-M1 as listbox visible length 20 user-command zcc01 obligatory,
        p_mitarn          Type Zlt_mita-M2.
    Selection-Screen : End of Block b1.
    AT SELECTION-SCREEN OUTPUT.
       Select * From ZLT_mita INTO CORRESPONDING FIELDS OF TABLE it_zlt_mita.
      LOOP at it_zlt_mita into wa_zlt_mita.
         it_vrm-key   = wa_zlt_mita-m2.
         it_vrm-text  = wa_zlt_mita-m1.
         APPEND it_vrm.
         Clear: it_vrm, wa_zlt_mita.
      ENDLOOP.
                     CALL FUNCTION 'VRM_SET_VALUES'
                       EXPORTING
                         id                    = 'P_mitar'
                         values                =  it_vrm[]
    *                  EXCEPTIONS
    *                    ID_ILLEGAL_NAME       = 1
    *                    OTHERS                = 2
                     IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                     ENDIF.
    Data: dynfields type table of dynpread with header line.
         dynfields-fieldname = 'p_mitar'.
          Append dynfields.
    CALL FUNCTION 'DYNP_VALUES_READ'
      EXPORTING
        dyname                               = sy-cprog
        dynumb                               = 1000    " can I use sy-dynnr here
    *   TRANSLATE_TO_UPPER                   = ' '
    *   REQUEST                              = ' '
    *   PERFORM_CONVERSION_EXITS             = ' '
    *   PERFORM_INPUT_CONVERSION             = ' '
    *   DETERMINE_LOOP_INDEX                 = ' '
    *   START_SEARCH_IN_CURRENT_SCREEN       = ' '
    *   START_SEARCH_IN_MAIN_SCREEN          = ' '
    *   START_SEARCH_IN_STACKED_SCREEN       = ' '
    *   START_SEARCH_ON_SCR_STACKPOS         = ' '
    *   SEARCH_OWN_SUBSCREENS_FIRST          = ' '
    *   SEARCHPATH_OF_SUBSCREEN_AREAS        = ' '
      tables
        dynpfields                           =  dynfields
    * EXCEPTIONS
    *   INVALID_ABAPWORKAREA                 = 1
    *   INVALID_DYNPROFIELD                  = 2
    *   INVALID_DYNPRONAME                   = 3
    *   INVALID_DYNPRONUMMER                 = 4
    *   INVALID_REQUEST                      = 5
    *   NO_FIELDDESCRIPTION                  = 6
    *   INVALID_PARAMETER                    = 7
    *   UNDEFIND_ERROR                       = 8
    *   DOUBLE_CONVERSION                    = 9
    *   STEPL_NOT_FOUND                      = 10
    *   OTHERS                               = 11
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
      EXPORTING
        dyname                     = sy-cprog
        dynumb                     = 1000
      tables
        dynpfields                 = dynfields
    * EXCEPTIONS
    *   INVALID_ABAPWORKAREA       = 1
    *   INVALID_DYNPROFIELD        = 2
    *   INVALID_DYNPRONAME         = 3
    *   INVALID_DYNPRONUMMER       = 4
    *   INVALID_REQUEST            = 5
    *   NO_FIELDDESCRIPTION        = 6
    *   UNDEFIND_ERROR             = 7
    *   OTHERS                     = 8
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    PLZ SUGGEST ME IF ANYWHERE I WENT WRONG IN MY CONCEPT AS PER YOUR SUGGESTION.
    Looking forward for your further guidance.
    Regards
    Chandan

  • Passing values to a RFC table structure

    Hi
        I am using an RFC in which there is a table called Submit Details.I want to pass three rows to this table structure in the R/3 system.
                            Can anyone help me how to do this.
    regards
    Nayeem

    Hi,
    Private<name>View.I<value node name >Node node = wdContext.node<value node name >();
    Private<name>View.I<value node name>Element ele;
    <your rfc name> input = new <your rfc name>(); // your rfc name
    wdContext.node<your rfc name>().bind(input); // bind
    <table name> inputTable;
    for (int i=0; i < node.size(); i++ ) // value node - where data is available
    inputTable= new <table name>();
    ele = node.get<value node>ElementAt(i);
    inputTable.set<Attribute>(ele.get<Attribute>());
    input.add<table name>();
    // execute rfc.

  • How to present a link to job (I want to bypass job output cycle wizard)

    Dear firends
    How to present a link to job (I want to bypass job output cycle wizard to open MyExample.BQY)
    http://MyServer:45000/workspace/browse/get/KursHYP2008/siyavus/MyExample?jobOutput=true&user=admin&pass=password
    this link shows wizard to open MyExample.BQY that I need to bypass it by putt it as parameter,
    regards

    Hello. Any update on this one ???
    Thanks in advance ...!

  • Want to pass Applet form variables without showing it on URL Location

    I am running one applet with some form variables. After submit I want to pass those to .asp file to store into database.
    If I use URL method then all are getting displayed on URL location of browser which I do not want. I want to pass many form variables to another .asp file, so it may not be good also.
    What is the best way of doing it ? Need urgent help about it.

    I tried following code using URL Connection Object, Code is running fine in IE and Appletviewer, but not running in Netscape.
    Following is the code:
    There is an applet with form. After Submit button, The form variables will be send to ASP script where I am storing it into database. In Netscape the server connection is made (blank record is getting created) but data is not passed.
    public void actionPerformed(ActionEvent event) {
    try{
    ByteArrayOutputStream byteStream = new ByteArrayOutputStream(512);
    PrintWriter out = new PrintWriter(byteStream, true);
    String postData = "firstName=manisha";
    out.print(postData);
    out.flush();
    URL dataURL = new URL("http://manisha/appletexamples/confirm-px.asp");
    URLConnection connection = dataURL.openConnection();
    connection.setUseCaches(false);
    connection.setDoOutput(true);
    String lengthString = String.valueOf(byteStream.size());
    connection.setRequestProperty ("Content-Length", lengthString);
    connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
    byteStream.writeTo(connection.getOutputStream());
    BufferedReader in =
    new BufferedReader(new InputStreamReader(connection.getInputStream()));
    String line;
    while((line = in.readLine()) != null) {
    System.out.println("line: " + line);
         } //while
         in.close();
    } //try
    catch(Exception e){}//catch
    }//action performed
    My ASP Code
    <%
    Set conn = Server.CreateObject("ADODB.Connection")
    conn.Open("DATABASE=phptestdb;DSN=phptestdsn")
    %>
    <HTML>
    <HEAD>
    <TITLE> A Sample Program </TITLE>
    </HEAD>
    <BODY>
    <%DIM fname
    fname = ""
    fname = Request("firstName")
    response.write ("fname : " & fname)
    qrystr1 = "insert into applettesttable (fname) values ('" & fname & "')"
    conn.Execute qrystr1
    conn.Close
    Set conn = Nothing
    %>
    </BODY>
    </HTML>

  • I want to show console output in my cmd prompt in C# winform application

    Hi,
    I'm launching the some process in C# .net Winform appliaction. But i couldn't able to see console output on the screen. The process is getting launched but inside cmd prompt window, it is showing nothing. I would like to show something on cmd prompt. Please
    help on this.
     using (Process comxdcProcess = new System.Diagnostics.Process())
                            comxdcProcess.StartInfo.FileName = fileName;
                            comxdcProcess.StartInfo.Arguments = args;
                            comxdcProcess.StartInfo.RedirectStandardError = true;
                            comxdcProcess.StartInfo.RedirectStandardOutput = true;
                            comxdcProcess.StartInfo.UseShellExecute = false;
                            comxdcProcess.Start();
                            this.errorComment = comxdcProcess.StandardError.ReadToEnd();
                            StreamReader myStreamReader = comxdcProcess.StandardOutput;
                            //// Read the standard output of the spawned process. 
                            this.errorComment = myStreamReader.ReadToEnd();
                            comxdcProcess.WaitForExit();
    click "Proposed As Answer by" if this post solves your problem or "Vote As Helpful" if a post has been useful to you Happy Programming! Hari

    @Hariprasadbrk
    Do you mean you have use process class to start "cmd prompt" And want to display some output in it?
    If so, there is no need to use RedirectStandardOutput property. This property means the output of an application is written to the
    Process.StandardOutput stream.
    // Setup the process with the ProcessStartInfo class.
    ProcessStartInfo start = new ProcessStartInfo();
    start.FileName = @"C:\7za.exe"; // Specify exe name not cmd exe.
    start.UseShellExecute = false;
    start.RedirectStandardOutput = true;
    // Start the process.
    using (Process process = Process.Start(start))
    // Read in all the text from the process with the StreamReader.
    using (StreamReader reader = process.StandardOutput)
    string result = reader.ReadToEnd();
    Console.Write(result);
    Output
    This section shows the output of the process.
    7-Zip (A) 4.60 beta Copyright (c) 1999-2008 Igor Pavlov 2008-08-19
    Usage: 7za <command> [<switches>...] <archive_name> [<file_names>...]
    [<@listfiles...>]
    So you can start a cmd exe.
    Please also take a look at the article from codeproject
    How to redirect Standard Input/Output of an application
    In summary, the shutdown proces is invoked from my application, and it displays the output from the process in RichTextBox control.
    Have a nice day!
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to pass database login information to a crystal report using c#?

    Hi,
    I need to pass database logon information to a crystal report dynamically using c#.  I am developing a windows application using c# .Net.
    I looked some of the articles however I am not able to figure out the mistake I have did.  Please find below the code I have written so far; It would be great if you could help me out in solving the issue.
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using System.Data.OracleClient;
    using System.Configuration;
    using CrystalDecisions.Shared;
    using CrystalDecisions.CrystalReports.Engine;
    private void Frm_report_Load(object sender, EventArgs e)
                setReportParameters(); // method to pass parameters to the Crystal report
                crystalReportViewer1.ReportSource = new Upper_Lower();  // Upper_Lower is the Crystal report I have used in my project
               TableLogOnInfos crtableLogoninfos = new TableLogOnInfos();
               TableLogOnInfo crtableLogoninfo = new TableLogOnInfo();
               ConnectionInfo crConnectionInfo = new ConnectionInfo();
               Tables crTables;                            
                    crTables = new Upper_Lower().Database.Tables;
                    crConnectionInfo.ServerName = "oops";
                    crConnectionInfo.DatabaseName = "";
                    crConnectionInfo.UserID = "new";
                    crConnectionInfo.Password = "new123";
                    foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in crTables)
                        crtableLogoninfo = CrTable.LogOnInfo;
                        crtableLogoninfo.ConnectionInfo = crConnectionInfo;
                        CrTable.ApplyLogOnInfo(crtableLogoninfo);
    Thanks & Regards,
    Karthik.

    Hi,
    Try using this code ,
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.Shared;
    using CrystalDecisions.Web;
            ReportDocument rd = new ReportDocument();
            rd.Load(Server.MapPath("Report name"));
            rd.SetDatabaseLogon("User Name", "Password", "Server Name", "Database Name");
            CrystalReportViewer1.ReportSource = rd;
    [See Also.|http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/devsuite.htm]
    Hope this helps!!
    Sincerely,
    Nikhil Dharme

  • Passing the output to another program

    Passing the output to another program
    The problem I have that I don�t know how to pass the results of my java Program ( as parameter) to another application!
    I have a class �A.class� should send result �VAR_result� to application �B.application�
    Now I am using it like this: System.out (VAR_result) >> B.application
    But it could not be the right way at least because I cant make any other System.out as debug now.
    My Question please: to pass a parameter to a java is clear: A.class ( var ..)
    But how to take a parameter from a class, to use it in another Applicatin ( script )?
    Thanks a lot

    slackware2007 wrote:
    Passing the output to another program
    The problem I have that I don&#146;t know how to pass the results of my java Program ( as parameter) to another application!
    I have a class &#147;A.class&#148; should send result &#147;VAR_result&#148; to application &#147;B.application&#148;
    Now I am using it like this: System.out (VAR_result) >> B.application
    But it could not be the right way at least because I cant make any other System.out as debug now.Then move your debug to System.err and use System.out as it should be used and pipe stdout to the stdin of the other application..

  • Want to convert RDF output in Excel & Pdf Format.

    Dear All,
    I want that when i run my report with showing the output report builder also convert that file or ask me an option in parameter that in which view you want to see the output of the report in Report Builder, In Excel, or In Pdf. when i choose Excel it open the excel and show the output in Excel, if select Pdf it open Acrobat Reader and open the output in Pdf.
    Kindly dear inform and tell me line by line procedure that how can we do that. i will be very greatful to you all,
    Thanks for your nice cooperation.
    Regards,
    Kamran J. Chaudhry

    Dear Rainer,
    First of all Dear thanks for your nice cooperation.
    secondly i apply the same line in my button press as i show you my code before and you said add only the code line which you send i do it but no result same in Report builder the report output is not showing in PDF i am using Report Builder 6i
    DECLARE
    PL_ID      PARAMLIST;
    BEGIN          
    PL_ID := CREATE_PARAMETER_LIST('REPDATA');
         ADD_PARAMETER(PL_ID,'P_DAILY_ID',TEXT_PARAMETER,:EMP_PROGRESS_MAT.DAILY_ID);
         ADD_PARAMETER(PL_ID,'PARAMFORM',TEXT_PARAMETER,'NO');
         ADD)PARAMETER(PL_ID,'DESFORMAT',TEXT_PARAMETER,'pdf');
         RUN_PRODUCT(REPORTS, 'D:\DAILY-PROGRESS\EMP_SINGLE_RPT',SYNCHRONOUS, RUNTIME, FILESYSTEM, PL_ID, NULL);
         Destroy_Parameter_List(pl_id);
    END;
    I also change in the System parameter DESFORMAT , Initial Value as a PDF
    Kamran J. Chaudhry

  • Passing binary output in servlets

    Hi all,
    I am new to struts.In Jsp i need to give three text field values
    1.category
    2.two date fields.
    On click of submit button,it should export the csv file from db into excel sheets.
    If i didnt give the input values properly and clicking the submit button will display the error msg.
    But next time if i give the proper input values,then it should disappear.
    but my problem is the err msg is not removing from jsp but export is working and in my console :
    SEVERE: Servlet.service() for servlet action threw exception+
    java.lang.IllegalStateException: Cannot forward after response has been committed*
    **and in my action class:**
    The following condition is to check existence of err:
    if (category.length() == 0 || startdate.length() == 0
                        || enddate.length() == 0) {
                   ActionMessages errors = this.getErrors(request);
                   errors.add("fatal", new ActionMessage(DATE_FIELD_MISSING, ""));
                   saveErrors(request, errors);
                   return mapping.findForward("failure");
    The following code is for export  the data:+
    if (category.equals("book")) {
                   String fileName = "part.csv";
                   response.setContentType("application/octet-stream");
                   response.setHeader("Content-Disposition", "attachment; filename=\""
                             + fileName + "\"");
                   try {
                        OutputStream oStream = response.getOutputStream();
                        oStream
                                  .write(" Number, Description, Revision, Dummy, Manual, Classification, Owner, Global Effective Date, Global Expiration Date, New Part\n"
                                            .getBytes());
                        for (int i = 0; i < result.size(); i++) {
                             PartDTO part = (PartDTO) result.get(i);
                             StringBuffer sbpart = new StringBuffer(part.getPartNumber());
                             sbpart.append(',');
                             sbpart.append(part.getPartDescription());
                             sbpart.append(',');
                             sbpart.append(part.getRevision());
                             sbpart.append(',');
                             sbpart.append(part.getIsDummy());
                             sbpart.append(',');
                             sbpart.append(part.getIsManual());
                             sbpart.append(',');
                             sbpart.append(part.getClassification());
                             sbpart.append(',');
                             sbpart.append(part.getOwner());
                             sbpart.append(',');
                             sbpart.append(part.getEffectiveDate());
                             sbpart.append(',');
                             sbpart.append(part.getExpirationDate());
                             sbpart.append(',');
                             sbpart.append(part.getIsNewPart());
                             sbpart.append("\n");
                             oStream.write(sbpart.toString().getBytes());
                        oStream.close();               } catch (IOException ioe) {
    return mapping.findForward("success");
    I think oStream.close() will return to jsp .. so the last return statement is not working..
    I dont know how to do it in someother way......Plz help me.its urgent yaar......Thanks in advance....

    It's been awhile since I've used Struts, so don't put too much stock in this answer. That said...
    Generally, you should not close the response output stream, ever. The application server takes care of this, when and if the time is right.
    Also, it appears that you're writing output within an action, and then forwarding to a JSP. If you want to write binary output or some other type of output for which a text-template based JSP is not appropriate, forward to a plain old servlet, and write your output there. Define the servlet as you would any other in web.xml, and dispatch to it from Struts instead of going to a JSP.
    Good luck!
    - Jerry Oberle

  • We want to a exact output  file size  (12inch x 12inch ---- 11.88inch x 12inch) in Book module

    we want to a exact output  file size  (12inch x 12inch ----> 11.88inch x 12inch) in Book module.
    lightroom of the published work is very uncomfortable in korea
    so considering other programs.
    Is thereroom for improvement in the next version?

    we want to a exact output  file size  (12inch x 12inch ----> 11.88inch x 12inch) in Book module.
    lightroom of the published work is very uncomfortable in korea
    so considering other programs.
    Is thereroom for improvement in the next version?

  • I want to pass my iMAC along to my kids. System is 10.4.11 or 10.5.11.  Have original Lion and Tiger OS discs.  What do I need to do to set it up for a new user?

    I want to pass my iMAC along to my kids. System is 10.4.11.  Have original Lion and Tiger OS discs.  What do I need to do to set it up for a new user?

    I'm having to guess at which iMac you have. This forum covers three older variants of the iMac family that were made from 1998-2005 with three different processor types.
    If yours has a G-series processor, it can run neither Lion 10.7  nor Snow Leopard 10.6. If the processor is a G5 or a G4 (must be faster than 867mHz( you can install Leopard 10.5. If your plan is to reinstall the OS before turing over the computer, let us know which iMac you  have (doing "About this Mac" from the Apple menu will give the processor type--that will do for this purpose)
    If "About this Mac" says you have an Intel processor, you have a much newer iMac. Let us know and I can ask the Hosts to move it to that separate forum.
    If you wish to maintain control over the computer, you can go to System Preferences > Accounts and set up a new standard account. The user logged into that acct can pretty much use anything installing in that account but cannot install new software or modify the system. That means less chance of something bad getting on the computer but also means they wil be asking you to help install stuff as they won't have access.
    If you wish to give the kids full control, set up a new account with admin priveleges, then either strip content form your account and leave it, or simply delete it once you are satisfied that the new accout is working.
    This Apple support page is chock-full of helpful tips on manageing accounts and security in OS10.4 Tiger"
    http://www.apple.com/support/tiger/accounts/

Maybe you are looking for