Unable to get the name of the page in the portlet

I have different XML generated dynamically rendered in the same Java portlet. To change the URLS for each of these XML screens, I created different pages, but all of them contain the same portlet. How can I get the information of the page inside the portlet I know what XML to render?

Hello

You can access the PageBackingContext / PagePresentationContext of objects through the PortletRequest request:

HttpServletRequest hsr = (HttpServletRequest)request.getAttribute("javax.servlet.request");

PageBackingContext pbc = PageBackingContext.getPageBackingContext(hsr); // Action or event phases only
PagePresentationContext ppc = PagePresentationContext.getPagePresentationContext(hsr); // Render or resource phases only

You can also generate URLS with all the desired parameters, by using the javax.portlet.RenderResponse object to create an action, or make the URL:
http://docs.Oracle.com/CD/E15919_01/WLP.1032/e14255/javax/portlet/MimeResponse.html#createRenderURL _

You can set parameters on this URL using the setParameter (name, value):
http://docs.Oracle.com/CD/E15919_01/WLP.1032/e14255/javax/portlet/baseurl.html#setParameter_java_lang_String__java_lang_String _

and then read the values of the parameters of your PortletRequest.getParameter () method:
http://docs.Oracle.com/CD/E15919_01/WLP.1032/e14255/javax/portlet/PortletRequest.html#getParameter_java_lang_String _

Kevin

Published by: kfrender on February 16, 2012 16:39

Tags: Fusion Middleware

