File upload functionality in oracle portal server

I have got a struts portlet on oracle portal server 9.0.4.My functionality is to have a file upload facility. I tried to achieve it , but problem arises when i use any pdk taglibs like
<pdk-html:link page="/ShowInitialSupportScreen.do?action=initial&levelOfAction=3">
after uploading when i forward to a result.jsp. and in that file if i use a tag like above, it gives null pointer exception because
httpservletrequest.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST)
this returns null when my enctype is multipart/form-data. in the fileupload.jsp
and the in the internal implementation of the pdk taglib it refers to the PortletRenderRequest from httprequest object.
The following link says multipart is not supported by the Parallel Page Engine.
Re: multipart/form-data jsp
Do you have any idea on this issue. File upload seems to be a basic functionality but doesnt the Oracle portal Server support it?
With kind regards,
-Rafeeq

I got the solution, we cannot achive file upload in portal server cos it does not support Multi-part Data . instead i achieved it by a separate struts application to upload and invoked it from my portal application in an popup window.

Similar Messages

  • How can I send files by FTP with Oracle Portal?

    I want to send some file by FTP.
    How can I send files by FTP with Oracle Portal?
    Any ideas?

    Enrique,
    Are you trying to transfer more content from remote locations to expose as items within a portal page? By itself, the Oracle Portal runs within the context of the database so I'm not sure how FTP at the OS level will help. However, if you're attempting to transfer files from a remote PC to upload within the Portal, here are a couple of suggestions.
    Option 1:
    A. Create a portal page.
    B. Convert a region to Items.
    C. When you're challenged to upload a file from the local OS, ensure you've a drive mapped to your remote location and pick the file to upload into the Oracle9iAS Portal.
    Option 2:
    Alternatively, the Oracle9iAS Portal 9.0.2 supports the WebDAV protocol(Web-based Distributed Authoring and Versioning Protocol) allowing endusers with a WebDAV client to upload content into the Portal seamlessly from their desktop.
    Pls. check out:
    http://portalcenter.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/OTN_CONTENT/MAINPAGE/PUBLISH_CONTMGMT/TECHNOTE_WEBDAV.HTML
    Hope that helps!
    Thanks,
    Sudi Narasimhan
    Oracle9iASPortal Partner Management/Development
    I want to send some file by FTP.
    How can I send files by FTP with Oracle Portal?
    Any ideas?

  • 2-way file upload/download b/w client/server

    I need help for a good design strategy for 2-way file upload/download betweeen client and server.
    I have to upload a set of files to the server (which is a servlet)
    and again the servlet downloads another set of files to the client (which is an applet)
    I could find a solution to this problem only to a certain extent (i.e) I can upload any no.of files to the servlet from applet but the servlet can download only a single file to the applet.
    But now the requirement needs the servlet to be able to send more than one file. I am not going anywhere ahead from this point since last 2 days.
    I have used ObjectOutputStream-ObjectInputStream objects at both ends for communcation and sending the files as bufferes of 128 size. But this is becoming more complicated to manage the streams!!
    if anyone of you have done this before please help with this!
    Thaks
    sri

    Give this a try.
    1) construct
    2) call ZipDocVO.add(Serializable) for each obj that you wish to send.
    3) call ZipDocVO.zip() to zip it up when you are finished adding objects.
    4) send the ZipDocVO, using ObjectOuputStream or whatever
    5) call ZipDocVO.unzip()
    6) call ZipDocVO.getDocuments() to access your objects
    import java.io.*;
    import java.util.zip.*;
    import java.util.*;
    public class ZipDocVO implements Serializable {
         private List     vos;
         private byte[]     rawData;
         private boolean     isZipped;
         public ZipDocVO( byte botype, int key )
              vos = new ArrayList();
         public List getDocuments() { return vos; }
         public void add( Serializable doc ) { vos.add( doc ); }
         private boolean isZipped() { return isZipped; }
         public void zip() {
              if( isZipped() ) {
                   System.out.println( "Already zipped!" );
              else {
                   try {
                        // First zip our documents
                        ByteArrayOutputStream baos = new ByteArrayOutputStream();
                        GZIPOutputStream gzos = new GZIPOutputStream( baos );
                        ObjectOutputStream oos = new ObjectOutputStream( gzos );
                        oos.writeObject( vos );
                        oos.close();
                        // Then get rid of the unzipped versions
                        rawData = baos.toByteArray();
                        vos = null;
                        isZipped = true;
                   catch( IOException ioe ) {
                        System.out.println( "Unable to zip : " +ioe.getMessage());
         public void unzip() {
              if( !isZipped() ) {
                   System.out.println( "Not zipped!" );
              else {
                   try {
                        // First unzip our documents
                        ByteArrayInputStream bais = new ByteArrayInputStream( rawData );
                        GZIPInputStream gzis = new GZIPInputStream( bais );
                        ObjectInputStream ois = new ObjectInputStream( gzis );
                        vos = (ArrayList)ois.readObject();
                        ois.close();
                        // Then get rid of the zipped versions
                        rawData = null;
                        isZipped = false;
                   catch( Exception e ) {
                        System.out.println( "Unable to unzip : " +e.getMessage());
    }

  • Seamless Integration Between Weblogic and Oracle Portal Server

    Hi,
    Can someone please give me some insight into Seamless integration from Weblogic Portal Server to Oracle Portal Server.
    The Scenario is as:
    A user logs into the Weblogic Portal, this Portal desktop displays some portlets. Links on these portlets navigate the user to the portlets deployed on Oracle Portal.
    Is this feasible, and what version of the 2 servers would support this feature.
    Can someone please snd across online resources which deal with my doubt.
    many Tx.
    Regards,
    Mukta

    You might want to consider using WSRP to aggregate portlets deployed on
    Oracle into WLP. Check edocs and dev2dev for some info on WSRP in WLP.
    You can use 8.1 SP3 or later.
    Check with Oracle to find out which version of their product offers WSRP
    support.
    Subbu
    Mukta Shetye wrote:
    Hi,
    Can someone please give me some insight into Seamless integration from Weblogic Portal Server to Oracle Portal Server.
    The Scenario is as:
    A user logs into the Weblogic Portal, this Portal desktop displays some portlets. Links on these portlets navigate the user to the portlets deployed on Oracle Portal.
    Is this feasible, and what version of the 2 servers would support this feature.
    Can someone please snd across online resources which deal with my doubt.
    many Tx.
    Regards,
    Mukta

  • Portlet problem on Oracle Portal Server....

    Hi all,
    i m using Oracle Portal Server 10.1.2.
    Problem is as follows:-
    There are two portlets (P1, P2) added on two seperate portal tabs( TB1,TB2) respectively under Portal Builder.
    On portlet P1 when i do a action say Save and it saves the data.
    now i go to portlet P2 which is on tab TB2 and when i come back on TB1 to go on portlet P1 then in the PortletRenderRequest i still get action value as Save and it saves the previous data once more.
    in short....:- even moving on portal tabs the previous action of the last rendered portlet is firing.
    how it is persisting the action in request , even after i have done with moving on portal tabs.
    even on refreshing the page it is adding the same data again.
    But this doesn't happen with IBM Portal Server.(Tested the same code with all the above conditions)
    could any one please have some thoughts ???
    Always nJoy Work
    Neeraj Sidhaye
    try_catch_finally @ !
    ExtremePortal @ Gmail Dot Com

    Hi Guys,
    One good thing i found is
    When i perform the same operations (as described in the first post of this thread) with JSR168 Portlets then it is working Perfectly.
    So i feel , only the problem is with JPDK Porltet and not with Oracle Portal Server.
    It's good to see that JSR168 are working fine except
    portletURL.setPortletMode(PortletMode.EDIT) ( till now i found this only )
    nJoy Work
    ~Neeraj Sidhaye
    ChkOut_ChkIn @ Yahoo Dot Co Dot In
    ExtremePortal @ Gmail Dot Com

  • Urgent : file upload / download functionality in oracle portal page

    Hi friends
    I am new to portal development and am working on oracle portal 9i rel2 . I need to know how to put the file upload and download functionality in any page. the functionality given in oracle portal user guide is not user friendly (i.e in the content area add item of type file" ) .... i need to now is their any way to achieve the simple , one button click upload download functionality ..like we do in yahoo mails etc.
    any help will be highly appreciated.
    regards
    Dheeraj

    Well, I do not know the exact location of the document, however you can find the document to do this in modplsql User Guide ..(File Upload/Download).
    I am pasting some hint:
    e.g.
    Create an html form..code something like this:
    <html>
    <head>
    <title>test upload</title>
    </head>
    <body>
    <FORM      enctype="multipart/form-data"
    action="pls/mydad/write_info"
    method="POST">
    <p>Author's Name:<INPUT type="text" name="who">
    <p>Description:<INPUT type="text" name="description"><br>
    <p>File to upload:<INPUT type="file" name="file"><br>
    <p><INPUT type="submit">
    </FORM>
    </body>
    </html>
    Create a table
    (who varchar2(..).
    description varchar2(..),
    file varchar2(..));
    Your procedure something like this:
    procedure write_info (
    who in varchar2,
    description in varchar2,
    file in varchar2) as
    begin
    insert into myTable values (who, description, file);
    htp.htmlopen;
    htp.headopen;
    htp.title('File Uploaded');
    htp.headclose;
    htp.bodyopen;
    htp.header(1, 'Upload Status');
    htp.print('Uploaded ' || file || ' successfully');
    htp.bodyclose;
    htp.htmlclose;
    end;
    You should be able to download/access the file using the following URL format:
    http://<host>:<port>/pls/<dad>/docs/<file_name>
    Where file name is = Look for the value in the "myTable" > file.
    Do tell how you get on this.
    Thanx,
    Chetan.

  • How to use the CMS functionality in Sun Portal Server 7.2

    Hi All,
    How to use the CMS functionality using the ccd.war(Portlet) which is available in the library as i could add it to my channel but not able to show the functionality as it is showing the error msg "You are currently not logged in. Please login." should I create userid and there respective roles inorder to use the CMS functionality.
    Has any one used this as I could this in glass fish server.
    Any Input is appreciated.
    Thanks & regards
    Srikanth

    Have a look at the "*Roles*" section of the portal server 7.2 content management system guide
    http://docs.sun.com/source/820-4275/index.html . You can also look at [project mirage|https://mirage.dev.java.net] for some screencasts
    Alternatively,
    1. ccd.war has 3 portlets in it:
    (a) custom content definition portlet
    (b) custom content portlet
    (c) workflow portlet
    2. Inorder to work with these portlets, user needs to be in anyone of the below roles:
    (a)Consumer (b) Editor (c) Approver (d) Administrator (e) Submitter (f) Contributor (g) Publisher
    3. By default ccd.war gets deployed using a default roles file (/var/opt/SUNWportal/tmp/ccd.roles.properties)
    Note: In windows, you may not find this file
    4. Access the portlets as a user in any of the role mentioned in the ccd.roles.properties
    (OR)
    you can use a new roles file which has mapping to your custom roles. For this , undeploy existing ccd.war and deploy again with a new roles.properties file
    Hope this helps!

  • How to displays the standard open file dialog box in Oracle Apps Server

    Hi,
    I am having a form, where i am opening a file and putting that file content in a text box.
    This is my code written in WHEN-BUTTON-PRESSED trigger:
    declare
    in_file Text_IO.File_Type;
    linebuf VARCHAR2(8000);
    filename VARCHAR2(30);
    BEGIN
    filename:=GET_FILE_NAME('d:\Rajesh\Practice', File_Filter=>'Text Files (*.txt)|*.txt|',select_file=>false);
    in_file := Text_IO.Fopen(filename, 'r');
    LOOP
    Text_IO.Get_Line(in_file, linebuf);
    :text_item5:=substr(:text_item5||linebuf||chr(10),1,5000);
    END LOOP;
    EXCEPTION
    WHEN no_data_found THEN
    Text_IO.Put_Line('Closing the file...');
    Text_IO.Fclose(in_file);
    END;
    I have posted this in ORacle Apps Server.Where i was not able to get the Open Dialoq Box.It is giving an error as
    "FRM-40735:WHEN-BUTTON-PRESSED trigger raised unhandled exception ORA-302000.".
    I think the GET_FILE_NAME function is not supported in the Apps Server.
    Is there any alternative solution for getting the OPEN DIALOG WINDOW in Oracle Apps Server?
    Pls let me know.

    Hi!
    waldemar.hersacher wrote:
    "It seems that the VIs called by the clients are running in the user interface thread.
    A call to the file dialog box will call a modal system dialog. So LV can't go on executing VIs in the user interface thread."
    Are you sure? I think, that File Dialog, called by LabVIEW File Dialog from Advanced File Functions Palette doesn't blocking any cycles in subVI, which running in UI Thread. Look in my old example (that was prepared for other topic, but may be good for this topic too).
    2 linus:
    I think, you must a little bit reorganize you application for to do this. You must put your File Dialog into separated cycle. This cycle, of course, will be blocked when File Dialog appear on the screen. But other cy
    cle, which responsible for visualization will run continuosly at the same time...
    Attachments:
    no_block_with_file_open_dialog.zip ‏42 KB

  • File Upload and Download From Presentation server

    I have a requirement to provide a selection option to user to upload a big file from presentation server.
    Not sure whther we can a upload the entire file at one short from presentation server. PLease provide some sample code to upload a huge file from presentation server and downlaod a file to presentation server.

    Hi,
    Try this code for download----
    TABLES:
      kna1.                                " General Data in Customer Master
    TYPES:
      BEGIN OF type_s_kna1,
        kunnr TYPE kna1-kunnr,             " Customer Number
        adrnr TYPE kna1-adrnr,             " Address
        anred TYPE kna1-anred,             " Title
        erdat TYPE kna1-erdat,             " Date on which record created
        ernam TYPE kna1-ernam,             " Name of Person who Created the
                                           " Object
    END OF type_s_kna1.
    DATA:
      fs_kna1 TYPE type_s_kna1.
    DATA:
        t_kna1 LIKE
      STANDARD TABLE
            OF fs_kna1.
    " Select-options----
    SELECT-OPTIONS:
      s_kunnr FOR kna1-kunnr.              " Customer Number
    AT SELECTION-SCREEN ON s_kunnr.
      SELECT kunnr                         " Customer number
        FROM kna1
        INTO s_kunnr UP TO 1 ROWS.
      ENDSELECT.
      IF sy-subrc NE 0.
        MESSAGE 'No such customer exists' TYPE 'S'.
      ENDIF.                               " IF SY-SUBRC NE 0
    START-OF-SELECTION.
      PERFORM customer_selection.
    FORM customer_selection .
      SELECT kunnr                         " Customer Number
             adrnr                         " Address
             anred                         " Title
             erdat                         " Date of record creation
             ernam                         " Person who created object
        FROM kna1
        INTO TABLE t_kna1
       WHERE kunnr IN s_kunnr.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
        BIN_FILESIZE                  =
          filename                      = 'C:\TEMP\CUSTOMER.TXT'
        FILETYPE                      = 'ASC'
         write_field_separator         = 'X'
        HEADER                        = '00'
        WRITE_LF                      = 'X'
         col_select                    = 'X'
         col_select_mask               = 'XXXXX'
        IGNORE_CERR                   = ABAP_TRUE
        REPLACEMENT                   = '#'
      IMPORTING
        FILELENGTH                    =
        TABLES
          data_tab                      = t_kna1
       EXCEPTIONS
               dataprovider_exception        = 20
         control_flush_error           = 21
         OTHERS                        = 22
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.                               " IF SY-SUBRC NE 0
    ENDFORM.                               " FORM CUSTOMER_SELECTION.
    for upload----
    " Table declarations----
    TABLES:
      bkpf.                                " Accounting Document Header
    TYPES:
      BEGIN OF type_s_bkpf,
        bukrs TYPE bkpf-bukrs,             " Company code
        belnr TYPE bkpf-belnr,             " Accounting Document Number
        gjahr TYPE bkpf-gjahr,             " Fiscal Year
        blart TYPE bkpf-blart,             " Document type
        bldat TYPE bkpf-bldat,             " Document Date in Document
      END OF type_s_bkpf.
    DATA:
      fs_bkpf TYPE type_s_bkpf.
    DATA:
      fname(10) TYPE c VALUE 'ACCOUNTING'  .
    DATA:
        t_bkpf LIKE
      STANDARD TABLE
            OF fs_bkpf.
    *" Select-options----
    SELECT-OPTIONS:
      s_bukrs FOR bkpf-bukrs,              " Company code
      s_gjahr FOR bkpf-gjahr.              " Fiscal year
    OPEN DATASET fname FOR OUTPUT IN BINARY MODE .
    PERFORM account_selection.
    LOOP AT t_bkpf INTO fs_bkpf.
      TRANSFER fs_bkpf TO fname.
    ENDLOOP.                               " LOOP T_BKPF
    CLOSE DATASET fname.
    FORM account_selection .
      SELECT bukrs                         " Company code
             belnr                         " Accounting document number
             gjahr                         " Fiscal year
             blart                         " Document year
             bldat                         " Document date
        FROM bkpf
        INTO TABLE t_bkpf
       WHERE bukrs IN s_bukrs
         AND gjahr IN s_gjahr.
    ENDFORM.                               " FORM ACCOUNT_SELECTION
    also try
    CALL FUNCTION 'GUI_UPLOAD'
      EXPORTING
        filename                      = 'C:\TEMP\CUSTOMER.TXT'
      FILETYPE                      = 'ASC'
       has_field_separator           = 'X'
      HEADER_LENGTH                 = 0
      READ_BY_LINE                  = 'X'
      IGNORE_CERR                   = ABAP_TRUE
      REPLACEMENT                   = '#'
    IMPORTING
      FILELENGTH                    =
      HEADER                        =
      TABLES
        data_tab                      = t_kna1
    EXCEPTIONS
          disk_full                     = 15
       dp_timeout                    = 16
       OTHERS                        = 17
    IF sy-subrc EQ 0.
      PERFORM customer_display.
    ELSE.
      MESSAGE 'No customer file exists'(006) TYPE 'S'.
    ENDIF.                                 " IF SU-SUBRC EQ 0
    Regards,
    jaya
    Edited by: Jayapradha Neeli on May 28, 2009 11:38 AM

  • OC4J instance is down in Oracle Portal Server

    Hi all,
    I am new to Oracle Portal 10g. In production environment the portal server component OC4J is automatically shutting down often and came back with few min's. Why it is happening?
    The server.log file has below entry
    " 07:59:37 10.1.2.3.0 Stopped (Shutdown executed by jazn.com/admin from 127.0.0.1 (localhost.localdomain))
    13/02/13 08:04:24 10.1.2.3.0 Started
    13/02/13 08:04:29 10.1.2.3.0 Started "
    Please advice me on this.

    Hi,
    The reason behind your error is because OC4J_BI_FORMS is being restarted repeatedly changing its status: Alive->Stop->Init->Alive.
    Disable the restart parameter from opmn.xml for OC4J component or increase the timeout value. Details given in given below metalink document id:
    +Slow or No Response of Reports 10g/10gR2 Ping URL Causes OPMN To Restart OC4J_BI_FORMS [ID 261867.1]+*

  • Question about File upload functionality in Weblogic

    Hi,
        We're currently trying to deploy a web application on the weblogic 12c server (via war file). And the app needs to upload a text file onto the a temperary directory within weblogic server. And on the web page side, we use JQuery File upload plugin.
        My question is, on the file receiver side, does weblogic provide any tools to receive the uploaded file and store it?
    Thanks very much in advance.

    Hi,
    Before setting the string or xstring to server->response->set_cdata (string) or server->response->set_data (xstring) try this:
    CONCATENATE 'attachment;filename=' lv_filename '.xml'  INTO lv_string.
    * Setting the filename by default
      server->response->set_header_field( name  = 'Content-Disposition'
                                          value = lv_string ).
    Hope this helps.
    Regards,
    Abhinav

  • Oracle Portal Server prompts for password

    Thanks for looking into the problem:
    I have entered UID and Password in the DAD files of both Portal and Login Server. But when i try to login my application portal it prompt me to enter the passord again. I want to login into the my Portal Server without entering any password as they are already present in my DAD files.

    Hi,
    Basically, the UID and password you entered in DADs config files, are UID and password for database schemas ( one for portal schema and other for SSO schema). But when you access portal server, it asks you credentials which are stored for each lightweight user. This user / password is stored in Login Server (SSO).
    Hope it clarifies your problem.
    Regards,
    Ved

  • Oracle Portal Server

    Hi All,
    I have Created a Portal Server with Oracle Application Server 10g on windows Server 2003 which was firstly running fine.
    Now there is some issue that Database Service oracleserviceORCL goes down automatically some times and i have to restart my server and sometimes OPMN Home servies goes down and i have to again restart my server.
    Please give me some solution bacause its my live server.
    Thatks,
    Rakesh Kumar

    hello,
    Check all logs..

  • V2P function of Oracle VM server x86

    When will Oracle VM has the ability to do V2P so that a complete reinstallation (different componet, e.g. OS, DB, AS, etc) is not needed?

    I figured it out! The release notes were on the cd. Silly me!

  • Error "PPE is working" on File Upload with Oracle Portlet running 10.1.2

    I am attempting to perform file upload using an Oracle Portlet running under the 10.1.2 Portal.
    All the examples I have seen indicate you must identify the encoding type as "multipart/form-data" in your JSP. When I do this and attempt to submit the page I get a blank screen with the words "PPE is working.".
    Looking at the "http-web-access.log" on my OC4J Standalone server I can see that the Standalone server never actually receives the request. For some reason it appears the Portal is not forwarding the request to OC4J like it is suppose to.
    Can someone tell me what might be wrong? Does anyone have experience implementing file upload using Oracle Portlets and the 10.1.2 Portal?
    Thanks,

    I have encountered the same problem 4 years before. Finally i figured out, Oracle Portal is not supporting "multipart/form-data".
    Work around is write a servlet program to upload the file into DB.
    This blog may help you.. http://bsubramaniam.blogspot.com/search/label/Java%20File%20Upload
    --Balaji S                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • How do I reverse the order of photos/years in osx

    with the new OS X photos software it shows the most recent year at the bottom of my screen. How do I reverse the order so the most recent year is at the top. Thank you

  • How do I create separate playlists for two ipods/one library and them sync them?

    I have an older classic ipod, my daughter has an older nano.  I got new laptop and have managed to sync my ipod and ipad with success, as well as move my library from old pc to new laptop.  Now I am trying to update and sync my daughter's ipod.  It s

  • Iphone in recovery mode, how can i make assure that my data will not erase

    firstly thanks for quick reply. sorry sir, i am confused in last line you wrote, " This will erase the phone but you will be given an option at the end to restore to an existing backup, if you have one." i did not understand last sentence - if i have

  • PC to Final Cut Pro Questions

    Hi, I am a long time PC user and recently purchased a MacBook Pro and love it. It has a dual core 2.5 processor and 4 gigs of ram. I am thinking of getting FCP and was wondering a few things about it. How is the rendering time? How does it handle HDV

  • Webdav Repositories

    I am trying to setup a webdav repository.  I used the help.sap.com and it states I can find the webdav url for current repositories in the details/properties/access links.  However, when I go there, this is the url available: http://<%hostname%>/irj/