Upload file in Portlet (JSR-168) with library commons-FileUpdate

hi All,
I have write portlet (JSR 168) "UpToFile.java" for upload a file with the Commons-FileUpload 1.1.1 but when deploy in the Oracle Portal the file is not upload, because the variable isMultipart is false:
UPToFile.ProcessAction(...) :
boolean isMultipart = PortletFileUpload.isMultipartContent(request);
(Utility method that determines whether the request contains multipart content.)
view.jsp:
<FORM ACTION="<portlet:actionURL/>" METHOD="POST" enctype="multipart/form-data" >
upload file: <INPUT TYPE="file" NAME="file-upload" SIZE="20">
<INPUT TYPE="SUBMIT" value="upload" >
</FORM>
I do not understand because "isMultipart" is "false".
Tanks.
EDIT: sorry, now work. :)
Message was edited by:
dartan
null

hi All,
I have write portlet (JSR 168) "UpToFile.java" for upload a file with the Commons-FileUpload 1.1.1 but when deploy in the Oracle Portal the file is not upload, because the variable isMultipart is false:
UPToFile.ProcessAction(...) :
boolean isMultipart = PortletFileUpload.isMultipartContent(request);
(Utility method that determines whether the request contains multipart content.)
view.jsp:
<FORM ACTION="<portlet:actionURL/>" METHOD="POST" enctype="multipart/form-data" >
upload file: <INPUT TYPE="file" NAME="file-upload" SIZE="20">
<INPUT TYPE="SUBMIT" value="upload" >
</FORM>
I do not understand because "isMultipart" is "false".
Tanks.
EDIT: sorry, now work. :)
Message was edited by:
dartan
null

