How to modified a URL showed in a Render phase from the Action phase.

Hi all,
I have a problem with a URL showed when I pass from action phase to render phase. Next I explain that problem.
I'm using a Weblogic Portal 10.3., Java Portlet and Spring. My portlet contains two controllers (A and B). The controller A receive an action and depending of a parameter, shows a viewA (which is managed by A controller) or viewB (managed by B controller). To do that I use a ParameterHandlerMapping of SpringFramework, which if an action parameter is A, the portlet use Controller A and use controller B if an action parameter is B.
Next I show you a Controller A method which receive an action:
@ActionMapping(params={"action=A","execAction=redirection","pg"})
public void accionIrFichaDispositivo(ActionRequest req, ActionResponse resp,
@ModelAttribute("listadoVozForm") ListadoVozForm form,
@RequestParam("pg") String paramPg) throws PortletException, IOException{
if(pg.equals("Hola")){
}else{
resp.setRenderParameter("action", "B");
In a Render Phase, which is managed by Controller B, the URL contains the value of action parameter: action=A.
How can I modified that action parameter to show action=B?..
Regards..

Hello,
What you are seeing is the expected behavior; the URL in the browser will be the action URL (with action=A) even though the portlet is setting a render parameter action=B in the action phase. There's nothing "wrong" with this; the "B" controller will get run because the render parameter "action=B" exists, even though it isn't what is displayed in the browser. In general, it is best to not be concerned about what parameters are in the browser's URL, as the portal framework is managing all the parameters for you on the server-side.
If you really want the browser's displayed URL to not be the action URL, there is a feature built in to WLP 10.3.2 and later versions which will cause the browser to do a redirect to the render URL just after the action phase runs. This will make the browser display the "action=B" in the URL, but the redirect will also double the number of requests the server must handle, so consider if you really need the browser's URL to display the current render URL. To turn this feature on, modify the entry for your portlet in the WEB-INF/portlet.xml file to add a container runtime option "com.oracle.portlet.redirectAfterAction", like this:
    <portlet>
        <portlet-name>sampleRedirectAfterAction</portlet-name>
        <portlet-class>
            portlets.jsr286.SampleRedirectAfterAction
        </portlet-class>
        <supports>
            <mime-type>text/html</mime-type>
            <portlet-mode>view</portlet-mode>
        </supports>
        <portlet-info>
            <title>Redirect After Action Sample</title>
        </portlet-info>
        <container-runtime-option>
            <name>com.oracle.portlet.redirectAfterAction</name>
            <value>true</value>
        </container-runtime-option>
        <container-runtime-option>
            <name>com.oracle.portlet.suppressWsrpOptimisticRender</name>
            <value>true</value>
        </container-runtime-option>
    </portlet>The "suppressWsrpOptimisticRender" runtime option is recommended as a performance enhancement for any portlets being run over WSRP which also have the "redirectAfterAction" option, however, if you are running your portlets over WSRP you won't be seeing the render parameters in the browser's URL in any recognizable form anyway.
Kevin

Similar Messages

  • How do I stop my MacBook removing all my icons from the desktop ?

    How do I stop my MacBook removing all my icons from the desktop ?

    Hi Matt
    After I create say a word document, file it on my desktop and then shut down my machine. The next time I open up the MacBook the file icon has been removed from the desktop. I can still retrieve the file in a folder labeled with the month I created it. But why has the OS removed it from the desktop and how can I stop it happening?
    It happens to alias icons as well!
    Regards

  • How do I scan multiple documents to a single pdf from the ADF on my MX922?

    How do I scan multiple documents to a single pdf from the ADF on my MX922?
    Solved!
    Go to Solution.

    Hi Riceburner1,
    Since you have had difficulty scanning using My Image Garden, you can scan using the IJ Scan Utility program that also comes with the printer.  To do this, please follow these steps:
    1. Place the documents in the ADF or on the platen glass of the printer.
    2. Start the IJ Scan Utility.
        For Windows 8.1:
        1. On your keyboard, press the Windows key.
        2. Start typing IJ SCAN UTILITY. The search window opens as you type. Once the IJ SCAN UTILITY is displayed, please select and open it, then continue with Step 3 below.
        For Windows XP:
        1. Go to your START MENU, then select ALL PROGRAMS, then CANON UTILITIES, then the IJ SCAN UTILITY program.
        2. In the Canon IJ Scan Utility window that opens, click SETTINGS.... in the bottom right of the window. The Settings dialog box appears. Please continue with Step 3 below.
    3. In the Canon IJ Scan Utility window that opens, click SETTINGS.... in the bottom right of the window. The Settings dialog box appears.
    4. Click the DOCUMENT SCAN option on the left pane of the window. In the Select Source field of the Scan Options section, select DOCUMENT (ADF/PLATEN) to scan items placed directly on the platen glass, DOCUMENT (ADF SIMPLEX) to perform single-sided scanning from the ADF, or DOCUMENT (ADF DUPLEX) to perform double-sided scanning using the ADF. You can then set the item size, resolution, etc. in the Scan Options section as desired.
    5. In the SAVE SETTINGS section of the window, you will select the save format and location of the document you are about to scan.
         a.) In the FILE NAME field, specify the name you would like to give the file. By default the filename will begin with IMG; you can remove IMG and change it to whatever you would like to name the file.  Please note that the filename that you give the document here will be the default filename for all items scanned until you change the file name.  If you leave the file name the same in the field, the scanned item will have a sequential number appended to the end of whatever name you give it.
         b.) In the DATA FORMAT field, use the drop-down arrow to select the desired option. If you are scanning a multipage document, select the PDF (Multiple Pages) option.
         c.) In the SAVE IN field, please navigate to the area where you would like the file to be saved once it is scanned in. By default, the file will be saved in the MY DOCUMENTS folder.
    6.  In the APPLICATION SETTINGS section of the window, please select the DO NOT START ANY APPLICATION option.  
    7. Once all settings have been selected, click the OK button at the bottom of the SETTINGS (DOCUMENT SCAN) window. The IJ Scan Utility main screen appears.
    8. Click the DOCUMENT button. Scanning starts. Click the CANCEL button to cancel scanning if needed.   Once the scan is completed, scanned images are saved in the previously selected folder location specified in the SETTINGS... window.
    Hope this helps!
    This didn't answer your question or issue? Please call or email us using one of the methods on the Contact Us page for further assistance.
    Did this answer your question? Please click the Accept as Solution button so that others may find the answer as well.

  • How do I add multiple songs to an existing playlist from the (no longer called) Library? Highlighting multiple songs and clicking the "Add to" button will only add the with the little arrow, not all the highlighted ones!

    How do I add multiple songs to an existing playlist from the (no longer called) Library? Highlighting multiple songs and clicking the "Add to" button will only add the one with the little arrow, not all the highlighted ones! I am using the "new" iTunes.

    For the moment there isn't a way for us end-users to control what is "matched" or "uploaded." That is purely a result of Apple's server-side algorithms.
    To re-add multiple songs at once simply highlight all the songs you want to re-add, then right-click (or Control+click) the list and choose "add to iCloud."

  • How do I create a new account and get stuff from the old account to the new account

    How do I create a new account and get stuff from the old account to the new account

    There are instructions on this page for creating a new account : Set up an Apple ID in iTunes
    Or if you don't want to give credit card details : Create an iTunes Store, App Store, or iBooks Store account without a credit card or other payment method
    But you won't be able to transfer purchases from your old account to it, all content that you download from the store will remain tied to the account that downloaded it.

  • I have an iPod, iPhone and iPad all set up to a Dell laptop. I recently got a Macbook Pro, how do I transfer all my control for my devices from the Dell to the MacBook?

    I have an iPod, iPhone and iPad all set up to a Dell laptop. I recently got a Macbook Pro, how do I transfer all my control for my devices from the Dell to the MacBook?  Can anyone help?

    http://www.apple.com/support/switch101/
    http://www.macworld.com/article/1153952/superguide_switchingtoamac.html

  • How to I add Camera Raw presets I've downloaded from the internet?

    How to I add Camera Raw presets I've downloaded from the internet? I have a mac and I use Creative Cloud.

    Presets are stored under Library>Application Support>Adobe>Camera Raw>Settings. Install them there. Once done, load the settings:
    Benjamin

  • I have lost my "Basic" panel in the Develop module and can't figure out how to get it back. My right panel goes from the Histogram straight to the Tone Curve panel.  My Basic panel should be below the Histogram.  Any ideas how to get it back.  I have even

    I have lost my "Basic" panel in the Develop module and can't figure out how to get it back. My right panel goes from the Histogram straight to the Tone Curve panel.  My Basic panel should be below the Histogram.  Any ideas how to get it back.  I have even uninstalled my lightroom and reinstalled it with same issue.  Help!!!

    Right click on or near one of the other headers and a pop-up will appear and you will be able to select the Basic Panel for viewing.

  • How can you tell what type of Iphone I have from the model number or serial number from the settings menu

    how can you tell what type of Iphone I have from the model number or serial number from the settings menu?

    Type Serial Number from Settings App here https://selfsolve.apple.com/agreementWarrantyDynamic.do it will tell you the type of iPhone.

  • HT4864 how do I turn off auto reply "I'm away from the office........."

    How do I turn off Auto reply "I'm away from the office..................         '

    Go to the mail page at http://icloud.com , click the cogwheel icon at top right, choose 'Preferences' and uncheck 'Forwarding'.

  • I tried to download from the app store.  It will not download.  It shows up under "other purchases" but the action button is blank.  I have tried to re-download it and it won't let me do that either.  Any suggestions?

    Mavericks will not download from the app store.  It shows up under "other purchases" but the action button is grey and will not allow me to install, uninstall or redownload.  I meet the system requirements but nothing is working.  Any help would be appreciated!

    There is nothing wrong with my iTunes, is more of the App store that I am concerned about. And I've tried the "Authorise this computer" yes it does download when using iTunes, but no luck with App Store. And, yes I am logged onto iTunes when doing purchases.
    I find this really fustrating because the App store works fine on my ipod but once it comes to my macbook, it does not download. A few seconds later after I click on an app to download, the pop up message notifies me that the purchase cannot be downloaded.
    Anyways, thanks for your suggestion. 

  • How do I recover a background after accidentally deleting it from the background catalog

    How do I recover a background after accidentally deleting it from the background catalog

      Close Photoshop Elements Editor and Organizer.
    Navigate to:     
    //Library/Application Support/Adobe/Photoshop Elements/11.0/Locale/en_US/
    Delete the file Mediadatabase.db3.
    Re-launch Photoshop Elements Editor. A progress bar appears as the media database is re-created. Wait for this process to complete. It make take some time and the screen may periodically go blank; so go away and get yourself a coffee and be patient.
      N.B. If you have any of your own custom effects, you may need to re-create/re-install them.
     

  • HP-photosmart 6280 all-in-one with osx 10.9 now does not show options for printing photos from the photo tray.

    Using osx mavericks on macbook pro.  My printer for HP-photosmart 6280 all-in-one now does not show options for printing photos from the photo tray.

    What router? Have you restarted the router?
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • How can i arrange my Top Rated Playlist to be from the new song till the old i added... (also to be in the iphone) ??

    how can i arrange my Top Rated Playlist to be from the new song till the old i added... (also to be in the iphone) ??
    i want the every sone the i mark as FULL STARTs (full rate) will be shown in the top of the list.. and each time i add a song that way it will be the first..
    i need it to be *** same in my iphone..  hope to find the help here
    thanks !

    there is no way to make a list that every song that i mark full star will be in the list as i added them ?
    i mean i want to add all song i like with FULL stars but i want them to be arrenged as i added them to the list..
    i think i had it once and it was working perfectly with the iphone but now for some reason nothing seems to work..

  • How dom I recover system preferences which I accidentally trashed from the dock

    How do I recover system preferences which I accidentally trashed from the dock

    Welcome to Apple Support Communities
    Although you removed System Preferences from the Dock, you still have it, because it is stored in the Applications folder.
    To get the System Preferences icon back in the Dock, open a Finder window and select Applications in the Finder sidebar. Then, look for the System Preferences icon, and if you find it, drag it to the Dock

Maybe you are looking for