How to open jxl workbook directly using JSP...??

Dear Friends,
I have created an object for "jxl.write.WritableWorkbook" in my action class, suppose let's say "objWB"
now I can write this object to a file using objWB.write(), If I write to a file I am able to open it using FileInputStream
but I don't have permissions on my client machine
so is there any way, where I can open it directly using JSP.
Thanks in advance..
GP
Don't think be happy

Don't think, be happy eh? How can you be happy if you have no capacity to register it?
In any case, to "open" a document in any web environment, you write the binary data to the response with the correct content-type set. If for example you set the content-type to "application/ms-excel" and on the client computer a program is registered to handle that content type, the document might be opened directly in that application. If there is no application registered to handle the content-type, a download of the file is usually offered.
Do a google search for popular content-type values. I'm sure you can also find examples on how to output a binary file to the response. You are already almost there, in stead of writing the data to the fileoutputstream, write it to the outputstream of the response object in stead.

Similar Messages

  • How to open a doc file using jsp Anchor tag

    when i am trying to open a doc file using a jsp it is opening with out proper alignment.
              how to open a doc file with proper alignment using Anchor Tag in JSp Page
              

    Hello!
    Does some one of you had open a MS word file (.doc) in Java search for a token like [aToken] replace it with another text and then feed it to a stream of save it?
    I want to build a servlet to open a well formatted and rich on media (images) ms word document search for tokens and replace them with information form a web form.
    Any Ideas?
    Thank you in advanced.

  • How to open word document directly using ole2 and ole containers

    Hello
    i am using ole conatiners....in forms 6i. i want o open word document directly when i click a button....
    i have tried host....ole but word opens .....i want the document to open at once.....
    what should i use /set
    plz tell by host command and ole2 as well
    its urgent.....
    thanks

    Try this code, Hope this will work.
    declare
    item_name varchar2(80) := 'letter';
    item_id item;
    verb_index_str VARCHAR(20);
    verb_index PLS_INTEGER;
    verb_cnt_str VARCHAR(20);
    verb_cnt NUMBER;
    verb_name VARCHAR(20);
    loop_cntr NUMBER;
    begin
    item_id := Find_Item(item_name);
    IF Id_Null(item_id)THEN
              message('No such item: '||item_name);
    ELSE
    verb_cnt_str := Forms_OLE.Get_Verb_Count(item_id);
    verb_cnt := TO_NUMBER(verb_cnt_str);
    FOR loop_cntr in 1..verb_cnt LOOP
    verb_name := Forms_OLE.Get_Verb_Name(item_id,loop_cntr);
    -- message(verb_name);
    -- message(loop_cntr|| ' '||verb_name);
    IF verb_name = 'Open' or Verb_name = '?E?'THEN
    EXEC_VERB(item_id,verb_name);
    END IF;
         end loop;
    end if;
    EXCEPTION
    WHEN OTHERS THEN
    MESSAGE('Error: '||TO_CHAR(SQLCODE)||' '||SQLERRM);
    RAISE FORM_TRIGGER_FAILURE;
    end;

  • I have downloaded the 30 day free trial using Adobe Download Assistant but I do not know how to open it and start using it.

    I have downloaded the 30 day free trial using Adobe Download Assistant but I do not know how to open it and start using it.

    This was so annoying!! It took me a good couple of hours but i figured it out, you need to do the following: Go to the folder where you saved the download (in my case i saved it in My Downloads) -> click on 'Adobe Photoshop Elements 12' -> click on 'PSE 12' -> click on 'Setup' (select the icon which is a box with a shield) -> follow instructions and....voila! You will need to restart when it suggests so save anything else first, then when it reboots you should see the icon on your desktop....hpe this helps!

  • How to open a pdf file using OPEN DATASET

    Im trying to convert a pdf into binary format. So im trying to read the contents of the pdf into a XSTRING. Using the FM 'SCMS_XSTRING_TO_BINARY' i can convert the XSTRING to binary format.
    How to open a pdf file using OPEN DATASET and transfer its contents in a XSTRING variable.
    What i've tried is....
    DATA: f_name type string value 'C:\rep_output_pdf.pdf',
          x1 type xstring,
          LT_DATA TYPE STANDARD TABLE OF X255.
    OPEN DATASET f_name FOR input IN BINARY MODE.
    READ DATASET f_name INTO x1.
    CLOSE DATASET f_name.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
        EXPORTING
          BUFFER     = x1
        TABLES
          BINARY_TAB = LT_DATA.
    Im getting a short dump .
    Short text: The file is not open.
    Plz help me out.

    Hello Rajesh,
    You are trying to do use OPEN DATASET with a local file. NOT POSSIBLE
    You have to have the file in the app server to use OPEN DATASET.
    BR,
    Suhas

  • How to open Facebook in china using MacBook Pro?

    hello, please to resolve on how to open facebook in China using MacBook Pro.
    Many thanks to all!

    You can't. Want more GPU? You'll have to purchase a new computer.

  • How do i display Jasper Report Using Jsp

    Hi,
    Can anyone give me the code snippet of how to display a jasper report using jsp
    Thanx in advance
    --H                                                                                                                                                                                                                                           

    JasperReport jasperReport =
    JasperCompileManager.compileReport(file);
    JasperPrint jasperPrint = JasperFillManager.fillReport(
    jasperReport, null, conn);
    JasperExportManager.exportReportToHtmlFile(
    jasperPrint, tDest);
    JasperViewer.viewReport(jasperPrint);
    //replace file -> .jrxml file source path
    conn -> database connection name
    tDest -> .html file destination

  • How to Call Custom BPEL Process using JSP

    Hi All,
    I m not able to find out the way " How to deploy Custom BPEL process using JSP." Suppose I m Designing my custom BPEL process , and I want to call process through JSP.
    In order to call the BPEL process using JSP I may get the Reference from Oracle guide, But it is for Existing Example like Hello world, Order Booking.
    But I am facing the problem in order to call the Custom BPEL process.
    In case of Oracle Example it looks Simple but How to call Custom BPEL process using JSP.
    Please help me.
    Thanks&Regards
    Devesh Mishra

    hi
    The BPEL Developer guide give the way to Locate the service.can you please specify where you are getting the problem.
    Thanks,
    Sivakumar

  • Using Macro in Excel How to open a SAP directly?

    Hi,
           Can Anyone Suggest and help me to do above Code in Excel,"Using Macro in Excel  How to open SAP directly"
    Example: I want to Open T.CODE: MM01 directly, without login in to SAP, Using Macro, i want to open SAP Directly, Anyone Suggest me how to do it?.............
    I Tried this But it  showing Run time Error'438', Object does not support this property or method........
    VBCODE:
    Dim sap As Object
    Dim conn As Object
    Sub T_login()
    Set sap = CreateObject("SAP.Functions")
    Set conn = sap.Connection
    conn.System = "production"
    conn.client = "800"
    conn.user = "SAPUSER"
    conn.Password = "123456"
    conn.Language = ""
    conn.Tcode = "MM01"
    If conn.logon(0, False) Then
    MsgBox "Logon to the SAP system is not possible", vbOKOnly, "Comment"
    Else
    End If
    If Not IsObject(SapGuiApp) Then
    Set SapGuiApp = CreateObject("Sapgui.ScriptingCtrl.1")
    End If
    If Not IsObject(Connection) Then
    Set Connection = SapGuiApp.OpenConnection("production", True)
    End If
    If Not IsObject(session) Then
    Set session = Connection.Children(0)
    End If
    session.findById("wnd[0]/usr/txtRSYST-MANDT").Text = "CLIENT"
    session.findById("wnd[0]/usr/txtRSYST-BNAME").Text = "USER"
    session.findById("wnd[0]/usr/pwdRSYST-BCODE").Text = "PASSWORD"
    session.findById("wnd[0]/usr/txtRSYST-LANGU").Text = ""
    session.findById("wnd[0]/usr/txtRSYST-LANGU").SetFocus
    session.findById("wnd[0]/usr/txtRSYST-LANGU").caretPosition = 2
    session.findById("wnd[0]").sendVKey 0
    Set wshell = CreateObject("Wscript.Shell")
    wshell.Run Chr(34) & Path & "\script.vbs" & Chr(34), 1, 1
    End Sub
    Anyone send me the Exact code related to this.................
    Its very immediate requirement.................
    Regards
    Karthick

    Hi Karthick,
    You could try the following:
    Sub Test()
    If Not IsObject(SAPguiApp) Then
        Set SAPguiApp = CreateObject("Sapgui.ScriptingCtrl.1")
    End If
    If Not IsObject(Connection) Then
        Set Connection = SAPguiApp.OpenConnection("SYSTEMNAME", True)
    End If
    If Not IsObject(session) Then
        Set session = Connection.Children(0)
    End If
    session.findById("wnd[0]/usr/txtRSYST-MANDT").Text = "123"
    session.findById("wnd[0]/usr/txtRSYST-BNAME").Text = "USER"
    session.findById("wnd[0]/usr/pwdRSYST-BCODE").Text = "PASSWORD"
    session.findById("wnd[0]/usr/txtRSYST-LANGU").Text = "EN"
    session.findById("wnd[0]/usr/txtRSYST-LANGU").SetFocus
    session.findById("wnd[0]/usr/txtRSYST-LANGU").caretPosition = 2
    session.findById("wnd[0]").sendVKey 0
    session.findById("wnd[0]/tbar[0]/okcd").Text = "/nmm01"
    session.findById("wnd[0]").sendVKey 0
    session.findById("wnd[0]").maximize
    MsgBox "If you click on the OK button, the SAP session is terminated."
    End Sub
    SAP GUI should appear in the new design, you must do the following:
    START -> All Programs -> SAP Front End -> SAP GUI Configuration -> Application -> Add -> excel.exe -> Open
    If the program is started from a VBS file, it must be entered here wscript.exe.
    Regards,
    ScriptMan

  • How to open and the view the .jsp(OAF) page and it's related code?

    Hi,
    Can anybody help on how to open the .jsp and it's related java files to see the coding? I want to know the table and view details related to a particular OAF page. It will be great help if someone explains.
    Thanks in advance.
    Muruga.
    Edited by: Murugeshapps on Jun 26, 2009 6:37 AM

    Hi,
    Please see the following documents.
    Note: 416708.1 - How to find the correct version of JDeveloper to use with eBusiness Suite 11i or Release 12.x
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=416708.1
    Note: 330236.1 - Configuring JDeveloper For Use With Oracle Applications 11i and R12
    https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=330236.1
    For further OAF questions, please post it in [Technology - OA Framework |http://forums.oracle.com/forums/forum.jspa?forumID=210] forum, you would probably get a better/faster response.
    Regards,
    Hussein

  • How to open illustrator file (.ai) using Indesign and save it as XML

    I know how to open a Illustrator file (.ai) in Indesign.
    It would be like :
    1 ) Save your Illustrator file as AI. This Native format is most compatible with InDesign.
    2 )  Go to -> InDesign, click on your document using your  Frame Rectangle tool (the one with the X through it).
    3 )  Fill in the desired size (can be adjusted later).
    5 ) Go to File menu > Place.
    6 )  Find and select the Illustrator file in the window that opens.
    7 ) Click the Open button.
    Adjust size, & position of your image using the Direct Selection tool (white arrow), and the cropping with the Seclection tool (black arrow.
    Now I want to save this file as XML.
    After that,  I say
    1 )  File -> Export
    But this file saves as XML only shows he the root element nothing else.
    Every time , this shows like
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Root></Root>
    Nothing is there as contents.
    Can anyone let me know, is it possible to store .AI file as XML.
    My requirement is simple, i want to store the .ai file as XML.
    Some how I am using Indesign to do so . Can any body help.
    Thanks,

    Copy and paste is again seems same as 'Place the file'  , it wouldn't help again.
    Copy( from Illustrator) and paste( it in Indesign) and  later saving\exporting as XML again create the same the XML file with no data . Just a XML structure,
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <Root />
    RRegarding using the FXG and SVG file .. saving these formats to XML does not shows the Co-ordinates in XML formats.
    I do I would like to have the coordinates (x,y) so that later on , if required I can change the coordinates and display the Image or Text in the file. As this is a requirement for business card.
    A

  • How to manipulate data in AS400 using JSP?

    hi i am developing a system and i am using JSP with AS400 as its database.
    My question in how am i be able to access the data from the database to the pages?
    How can i also manipulate the data in the database using JSPs?ex..add,edit,delete
    Can anyone help me about it..it would be better if i got to see some sample codes.

    Now then first of all lets come back to origination of specification
    to me AS 400 is a product technology from IBM.
    IBM offers solutions for operating on respective platform using a specific Application Programming Environment and if you are looking for a solution using Java Environments the below PDF / articles might have to serve your need.
    http://www.redbooks.ibm.com/pubs/html/as400/v4r5/ic2924/info/java/rzaid/java400.pdf
    http://search400.techtarget.com/tip/1,289483,sid3_gci537120,00.html?FromTaxonomy=%2Fpr%2F2fa
    http://publib.boulder.ibm.com/iseries/v5r1/ic2924/index.htm?info/rzahh/javadoc/RLReadFileExample.html
    http://publib.boulder.ibm.com/infocenter/iadthelp/v6r0/index.jsp?topic=/com.ibm.etools.iseries.javatools.doc/tasks/t4over.htmand if you are looking for a open source solution the below project library might intrest you
    http://jt400.sourceforge.net/Hope that might help :)
    REGARDS,
    RaHuL

  • How to open a Save Dialog in JSP?

    Hi all, i need to export a CSV file. A button is provided to the user to choose where to save the file. My problem is how to open a 'Save As' dialog box in JSP?

    Hi all, i need to export a CSV file. A button is provided to the user to choose where to save the file. My problem is how to open a 'Save As' dialog box in JSP?

  • How to open a PDF file using NWDS or VC

    Hi Frndz...
    As per my requirment i need to open a PDF file on browser which PDFs are reside on R/3 and in my case EP server is on UNIX usinig either NWDS or VC ....
    Thanks in Advance
    Regards
    Rajesh
    09903726944

    hi,
    can you put your question much more clearly? I couldnt get you properly.
    Check out the following links, they may be useful
    [How to Create a pdf form Using Web Dynpro - Java;
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/805709cb-ec97-2910-04b8-f3d6303d8d3b]
    [Diff - PDF view inside NWDS livecycle designer and when App. is run;
    [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90e8e837-cc15-2a10-8db1-a87e2d29e9c9]
    Regards,
    Murthy.

  • How to open a htmlwebpage by using pl/sql?

    my problem is how to open/invoke a existing webpage by using pl/sql.Because I want to do a authentication function,and write a procedure to varify the user ID and password.If they are valid,a welcome webpage can display,otherwise a eror message/webpage will be invoked.
    My question is how to display the error message to the webpage or to open a webpage which display the error message by using pl/sql.

    I think you may be in the wrong forum, but anyways...
    What I think your looking for is the htp.print('insert html here'); function. It's plsql, and writes out html to the web server that calls it.
    if you search for htp.print you should find loads of examples.
    hope this helps.
    Merv.

Maybe you are looking for