Similar Questions

  • Unable to get the windows updates. Get error code 80072EFE. Help!

    Unable to get the windows updates. Get error code 80072EFE.  Help!

    Gary,

    ERROR_INTERNET_CONNECTION_ABORTED 80072EFE

    You may experience temporary errors related to connection when you use windows update or microsoft update to install updates http://support.microsoft.com/kb/836941

    by running the Fixit on this page, you can reset to windows update components.  but, if there is malware present, she will continue to reset the connection to the update servers: how toreset windows update components

    suggest you download and save the Fixit.  then conf is the boot vlean system before you run it:http://support.microsoft.com/kb/971058

    How to troubleshoot a problem by performing a clean boot in Windows Vista/Windows 7http://support.microsoft.com/kb/929135

    Once the Fixit has been downloaded and the system is started in the pure State, check that the native vista firewall is now on if a 3rd party firewall has been used previously.  now run the Fixit and choose the default mode.  restart once it's done and see if the system can be connected to the update servers. If he can't, then rerun the Fixit and choose aggressive mode.  turn it back on when he finished the race and updates.

  • I reinstalled Windows XP service pack 2-64 bit and now I am unable to get the Windows Update

    I reinstalled Windows XP service pack 2-64 bit and now I am unable to get the Windows Update. Updates are more automatic since the installation and now I get the following message if I try to update manually. Help!

    The website has encountered a problem and cannot display the page you are trying to view. The options provided below may help you solve the problem.

    For self-help options:

    To support options:

    SP3 is only for 32-bit versions of Windows XP. OP has the 64-bit version of XP Pro...

  • Unable to get the windows updates, it returns an error (often 0x8007043c and other similar)

    Original title: can't get windows updates

    I was unable to get the updates of windows - via the feature of automatic update, or through the manual method to access microsoft.com.  When I go to the microsoft update Web site, and it starts to scan my PC, it returns an error (often 0x8007043c and similar).  I tried to run Microsoft FixIt.  It tells me that windows up-to-date devices require to be repaired, but when I run the repair (problem-solving), he continues to run for hours and hours and doesn't do a thing.  How can I remove the software from the Windows Update Agent from my PC and reinstall a new version?

    Hi JosephGPhD,

    ·         Did you do changes on the computer before the show?

    Follow the suggestions below for a possible solution:

    Method 1: I suggest you to follow the steps in the Microsoft Knowledge Base article and check.

    You receive an error message "0x800A01AE" or a "0 x 080070570" error message when you try to connect to the Windows Update Web page or to the Microsoft Update Web page in Windows Server 2003 or Windows XP

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

     

    Method 2: If the method above does not help then you can see the article mentioned below and check.

     

    You cannot install some programs or updates

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

    Let us know if that helps.

  • Unable to get the upgrade to Windows 7 purchased to start

    I bought an upgrade to a provider. I have acquired a product key. I invoke Windows Anytime Upgrade according to the directions and the only option is to upgrade to Vista. Then I went to the Microsoft page to buy the product. I have Vista 64-bit with all updates installed on my Toshibe Satellite computer. I ran the Upgrade Advisor and everything was satisfactory.

    Unable to get the upgrade to Windows 7 purchased to start

    I call Windows Anytime Upgrade according to the guidelines

    I have Vista 64-bit

    Windows 7 anytime upgrade: you have Vista or XP currently installed?

    If the product you have Windows 7 'Anytime Upgrade' does not allow to move from XP/Vista to Windows 7. You can buy the product at retail of Windows 7 Upgrade not the ' Anytime Upgrade '.

    Windows 7 'Anytime Upgrade' is for moving from one version of Windows 7 to a higher version, such as Windows 7 Home Premium to Windows 7 Professional.

    You can buy Windows 7 here:

    http://www.microsoftstore.com/store/msstore/cat/CategoryID.44066700

  • I'm unable to get the registration code for my Blu - Ray player

    I'm unable to get the registration code for my Blu - Ray player. I followed the instructions and all I get is the statement: device is registered. I can't register for the most part without a valid code. Please let me know how I can get the correct code. Thank you

    If you were able to enter the registration code the first time you tried to save the player before then you don't need to do it again. Just bought this drive? If so, was it a screen or mixed open-box model?

  • Unable to get the Bluetooth Toshiba BT Stac Headset profile in collaboration with mic

    Hello.

    I have problems with my Motorola HT 820 Stereo headset, the Toshiba Bluetooth Stack installed on Vista Home Premium 32 bit laptop.

    I am unable to get the microphone to work at all, so can't use it for Skype / VOIP calls etc. Features such as the A2DP and AVRCP work very well, and I can listen to music via the media player without problems.

    I read in a FAQ on this site, to make sure that I use the installation option custom rather than the quick installation when adding the device, but it seems to make no difference, am I missing a step here?

    In the properties of the device Windows registry, I see the option listed for Bluetooth Mic, but even assigning as device by default does not work.

    I know to plug my headphones on my desktop PC that uses the bluetooth stack Widdcom, can I use the headset/microphone function, but this battery seems to work differently, as I can select option headphones in the bluetooth settings, but I don't see such an interior option Toshiba stack - and I think that's the problem.

    I've updated to the last stack of Toshiba on this website, but this did not help at all.

    Here, any help would be appreciated.

    Concerning

    Matt

    Post edited by: Toxyturvy - wrong spelling

    Hello Matt

    Unfortunately I can't help you with that, but if I remember right here on the BT section that someone has already asked something similar. Please take a little time and see the BT section on this forum.

    You can also visit the FAQ section on http://aps2.toshiba-tro.de/bluetooth/
    Might find something there.

    Good luck!

  • Unable to get the automatic updates of Windows.

    Suddenly I'm unable to get the automatic updates of Windows.  When I use Windows fix - it, it is unable to do so, stating that automatic update components need repair.  Is there a way to repair the components?

    Hi Robert,.

    Reset windows update components.

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

    Use the automated fix solution, then check windows update to see if it works.

    Additional information: If you are not fully patched for Windows XP SP3, download and install Windows XP SP3 from the link below.

    Windows XP SP3.

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=24

    Ignore the warning text on the professionals and the network installation.

  • Unable to get the Windows updates. Activation of Windows icon "this copy of Windows is not activated." Cannot be enabled. Please notify.

    I was using Windows XP Professional for over 3 years with no problems. I get Windows updates automatically recently, I am unable to get the Windows updates. Activation of Windows icon is now displayed "this copy of Windows is not activated. What is going on?  Tried to reactivate without success.

    I tried with the key of product without success. Please notify. Thank you, Mark to * address email is removed from the privacy *

    I was using Windows XP Professional for over 3 years with no problems. I get Windows updates automatically recently, I am unable to get the Windows updates. Activation of Windows icon is now displayed "this copy of Windows is not activated. What is going on?  Tried to reactivate without success.

    I tried with the key of product without success. Please notify. Thank you, Mark at * address email is removed from the privacy *.

    Click HERE. Follow the instructions. I recommend to use Guided Help.

  • Fix it fails Center with the error: unable to get the catalog of the troubleshooter. Error MatsGetSapCatalog failed

    Original title: Fix it center fails.

    Difficulty Center fails with the error:
    Unable to get the catalog of the troubleshooter. Error MatsGetSapCatalog failed
    I can't find the url of re - download.
    It doesn't seem to be at the Download Center.
    Thank you
    Frank C

    Vista Ultimate 64 bit sp2

    CF. http://answers.microsoft.com/en-us/protect/forum/mse-protect_scanning/scanning-engine-has-stopped-responding/e0f84bec-2555-4279-bfb7-aff691b8ba8d

  • Error: Unable to get the 'platform' of undefined reference property or null

    I am updating a Web site on a computer that had Dreamweaver Cs4 installed as a transfer file from another computer. I get an error (unable to get the 'platform' of undefined reference property or null). The current computer has Windows7. How to upgrade to the operation of the platform within the program? What is the problem?

    What are you trying to do exactly?

    Files created in DW are not specific platform (they are just .html, .css, .js, etc.), but the program itself is when it's one of the older versions of perpetual license / disc.

    Adobe does not swap the platform for something else that current versions, however the current version (PCOC 2014) is not really specific platform more since you can have it installed on two machines, regardless of the platform. So, basically, ranking/cross-platform interchange is not permitted more.

    Product order | Platform, language Exchange

  • Just downloaded Firefox on new PC; Unable to get the Firefox start page. I just get the Firefox "subject: Home" page. Help me to access the start page.

    I used Firefox earlier and you want to use again on my new Windows 7 pc. ' ' I downloaded Firefox, access the icon on my desktop and when I click it, I get the home page "about". How can I get the start page so I can load my favorites, etc.

    Subject: House is the new Firefox Start Page, from Firefox 4.0 in March. You can set any page you want as your home page.

    See How to set the home page

  • Unable to get the move tool to place a photo at the top of the page another

    Hello people,

    I am aware that I'm really a newbie to Photoshop (but methodically working my way through Kelby Photoshop 6 for photographers tackle this CS), and I also know that I am a fool at the same time. However, it is time to put my hand up and admit that even the simplest of tasks is beyond me.

    Use the CC version, I have two pictures open in a document. Actually I'm following one of the lessons of Kelbys of Chapter 9. The two images have the same group of three folk poses, same etc, the only difference is that one picture, the guy is looking for the camera in the other, he seeks right to it. The lesson is to place the other photo on top and using a brush and a layer mask to reveal the image where he looks at the camera.

    Seriously, I have tried for 3 days to use the move tool (V) click and drag one photo to the other, but it won't happen just for me. I also tried with my own images, still no difference. This work will be if I use Select-Select All, then copy and paste a picture on top of another, so all was not lost and I can finish the lesson, but my inability to get the move tool to drag and drop gives me major pain.

    I'll be very grateful if anyone can put me out of my misery - like I said I can be a good fool sometimes. A virtual beer to the person who can help you!

    Best wishes

    David

    OK, I assume here that you have opened both images that everyone is in its own document. By clicking on the tabs on the top screen between the two documents and the two images switches have only a single locked background layer.

    You are right in saying: select all, copy, and then paste. It's a way.

    However with the active object (lowercase v on the keyboard) tool, you can place the cursor on the image, hold down the mouse button and drag this image into another tab. While the cursor is on that tab (you're still now on the button of the mouse) documents will pass. At this point, you can now drag toward the center of the document and finally let go of the mouse button.

    If this isn't the case, please post a screenshot of your screen so that we can see how you have photoshop set up. As can the tabs are not visible for example.

  • Unable to get the widget to open dreamweaver cs6 mac

    Mac S 10.6.8 (snow leopard)

    I am unable to load widgets since dreamweaver CS6. Able to sign into Adobe ID, but will not charge.

    Message: "could not feed widget. Make sure that you are connected to the internet. unknown error. »

    Firefox, safari, and google chrome; all erased and all configured to accept cookies.

    checked and repaired disk permissions.

    have you tried signing in before trying to connect through dreamweaver.

    I need to download something?

    No, browser widgets is obsolete and the site who populated app in the browser is no more.

    You can try to get the widgets directly from third-party developers, or to the search page modules Adobe here: https://creative.adobe.com/addons

  • Unable to get the restore to work - Satellite 1410 disc

    I have a Toshiba Satellite 1410. During a restore of system with restore disks, I forgot to plug it. During the windows set up (this screen where you put in your country and all that) the battery has flat that I plug!

    I tried to throw the disc again, as it came with a box when I rebooted that said "the system is not fully restored. Please re-run Setup '. So I turned off and restart, then the message goes up after that windows image appears during startup.

    I bought this laptop second hand so I have all the manuals or books with him, I do not know the keys on which support to MSDOs not that I know what to do from here, I do not know which key press during boot up to get the CD to work, I have pressed the keys left right and Center and found exhaust takes me to a page of the system but anything to get the CD to run again that I thought would get just the restoration will once again.

    So now it starts up saying ' not completely restored system, please run the installation again.

    Someone know or seen this before, and someone can tell me if there is a simple answer, which key support during the start up or how to fix this?

    Thanks in advance.

    Hello

    As Daniel said in the first assignment by pressing the C button the laptop should boot from the disc. Please press that several times the C immediately after the laptop from.
    Then you can be sure that the option has been enabled.

    The other possibility is to enter the BIOS and then to change the initialization of the order on CD/DVD first

Maybe you are looking for

  • Need info on max size of HARD drive available for Satellite Pro M30-813

    Hello The question is mainly to be sent to Toshiba authorized support personnel. The limitation of the maximum size of a HARD drive internal that I could use with my Satellite Pro M30 - 813, what exactly? Recently, I bought and installed seagate SATA

  • Can I sell my copy of Windows Vista retail?

    Hi, I have a full commercial copy of Windows Vista.  Having just upgraded to Windows 7 I would like to sell my copy of Vista. My installation of Vista was activated several times (I tend to reinstall my OS frequently enough).  It is no longer install

  • How to program the computer to display everything from pc to tv?

    I try to put up my pc with tv and only the screen saver appear in tv how can I put my pc in the usual way to see all of the PC to the tv? I would like to know the step to perform once more.

  • Content of the e-mail to Smartphones blackBerry displays as lines

    My emails have suddenly started to display in the form of lines instead of text.  I can see that comes from the email, but the message part is just one or more line segments.  Someone knows how to fix this?

  • How to enter defaultvalue empty?

    For some settings of muse adobe such as text boxes, I would like a vacuum/no default value. This could be because the text box is disabled by default. Even when the settings are disabled, they always come by default in the final output in < pageItemH