Redirecting to a specific Page; portlets on another Page are displayed

Good day,
I want to direct User who clicks on a URL like
"http://somedomain.com/portal/portal.portal?_destPage=workspacePage" to
the Page labelled 'workspacePage'. The User will click that link from an
email or a web page that runs on a remote server, not the one hosting the
Weblogic portal.
I declare this page backing for my Page. The portal has 1 desktop, 2 pages
(Page1 and Page2). Page1 has portlet1 and Page2 has portlet21 and
portlet22.
When the User clicks on http://somedomain.com/portal/portal.portal, the
portal shows Page1. when the User clicks on
http://somedomain.com/portal/portal.portal?_destPage=workspacePage, the
portal shows both portlet1, portlet21 and portlet22.
When I tried stepping through the code, the preRender block is executed
twice.
Can somebody on the list points out the error in this snippet? Thanks.
public class TestPageBacking extends AbstractJspBacking
     public boolean preRender(HttpServletRequest request, HttpServletResponse
response) {
          BookBackingContext bbc =
BookBackingContext.getBookBackingContext(request);
          PageBackingContext pbc =
PageBackingContext.getPageBackingContext(request);
          PageBackingContext pbc_toShow =
               bbc.getPageBackingContextByDefinitionLabel("workspacePage");          
          String destPage = request.getParameter("destPage");
          if(_destPage != null && _destPage.length() > 0) {
               pbc.setActive(false);
               pbc_toShow.setupPageChangeEvent("workspacePage");
               pbc_toShow.setActive(true);
               return true;
          return true;
}

Problem solved; just read the control tree documentations more closely and
ran some simple simulations.
On Thu, 19 Jan 2006 15:53:04 +0800, Schneider <<> wrote:
Good day,
I want to direct User who clicks on a URL like
"http://somedomain.com/portal/portal.portal?_destPage=workspacePage" to
the Page labelled 'workspacePage'. The User will click that link from an
email or a web page that runs on a remote server, not the one hosting the
Weblogic portal.
I declare this page backing for my Page. The portal has 1 desktop, 2
pages
(Page1 and Page2). Page1 has portlet1 and Page2 has portlet21 and
portlet22.
When the User clicks on http://somedomain.com/portal/portal.portal, the
portal shows Page1. when the User clicks on
http://somedomain.com/portal/portal.portal?_destPage=workspacePage, the
portal shows both portlet1, portlet21 and portlet22.
When I tried stepping through the code, the preRender block is executed
twice.
Can somebody on the list points out the error in this snippet? Thanks.
public class TestPageBacking extends AbstractJspBacking
     public boolean preRender(HttpServletRequest request, HttpServletResponse
response) {
          BookBackingContext bbc =
BookBackingContext.getBookBackingContext(request);
          PageBackingContext pbc =
PageBackingContext.getPageBackingContext(request);
          PageBackingContext pbc_toShow =
               bbc.getPageBackingContextByDefinitionLabel("workspacePage");          
          String destPage = request.getParameter("destPage");
          if(_destPage != null && _destPage.length() > 0) {
               pbc.setActive(false);
               pbc_toShow.setupPageChangeEvent("workspacePage");
               pbc_toShow.setActive(true);
               return true;
          return true;
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

Similar Messages

  • Redirect page to x page= none of the url title of x page are displayed

    Just wondering if anyone knows how to help me. I host my
    pages .com, but have only registered the domain .co.uk elsewhere
    and redirect it to the .com domain. When i now access the .co.uk
    page, it redirects, but none of the url title of the .com page are
    displayed. Do you know how to correct this?
    Thanks

    .oO(lukey233)
    >Just wondering if anyone knows how to help me. I host my
    pages .com, but have
    >only registered the domain .co.uk elsewhere and redirect
    it to the .com domain.
    >When i now access the .co.uk page, it redirects, but none
    of the url title of
    >the .com page are displayed.
    Then it's not a redirect, but probably just a frame.
    >Do you know how to correct this?
    Can you post a link?
    Micha

  • Keynote, Numbers and Pages are displayed as Top Free, but charges fee.

    Hi All,
    In the first page of Appstore Keynote, Numbers and Pages are displayed as Top Free. But when I try to get them from AppStore it charges fee. How can I get them free?
    Thanks in advance.

    Asked and answered at least a dozen times in this forum in the last week. Please always do a search before posting.
    The iWork apps are currently free to some folks who qualify.
    If someone bought a new Mac since ! OCT 2013, iWork is free.
    If someone owned the previous version of iWork and upgraded to OS X Mavericks 10.9, the newest version of iWorks for Mavericks is free.
    Otherwise, these are usually paid apps.

  • I just updated to 10.8.4 and my mail program is showing a series of boxes with AAAAs inside them instead of the email addresses. Also when on Safari web pages are displaying the same AAAAAs instead of type. Firefox displays fine. Can someone help me?

    I just updated to 10.8.4 and my mail program is showing a series of boxes with AAAAs inside them instead of the email addresses. Also when on Safari web pages are displaying the same AAAAAs instead of type. Firefox displays fine. Can someone help me?

    Restart your Mac and immediately hold down the Shift key when you hear the startup chime to boot into Safe Mode. Keep holding the Shift key until you see a progress bar towards the bottom of the screen. You can let go of the Shift key at that point.
    OS X asks you to log in (you will get this screen on a Safe Mode boot even if your Mac is set to automatically log in). Let the Mac finish booting to the desktop and then restart normally. This will clear Font Book's database and the cache files of the user account you logged into in Safe Mode.
    Next, close all running applications. From an administrator account, open the Terminal app and enter the following command. You can also copy/paste it from here into the Terminal window:
    sudo atsutil databases -remove
    Terminal will then ask for your admin password. As you type, it will not show anything, so be sure to enter it correctly.
    This removes all font cache files. Both for the system and the current user font cache files. After running the command, close Terminal and immediately restart your Mac.

  • Here's your prototypical Dumb Question: Web Pages are displayed as centered on 4.0- how do I have the page fill the window?

    Here's your prototypical Dumb Question: Web Pages are displayed as centered on 4.0- how do I have the page fill the window?

    Do the following:
    1 - launch iPhoto with the Command+Option keys held down to open the First Aid window.
    2 - Run Option #4, Rebuild Database.

  • Some large pages are displayed without scroll bars

    I've had a number of cases recently when large pages are displayed without scroll bars. Safari handles these pages properly.
    == URL of affected sites ==
    http:////www.sears.com/shc/s/c_10153_12605_Tools_Tool Sets?adCell=WF

    Hello Charles.
    You may be having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not coming from one of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] and select ''Disable all add-ons''. If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme. You can troubleshoot plugins the same way.
    If you want support for one of your add-ons, you'll need to contact its author.

  • How to deny an ip to visit webapp and redirect to a specific page in Tomcat

    Hello,
    I need to use tomcat to deny some ips:
    <Context path="" docBase="${catalina.home}/webapps/ROOT">
         <Valve className="org.apache.catalina.valves.RemoteAddrValve" deny="202.106.186.*,202.108.36.*,202.108.44.*,202.108.45.*,202.108.5.*,202.108.9.*,220.181.12.*,220.181.13.*,220.181.14.*,220.181.15.*,220.181.28.*,220.181.31.*,222.185.245.*,202.165.100.*,220.181.19.*,159.226.50.*,202.108.11.*,202.108.22.*,202.108.23.*,202.108.249.*,202.108.250.*,61.135.145.*,61.135.146.*,64.124.85.*,61.151.243.*,202.165.96.*,216.239.33.*,216.239.35.*,216.239.37.*,216.239.39.*,216.239.51.*,216.239.53.*,216.239.55.*,216.239.57.*,216.239.59.*,64.233.161.*,64.233.189.*,66.102.11.*,66.102.7.*,66.102.9.*,66.249.64.*,66.249.65.*,66.249.66.*,66.249.71.*,66.249.72.*,72.14.207.* ,61.135.152.*,65.54.188.*,65.54.225.*,65.54.228.*,65.54.229.*,207.46.98.*,207.68.157.*,194.224.199.*,220.181.8.*,221.239.209.*,217.212.224.*,219.133.40.*,202.104.129.*,61.135.157.*,219.142.118.*,219.142.78.*,61.135.132.*,220.181.26.*,220.181.19.*,61.135.158.*,66.196.90.*,66.196.91.*,68.142.249.*,68.142.250.*,68.142.251.*,202.165.102.*,202.160.178.*,202.160.179.*,202.160.180.*,202.160.181.*,202.160.183.*,72.30.101.*,72.30.102.*,72.30.103.*,72.30.104.*,72.30.107.*,72.30.110.*,72.30.111.*,72.30.128.*,72.30.129.*,72.30.131.*,72.30.133.*,72.30.134.*,72.30.135.*,72.30.216.*,72.30.226.*,72.30.252.*,72.30.97.*,72.30.98.*,72.30.99.*,74.6.74.*,202.108.4.*,202.108.4.*,202.108.33.*,202.96.51.*,219.142.53.*"/>
    </Context>
    this ip is some spiders, but my manager need me to redirect those spiders to a specific page like index.jsp (which is not at the same tomcat server).
    It is very appreciated if you could give some advise,Thanks a lot!

    Implement a Filter which compares HttpServletRequest#getRemoteAddr() with the blacklist and map this filter on /*.
    You can issue a redirect using HttpServletResponse#sendRedirect().

  • When viewing a pdf document in Firefox, the pages are displayed in reverse order.

    If I save file onto PC and open that file, pages are in normal order

    Hi,
    According to your post, my understanding is that the document property was not updated when you published a minor version to a major version.
    It is by design, the Quick Parts don't get synchronized with
    SharePoint major version when it used in Office Web Apps.
    As a workaround, you can
    show the Version column within the Word document using the other methods:
    Use SharePoint Designer to copy the Version to a separate column
    Using the Labels feature of SharePoint
    Event handler to copy the version to a separate field
    More information:
    http://spandps.com/2010/10/17/showing-the-version-column-in-office-as-a-quick-part-office-2007-2010-document-property-office-2003/
    http://christoffervonsabsay.wordpress.com/2010/12/19/sharepoint-version-in-word-document/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Not all my pages are displaying in Preview or Preview on Web

    I have 6 pages with a slideshow on each. Each slideshow has 4-12 images. Each image is around 150-200KB. I also had additional pages with images of a similar size. When I try to preview in web, the pages are not all loading.

    There is no error displayed, simply long spinning time as it switches to that page.
    Laurie
    Laurie Wachter
    707-326-1393
    [email protected]
    www.linkedin.com/in/lauriewachter
    Twitter: @L_Wachter

  • Why do I have to refresh 2 or 3 times before pages are displayed correctly?

    I just recently reformatted my laptop and installed a fresh copy of Windows 7 home premium 64-bit. Went through all the motions, blah blah blah.... Anyway, noow when i use firefox, the majority of the time my home pa't ge doesn't load certain elements, sometimes it says pages are unavailable (same screen as when your connection goes out), and then usually loads them correctly after refreshing 2 or 3 times. I have no idea what could be causing this. I don't think it's my ISP. Anyone have any ideas?

    A possible cause is security software (firewall) that blocks or restricts Firefox or the plugin-container process without informing you, possibly after detecting changes (update) to the Firefox program.
    Remove all rules for Firefox from the permissions list in the firewall and let your firewall ask again for permission to get full unrestricted access to internet for Firefox and the plugin-container process and the updater process.
    See:
    * https://support.mozilla.com/kb/Server+not+found
    * https://support.mozilla.com/kb/Firewalls
    *http://kb.mozillazine.org/Error_loading_websites

  • Firefox opens/loads but no web pages are displayed

    When Firefox starts, the menu bar (I think it is called) at the top of the screen appears normally. Under the "View" options everything is "grayed out" rendering all options inaccessable. Through the "bookmarks" tab I can navigate to pages and I see that I am accessing the pages through the "Windows" tab, however no pages pop up on my screen (I only see my desktop background).
    This problem occured after I broke down my computer set up, (using an external monitor with laptop) re-connected the monitor, and re-started the computer. I can use Safari normally however.
    Thank you for your help!

    first thing to try is reset zoom levels to normal - press ctrl + 0 ('zero')
    also have a look at [[Websites look wrong]]

  • Web pages are displayed with oversize fonts and text is overlaying why

    This is what I Get
    If i could insert an image here to show you what my screen looks like. It would be better. If I coppy what I get in Firefox here , it displays correctly. I am using G Chrome to write you. Text is overlapping in fonts the size of one third of the screen.

    first thing to try is reset zoom levels to normal - press ctrl + 0 ('zero')
    also have a look at [[Websites look wrong]]

  • Are there differences between Solaris 8 and Solaris 2.6 in the way web pages are displayed for Chinese and Korean text using UTF-8 settings?

    A user is running a web application on Solaris Release 2.6 with UTF-8. After the server was updated to Solaris 8, the application is experiencing problems with webpages containing Korean and Chinese text. The encoding is UTF-8. Has anyone experienced this problem? I checked the packages installed on Solaris 8 and they are consistent with what was installed on Solaris 2.6. Could this possibly be a patch-level problem? Thank you.

    Hi,
    It could be a problem with the necessary patche updation. refer the following FTP site for the Solaris pathces.
    connect through the FTP cleint to sunsolve.sun.com
    /pub/patches directory contains a lot of patches for solaris.
    Find and install the corresponding patch require to solve your problem.

  • Always redirected to US adobe page when trying to download dreamweaver.

    I'm trying to download dreamweaver month to month plan via the Australian website. I always ger redirected to the US page that displays the plans. When it asks me to provide an address, it says United States and not Australia.
    I have tried looking everywhere for the Australian page but no luck.
    It is quite annoying.
    What can I do?
    Thanks

    Hi Jazza96,
    You can change the region from following page and check the option to remember the location.
    Adobe - Choose your region
    Hope this helps.
    Thanks and Regards,
    Sumit Singh

  • Web pages are not displaying properly

    pages are displaying text only, no graphics

    If images are missing then check that you aren't blocking images from some domains.
    *Press the F10 key or tap the Alt key to bring up the hidden "Menu Bar" temporarily.
    *Check the permissions for the domain in the currently selected tab in "Tools > Page Info > Permissions"
    *Check "Tools > Page Info > Media" for blocked images
    *Select the first image link and use the cursor Down key to scroll through the list.
    *If an image in the list is grayed and "<i>Block Images from...</i>" has a check-mark then remove this check-mark to unblock images from this domain.
    Make sure that you do not block (third-party) images, the permissions.default.image pref on the <b>about:config</b> page should be 1.
    Make sure that you haven't enabled a High Contrast theme in the Windows/Mac Accessibility settings.
    Make sure that you allow pages to choose their own colors.
    *Tools > Options > Content : Fonts & Colors > Colors : [X] "Allow pages to choose their own colors, instead of my selections above"
    Note that these settings affect background images.
    See also:
    *http://kb.mozillazine.org/Website_colors_are_wrong
    There are extensions like Adblock Plus (Firefox/Tools > Add-ons > Extensions) and security software (firewall, anti-virus) that can block images and other content.
    See also:
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    *http://kb.mozillazine.org/Images_or_animations_do_not_load
    *http://kb.mozillazine.org/Websites_look_wrong

Maybe you are looking for

  • Is There a Way to Force a SYNC/BACKUP of the IPHONE

    Hi All. Thanks again for the help on the logo stuck issue. Is there a way to force a sync/backup of the phone so if another restore is necessary the backup is recent and can recover the phone? Thanks all. Bob Wethersfield, Ct.

  • Extremely slow file server performance

    I have a Time Capsule (1TB, late 2008) which I use as a file server. The client of interest is a Mac mini, slightly newer. The connection is 802.11n at 100+ MB/s. I can see no evidence of interfering networks. Anyway, dragging largeish (350MB) files

  • ADF Toy Store : create row : problem scenario

    hi (Steve) While experimenting with the ADF Toy Store Demo (*1) I tried this scenario: (1) Use the "Sign In" icon to navigate to "Register as a New User". (2) Without entering data into the input fields, click the "Register" button. You will get erro

  • Help!!!!    Will Time Machine Erase Everything on my portable hard drive?

    This is my first time using Time Machine. I purchased a 500 gb portable hard drive (Western Digital) which is mac compatible. When I got it, it I loaded all of my files from my pc onto the hard drive. I have transferred some of the files (mostly pict

  • Gen 5 airport extreme

    Bought this in Nov 2012. great until yesterday. I have two windows pcs (one win 7 and one win 8) i-pad, 2006 macbook,and laptop using Ubuntu. All on wireless.  Both windows pcs speedtested at .08Mbs while the macbook and Ubuntu speedtested at 24Mbs.