Similar Messages

  • Java Portlet (JSR 168) development with Portal

    Hello,
    We have been trying to dive back into Portal development lately. The release of 9.0.4 with support for standards-based portlets has convinced us to begin looking at 9iAS Portal as a practical portal product. We have a development environment setup with a workin 9.0.4 portal.
    Digging through the available docs on the portal studio site, I have come across a couple documents alluding to the installation of a portlet-container. Now, I have already downloaded the JSR 168 framework files. It seems that a good portion of this 'portlet container' consists of these files.
    The problem is that the documentation that is available is nothing more than a step by step set of instructions for setting up an OC4J instance with this 'portlet container', configuring an Oracle database for portlet customizations, and deploying a sample ear into the OC4J instance.
    This does nothing for me.
    What I want is documentation that indicates the requirements necessary to make a JSR-168 compliant portlet (even a 'hello world') exposed through portal with the least amount of effort, and with no references to proprietary tools. I would like to see instructions that are tailored towards a generic J2EE provider, not an OC4J one. I already have a very functional set of tools that should be able to accomodate a JSR-168 producer. We have had many problems with OC4J leading us to try to avoid it at all costs.
    Any ideas?
    Thanks!
    -Sean

    Hello
    I am probably not clear.
    In the OracleAS Portal architecture Java portlet are remote from the portal middle tier.
    In the non standard world (JPDK Portlet), the Portal Middlet tier use SOAP over HTTP to call the portlets.
    In the Standard world (JSR-168), the Portal Middle Tier will use WSRP (Web Service Remote Portlet) to call the portlets. When you use the Oracle JSR-168 container inside OC4J, these portlets are automatically accessible over remotely using WSRP.
    So, as you can see the Portal Middle Tier needs to support WSRP to be able to use JSR-168 portlet. And OracleAS 10g 904 does not currently support WSRP registration. It is why we have the "OracleAS Portal Verification Service for WSRP", to allow you to test your portlet.
    To be able to use JSR-168 (with WSRP) portlet on you internal Portal you'll have to install the OracleAS Portal Standard Developer Preview that will be available soon.
    Hope that clarify my previous statements.
    Regards
    Tugdual Grall

  • Local portlet (jsr 168) in separate webapp possible?

    I have a running portal webapp with some portlets inside (from the tutorials).
    Now I want to add a jsr 168 portet to the portal. The portlet is to be in a separate webapp. I already have it as a war file, if possible I would like to drop the import the war in the portal as a local portlet. Is this possible?
    In pluto (running on tomcat) the portal webapp can "see" the local portlets in other webapps through the crossContext="true" setting for webapp contexts.
    It is not possible for me to pack multiple portlets in a single webapp, since:
    - if possible I would like to deploy already packed war files
    - I use JSF (the required bridge to JSR-168 is already part of the webapp) which uses webapp-wide context-params and also faces-config.xml and other resources, making it impossible to mix multiple JSF portlets inside a single webapp.
    Thanks in advance

    No - this does not go through WSRP. WLP does bypass web services, SOAP,
    HTTP etc when you are running in what is called a local proxy mode. This
    mode is like a method call from the portal web app to your portlet web
    app.
    Subbu
    Peter Mutsaers wrote:
    You mean you have to go through WSRP, even in the local VM? Is there no way to have a truely local portlet (JSR-168 directly without WSRP) in another webapp when running in the same WLS instance?

  • How get browser URL from portlet JSR-168?

    I use Oracle Portal. And I have problem.
    How get browser URL from portlet JSR-168?

    Normaly it is
    http://server:port/portletContextRoot
    Did you create the portlet with JDeveloper? When you dpeloy the portlet to your application server, JDeveloper should output the URL of the portlet test page in the deployment output feedback.

  • Portlet JSR 168

    hi ..
    I can add navigation parameters to portlet JSR 168 by adding the parameters in oracle-portlet.xml .. where it is the only way for portlet communication .
    now I create JSF Application and expose it to JSR 168 -by adding portlet.xml file - it work good but I want to add navigation parameters for this portlet , how ??
    thanks

    You need to deploy to a WLS and then register the WSRP producer to your consuming application.
    You can read my paper about portlets: http://www.yonaweb.be/sites/default/files/ipc_0.pdf
    It explains the basic on how to create and consume portlets in WebCenter 11.1.1.3

  • Use JSF with Portlet JSR 168 Specification

    Hi
    I need to know.... is possible run JSF application with Portlet Specification JSR 168, using Pluto Portal and Apache Tomcat ???
    Best Regards
    Mauricio

    Hi,
    the Apache Jetspeed2 - Project has a bridge,
    that is designed to work with MyFaces.
    http://cvs.apache.org/viewcvs.cgi/jakarta-jetspeed-2/portals-bridges/myfaces/
    Hope it helps you.
    Regards,
    Matthias

  • WLP 9.2 - JSR-168 with beehive compatibility

    Hi all,
    I've got the following task - migrate WL pageflow portlets (based on beehive) to JSR-168.
    As far as I know there is no beehive-JSR168 bridge hence don't know how to run this migration in a clean way.
    Has anybody already had such a problem?
    Will appreciate any help.
    Thanks in advance.

    This solved the problem, thanks!
    One minor adjustment is still required: since we run Portal Admin on the
    Managed Servers, the ldap directory must be deleted from them too
    (\servers\ManagedServer\data\ldap).
    I guess this kind of dependency makes it difficult to share the same
    database between different server environments?
    <Reid Elliott> wrote in message news:[email protected]..
    I would guess when you recreated your database on MSSQL you did not reset
    your Servers LDAP data. There are dependencies between the two so if one
    is deleted, the other must also be cleared or they will get out of sync and
    can run into strange problems.
    There would be two options to do this (reset ldap) after you create your
    database.
    1. Deleting the ldap directory (\servers\AdminServer\data\ldap)
    And if your you don't want to reset the entire database again,
    2. delete the ldap directory above, and delete all entries from
    p13n_entitlement_role,
    p13n_entitlement_resource, p13n_entitlement_policy,
    p13n_entitlement_application and p13n_delegated_hierarchy tables in that
    order..

  • JSR 168 with event handling

    Hi All,
    Can you please give me the samples and documentation for how to handle events in JSR 168 portlets.
    Thanks
    Manu...

    see
    IPC using JSR 168 in Weblogic Portal

  • Uploading files to website not working with Safari in Windows 7

    Safari version: 5.1.7
    OS: Windows 7
    Hi,
    I am a website owner, and I have a feature on my site where users can upload large (up to 50MB) music files to my server. The feature works in Firefox on OSX & Windows platforms and it also works in Safari on OSX. The uploading feature is not working with Safari for Windows. Do you have any idea why and how to fix this? It can't be an issue with my server as it works in other browsers fine and works fine in Safari for OS X.
    If you have any information on how to solve this or things for me to try to rectify this for use with Windows operating system it would be much appreciated.
    Thanks.

    GREAT NEWS!!!!
    I have solved this issue myself with some help from my a user on Microsoft Forums. The issue stems from the mime type of each Browser Chrome, IE, & Safari for Windows defaults as audio/wav. When the mime type is changed to audio/x-wav everything works. Firefox defaults to audio/x-wav and when changed to audio/wav it DOES NOT work.
    Once I input some code in my .php upload page to change the mimetype if audio/wav is detected everything works GREAT!!!
    So Here is what you need to do: Find your upload page and input this code:
    echo "<p>MIME Type: ".$_FILES["file"]["type"]."</p>";   
    right before your "If/then" statement of file type. For me it was near line 30 in my upload.php page, but I'm sure this is different for everyone.
    This will detect and DISPLAY the default mime type of your browser on the error page when your upload doesn't work. Once you know what mime type works for your file type then you can change your "if/then" statement for mime type upload to change your mime type to the correct one.
    I don't want to give the code here, because I'm sure it's specific to your file types and your site construction, but this should lead you on the right track.
    ***This is the solution if you ARE NOT ABLE to upload any certain file in a certain Browser. It has to do with mime type construction***
    I hope this helps others like it helped me!!!!!

  • How do I automatically upload files to an FTP server with Compressor 4?

    So I've been using Compressor 4 in order to compress some videos into a manageable size for streaming. However, I've been trying to figure out how to set up an automatic FTP upload to the program Transmit through Compressor 4, but have been running into roadblocks. When choosing a destination by using the plus icon in the destinations tab, the choice of local or remote no longer appears. Also, when going to the actions tab in the Inspector box, the option to "Execute Applescript" is also gone.
    Has anyone found a way around this yet? I have no experience with Automator, so I am hesitatnt in spending the time to learn a new program just to make the process of compressing and uploading more efficient.

    Hi Nick.
    I'm afraid it went missing in the 4.0.3 update for whatever reason. Unless you have a way of rolling C back one version, you'll either have to write a work-around or see whether it re-appears in a future version.
    Also, http://www.apple.com/feedback/compressor.html
    Russ

  • Portlet(JSR 168) deployment procedure

    i have created portlet and wnat to know, how register the portlet under the producer to drag n drop into the another jspx page.
    Please explain the procedure...

    You need to deploy to a WLS and then register the WSRP producer to your consuming application.
    You can read my paper about portlets: http://www.yonaweb.be/sites/default/files/ipc_0.pdf
    It explains the basic on how to create and consume portlets in WebCenter 11.1.1.3

  • Consuming web services in a jsr 168 portlet best practices.

    I am building portlets (jsr 168 api in Websphere Portal 6.0 using web service client of Rational). Now needed some suggestions on caching the web services data on the portlet. We have a number of portlets (somewhere around 4 or 5) on a portal page which basically rely on a single wsdl Lotus Domino Web Service.
    Is there a way I can cache the data returned by webservice so that I dont make repeated calls to the webservice on every portlet request. Any best practices/ideas on how I could do avoid multiple web service calls would be appreciated ?

    Interestingly, as it often happens with Oracle portal, this has started working without me doing anything special.
    However, the session events my listener gets notified of are (logically, as this portlet works via WSRP) different from user sessions. The problem I'm trying to solve now is that logging off (in SSO) doesn't lead to those sessions being destroyed. They only get destroyed after timeout specified in my web.xml (<session-config><session-timeout>30</session-timeout></session-config>). On the other hand, when they do expire, the SSO session may still be active, in which case the user gets presented with the infamous "could not get markup" error message. The latter is unacceptable in our case, so we had to set session-timeout to a pretty high value.
    So the question is, how can we track when the user logs off. We have found the portal.wwctx_sso_session$ and portal.WWLOG_ACTIVITY_LOG1$ (and ...2$) tables, but no documentation for them. However, the real problem with using those tables is that there's no way we could think of to match the portlet sessions with SSO sessions/actions listed in the tables. (Consider situation when someone logs in from two PCs.)
    Any ideas?

  • Maximum size of upload file using Cross Domain Library

    Hi All 
    I need to know what is the maximum size of file that I can upload using Cross Domain Library from my Provider hosted app. I know that in msdn it is written that usign REST call we can upload upto 2GB but I have doubts if it is true with Cross domain library
    REST Calls. Please suggest.
     spExecutor.executeAsync(
                                   url: fileCollectionEndpoint,
                                   method: "POST",
                                   contentType: "application/json;odata=verbose",
                                   body: filedata,
                                   binaryStringRequestBody: true,
                                   headers: { "X-RequestDigest": $("#__REQUESTDIGEST").val(), "accept": "application/json;odata=verbose" ........
    And Can I pass ArrayBuffer directly or I need to pass only binary string ?
    Thanks in Advance 

    Hi,
    According to your post, my understanding is that you want to know the Maximum size of upload file using Cross Domain Library.
    Per my knowledge, you can upload files up to 2 GB with the REST API. 
    You can refer to:
    How to: Upload a file by using the REST API and jQuery
    In addition, you can pass ArrayBuffer directly. Please refer to:
    FileCollection methods
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Uploading files to Doc Library

    Hello everyone,
    is there an easy way to upload files into a library without(!) having any client assembly? Like just a WebService or anything else. I want to upload files to a https destination (sharepoint library) and it should be a beatiful way using PowerShell and direct
    uploading via WebService. The file is 5 MB large. Is there a good way to do this instead of using a network drive? I was searching for it but non of them is about https.
    Thanks!
    Best,
    Chris

    Hi,
    If you want to upload file from client side programmatically, the Client Object Model SDK(assembly) is required during the development using C# or PowerShell.
    Without SharePoint Client Object Model dlls, we will not be able to take use of the APIs to access the SharePoint objects from client side.
    Best regards
    Patrick Liang
    TechNet Community Support

  • InterMedia Upload Files with ADF

    Hi,
    we are building an application with Struts+ADF+JSP, and we need to upload files an images to database with interMedia, we acomplished it with <adf:inputrender> tag, but when we look the atribute srcname (ORDSYS.ORDIMAGE.SOURCE.SRCNAME and ORDSYS.ORDDOC.SOURCE.SRCNAME), or another attribute of object source (ORDSYS.ORDSOURCE object type), seems that this attributes are not fullfilled by the inputrender tag.
    We have found the "Upload Text File and Image Example" in "Not Yet Documented ADF Sample Applications" of Steve Muench Blog, but there's an exception when the Save button is pushed
    JBO-29000: Unexpected exception caught: java.lang.ArrayIndexOutOfBoundsException, msg=0
    and we can't see if this example saves this attributes that we need for our application.
    Anybody knows how is possible to stablish this blank properties to the valid value using adf:inputrender tag? And how we can use this attributes with the adf:render tag to download/link the ORDSYS.ORDDOC or ORDSYS.ORDIMAGE objects?
    Some help will be well recived.
    Thanks in advanced.

    Thanks Shay.
    I'd see before this examples already, we tried it and it's working fine, but interMedia Database object types have capabilities to contain file name and others properties about uploaded files, that are not fullfilled when adf:inputrender tag is used and we just will like to use this properties.
    I just want to know how would be possible to fullfill this properties with adf:inputrender tag or maybe another way to do this, but always using ADF Business Components objects.
    Do you knows any way to do this?
    Thanks in advanced.

Maybe you are looking for

  • Using the BusinessDelegate pattern at lower levels

    I was hoping to elicit some feedback on general J2EE architecture... We have an application that we separate into three general tiers: web/client tier, service tier (with 'services' that implement business logic) and a data tier (with 'controllers' w

  • I forgot my password! HELP NEEDED ASAP

    forgot my password and also for some reason i cant download itunes it tells me to contact tech support. I really need my password and can not retrive it because of this reason. Does anyone have any idea in how to get into my ipod with out the itunes

  • Walkman app sign in loop

    My walkman app is working fine but when a track is playing I see the message, Signing in - Please Wait. It shows then goes off, then appears and off again. Has a continuous loop and only way to stop it is to press the HOME button.

  • Indesign reverts back to defaults everytime mac is restarted...help?

    Ever since installing CS4 I have had this trouble with Indesign -- specifically with the measurement units reverting back to the default of picas everytime I shutdown/restart my mac. Yes, I have tried the old method of changing this in the preference

  • Preview won't open in Lion

    Preview won't open. I get the message "Click Reopen to open the application again. This report will be sent to Apple automatically." I click "reopen" and the same message returns to the screen. What do I do?