Handle HttpRequest and RESPONSE in the WSRP Portlets

Hi all

I have deployed an application ADF of fusion as a WSRP webcenter Portal portlet.
In my portlet application code I want to perform certain manipulations (like open a file in the browser) file using the ADF table components.
I used Http sevlet request and response but portlet throws a next exception.

java.lang.ClassCastException: org.apache.myfaces.trinidadinternal.config.dispatch.DispatchResourceResponse cannot be cast to javax.servlet.http.HttpServletResponse

Anyone has an idea on how to handle the http request and response in the WSRP portlets.

Hello

Portlets use HttpServletRequest and HttpServletResponse.

Use instead of them: PortletRequest & PortletResponse

Kind regards.

Tags: Fusion Middleware

Similar Questions

  • How can I "automate" a question of a single line and response? the answer starts with the right margin and ending on the right margin as it is typed. The sequence would be: 1 type question 2. Tab at the right margin. 3 type the answer ending on the margin

    5.6.1 MacBook early 2015 OS X 10.11.3 pages

    Question: How can I easily format a series of "a line of questions / answers" (questions and answers on the same line.)

    How to easily create a long series of a single line of questions and answers to the question aligning it on the left and the end of the response by aligning right?

    For example

    !. Type the short question on the left margin.

    2. tab at the right margin.

    3. type the answer with the end of the answer on the right margin.

    Insert a right tab at the right margin.

    Peter

  • need a report on the status of delivery and response for the beneficiaries of the capaign

    Hi, I need to make a report on the State status of response to the beneficiaries of the capaign and discount but cannot find them in the area of subject campaign or the subject of the campaign, any idea response area?
    Thank you

    Just the history of campaign response is the report you're looking for. The fields that you may find useful are.

    The response status - this shows the message open, click, disengagement etc.
    State of delivery - Hard bounce, soft bounce etc.

    To get more details on the above results add the following.

    Type of answer-, this will show the URL TO which the user has clicked a click where you have several followed links in an e-mail. It will also show the reason for hard bounces. This is important because not all hard bounces will trigger the 'Never Email' flag to check. This happens for emails with the statutes of rebound in wrong address.
    Just moved address or unknown address.

  • Custom ActiveTextHandler: handle #hashtag and @mention in the label

    Hi all

    Can we do a manager of custom text in the Label control?

    Example: I want to handle '#somehashtag' or '@someuser' when'm typed by the user.

    Currently, only html like 'http' if I using standart ActiveTextHandler, tag would get shares.

    Thank you.

    Yippee... I think it should work...

        Label {
                text: "www.w3schools.com;\">Visit W3Schools"
                verticalAlignment: VerticalAlignment.Center
                horizontalAlignment: HorizontalAlignment.Center
    
                activeTextHandler: ActiveTextHandler {
                    onTriggered: {
                       console.log("Seems to work fine"+event.text);
                    }
    
                }
            }
    

    I used the HTML in the text of the label...

    activeTextHandler can be used to handle the clicked event...

    Note: I havnt been to manage the click... I just checked with newspapers... If I m able to get the event.text.

    -Dishooom

  • With the help of screens LCD producr / consumer in WebLogic WSRP portlet does not work

    I look at the use of displays LCD asynchronously "push" data to Flash in WebLogic portlets components.  I've set up a test with a destination of producer/consumer of LCD screens - the Flash component is the consumer and the producer is implemented in a java Servlet.  The test code is essentially a copy of the script data push in samples of LCD screens.  The test is run in 'local' portlets and portlets that are intended to be consumed by other portals using WSRP.
    When I run the test by using 'local' portlets (i.e., hosted on the same server as the portal and accessible Portal through the portal on this same server) everything works fine.  When I run my servlet of producers, consumers get the asynchronous push.
    However, when the Flash component is a portlet consumed remotely in another portal via WSRP, push does not work.  I have run the servlet, I see local customers, get the message, but the WSRP portlets never gets the message.  I have to do something different to enable LCDs to push to a remotely consumed WSRP portlet data?

    Hi StevePamp,

    To expose to consumer WSRP portlet, add the following instead of the portlet-preferences of the portlet.xml file section. This setting enabled queries SWF files be sent by proxy if the consumer according to the WSRP specification server.

         channel_uri     /messagebroker/amfpolling     true 
    

    The documentation is available here:

    http://help.Adobe.com/en_US/LiveCycleDataServicesES/3.1/developing/WSC 3ff6d0ea77859461172e0811f00f7045b - 7f2bUpdate.html

    I would like to know if it works for you?

    Thank you

    Rohit

  • What is the meaning of the OPA session tables in Siebel for OPA? That is to say why they were created when they should be used? and what was the first thought behind the creation of tables of session?

    Hi all

    I wanted to know best practices regarding the use of the tables of session OPA? that is, what was the initial logic of creating tables of session? where we should use them and why? also can you please argue for and against about two approaches mentioned below

    Method 1: Save and reterieve OPA session data tables using session ID and case ID?

    Approach 2: Save data in Siebel database tables and just use reterieve case Id Siebel data and save the back.

    Thanks for your replies.

    Session tables are there to allow easy storage of the results of an interview of the OPA. It can be used to extract data from an interview, but probably more useful as an archive of past interviews. Is it possible to load a previous interview in the determinations of the Web from this table.

    1. This can be very useful to resume a partially completed interview.

    2. it can be used as verification of de facto mechanism to see what has been entered in an interview.

    In general I prefer to approach 2 where there are intercepted the incoming data to an interview in a before handler registration and then save the data you need from the interview in the location that you must save it.

  • Can only mediator handle/support both request and response

    Hi all

    I have developed interfaces SOA (11 g, Jdev 11.1.1.2.0) which has the applicant ABC, ABC and ABC of provider Ombudsman.
    I use the AccountingEntry EBO and CreateAccountingEntryListEBM.

    1 / in the applicant ABC (synchronous process), is called the database/table, data are sent to the EBS (Ombudsman ABC), also the Ombudsman sends the data to the provider ABC (synch process) where SAP is invoked and response is returned to EBS (Ombudsman ABC) and any further BSE sends the response to the provider when am store the answer back in the table/database

    application: applicant-> EBS (plectrum)--> Provider (SAP)
    answer: provider-> EBS-> applicant

    The issue I'm facing is with mediator ABC
    1 / in the scenario current, using two mediators, one for the application and another for the answer, am not able to capture the response of SAP (provider ABC) even if the response is sent by SAP, so think for one Ombudsman.
    2/when I use only one mediator who is to handle the request and response, mediator does support this. Please let me know your veiws and apprecaite your help.

    Kind regards
    Mehboob

    I've developed a scenario by using the AccountingEntryEBO, using 10.1.3.4 (not the 11 g version you use)
    However for my scenario, you can replace BSE with the Ombudsman.

    We had the following processes:

    1 source adapter (BSE)
    2. the applicant (BPEL) ABC - when this process called the EBS, with an Invoke, you must use a set of correlations (see below), then there is a stage of reception where it waits for a response that also uses the correlationset even.
    3 EBS (BSE)
    4. the ABC (BPEL) provider - call the target adapter and on completeion successfully, then called the EBSResponse process
    5 lens adapter (BSE)
    6 EBSResponse (BSE) - think of the ABC's of the applicant
    7 SourceAdapter update (BSE) - this adapter updates a flag on the table to say that it has been delivered with success or failure. (but can also be used to return values according to your requirement)

    Definition of CorrelationSet
    --------------------



    Properties = "ns1:CreateAccountingEntryListEBSReqMsg_CreateAccountingEntryListEBM_EBMID_prop" / >

    Invoke
    ---------


    partnerLink = "AccountingEntryEBS."
    portType = "ebs:AccountingEntryEBS."
    operation = "CreateAccountingEntryList."
    variableentree = "CreateAccountingEntryListEBSReqMsg" >


    value = "AccountingEntryEBSCorrelationSet".
    model = 'out' / >

    Receive
    ----------

    variable = "CreateAccountingEntryListEBMRespMsg."
    createInstance = "no".
    partnerLink = "CreateAccountingEntryListJDEOneReqABCSImpl."
    portType = "sonabcs:CreateAccountingEntryListJDEOneReqABCSImplService."
    operation = "CreateAccountingEntryListEBSResponse" >


    value = "AccountingEntryEBSCorrelationSet" / >

    HTH.

    Stuart

  • With only no load and no response from the key enter

    My phone does not have a charge.  Loss of power even when not in service.  Also the button to change the screens is not as responsive or doesn't work at all.

    Take a look at this for a few troubleshooting suggestions.

    If your iPhone, iPad or iPod touch won't charge - Apple Support

    This can give a try to the question of the responsiveness of the button. I know you need the button to do it, but give it a try.

    Try a forced reboot. No data is lost during this procedure. Hold on the sleep and home buttons at the same time for about 10 seconds until the Apple logo appears on the screen.

    If the device still won't hold a charge, you should make an appointment at the Apple Store and ask them to evaluate the device for you.

  • When he puts an end to Firefox 3.6.6 firefox.exe continues to turn, visible in the Manager of tasks (XP) and stimulates the activity of the CPU up to 60% with the danger of overheating. Have not found an appropriate response with the search term "abnormal

    When he puts an end to Firefox 3.6.6 firefox.exe continues to turn, visible in the Manager of tasks (XP) and stimulates the activity of the CPU up to 60% with the danger of overheating. Have not found an appropriate response with the search term "abnormal termination of the program."

    This has happened

    A few times a week

    is after update of Firefox 3.6.4

    I have the same problem with Firefox 3.6.6 except that it also consumes massive amounts of CPU during the race. This version also adds a new process on your system. I am running XP and in the beginning I tried to disable some plug-ins. Always consumed too much memory. I went back to version 3.6 and the new process went, and the CPU consumption is way down. Something is wrong with the latest version of Firefox, I never saw behave this way. Revert to a previous version (Filehippo) and you will see the difference.

  • NB200-h-13 - no response from the DNS server and gateway

    Hello

    I have netbook NB200-h-13 with XP SP3. Its impossible to connect to wireless internet and the error messages are
    HE DIDN'T THERE WAS NO RESPONSE FROM THE DNS SERVER
    HE DIDN'T THERE WAS NO RESPONSE FROM THE DEFAULT GATEWAY

    The connection with the ethernet cable is ok with the adpter reltek that also adpter atheros ar9285 WiFi is activation, working properly and the modem router signal is strong.

    Hi abk55,

    What program you receive this error message?
    Have you tried another browser, for example Firefox or Opera?

    I guess it has something to do with your wireless network card or WLAN parameters if the LAN cable is working properly. So you should try to update the WLAN driver on the Toshiba site.
    Also, try to disable the filtering of MAC addresses and use another encryption.

  • What the handles, threads, and processes means or function, they are performing?

    My son will ask me a question and I could not answer (it is perhaps a good thing because I think he will try to enter and change something he doesn't know) so I thought that I felt I'd better try to find out. He and I are eager to know what the handles, son and process average or functions, they do. They are in the performance tab in Windows Task Manager.


    Thank you

    Hello

    A process handle is an integer value that identifies a Windows process. The Win32 API call a HANDFUL.

    When you start a program, this program runs as a "process". It's something that runs in its own protected area, with its own memory. Other processes cannot touch this memory.

    A few times, the program needs to do several things at once in a way of multitasking, similar to how the multitasking process. For example, a spreadsheet can recalculate the cells you enter data. He * could * start another process, but they can't (easily) share the memory, he would need to if recalculate cells!

    Must be a different sort of process that is not quite as separated. It is a "thread".

    Process: the number of applications that are running at some point in the computer.

    Hope this information helps.

  • I get red letters (in From: and to: on the response mail.) Nowhere else in the email. Why is this happening?

    Outlook express 6 red letters

    I get red letters (in From: and to: on the response mail.) Nowhere else in the email. Why is this happening? Is the email from another source? In some emails from the same sender.

    You have a message rule that does this?  Check tools | Message rules and you can set up rules to messages of color from different people.  But it's in the list of messages and not the message itself.  She is in the messages of itself, then it could be HTML coloring was applied.

    Steve

  • Computer not keeps freezing, no response from the keyboard or mouse, all pages and windows stop loading

    Original title: Vista pc keeps freezing.

    Hello

    My pc keeps freezing, as in no response of the keyboard or mouse, all pages and windows stop loading etc.
    I have to hold the power button to re boot.
    After restarting, it might work correctly for hours or only 2 minutes!
    Seems to be ok in safe mode.
    Any ideas?

    Hi jamesbil,

    Thank you for keeping us posted.

    Method-

    I wish that you uninstall Service Pack 2, and then repeat the repair facility.

    See the article-

    How to uninstall Windows Vista service packs as a troubleshooting step

    http://support.Microsoft.com/kb/948537

    Note: A system restore will undo the changes on the computer. Earlier all applied settings will be lost.

    We know if you need help.

    Thank you.

  • See the requests and responses

    Is there a way or a tool that can help us to see the various requests and responses of a blackberry app, whether http or no matter what protocol?

    If you use the Simulator, you can use any regular packets sniffer.

  • The response of the mouse becomes slow and I get the low battery warning

    Original title: Use the Microsoft Wireless Multimedia Keyboard 1.1 model 1014.  Recently, I had replace the batteries in the mouse at least once a week.  Is there a solution?

    The response of the mouse becomes slow and I get the low battery warning.  Until this started happening batteries have been change less than a month.

    Hello

    1. What is the brand of mouse and the model?

    2 have you ever done any recent software or changes to the hardware to the computer?

    If you use the Microsoft mouse, I suggest you follow these methods:

    Troubleshoot a wireless mouse that does not correctly:
    http://support.Microsoft.com/kb/321122

    Troubleshoot the incidents of the response to the mouse or wireless keyboard:
    http://support.Microsoft.com/kb/838398

    Use the following tips to get more life on the batteries in the keyboard and mouse:

    a. use the mouse on a surface of clear color. With the help of the mouse above a black surface can deplete the battery at a faster pace.

    b. do not use the mouse on a glass surface.

    c. when replacing the batteries, use alkaline batteries. Other types, may not last as long.

    d. when wireless devices are not in use, store them near the computer.

    I hope this helps!

Maybe you are looking for