How do you add portable links to the Custom Landing Page

I have customized the PS2 Landing Page. This will be deployed to multiple environments. I need the url links on the page to be portable and point to a location on the server it is running on. (ex. anyHost.oracle.com/xyz where anyHost will be the server this is running on).
I've tried using EL in the goLink : destination="http://#{facesContext.externalContext.request.serverName}/xyz"
and also:
goLink: destination="http://#{landingBean.host}.oracle.com/xyz"
where the code is:
package custom.webcenter.spaces;
import javax.faces.context.FacesContext;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
public class landingBean {
public landingBean() {
public String getHost() {
FacesContext context = FacesContext.getCurrentInstance();
HttpServletRequest req = (HttpServletRequest)context.getExternalContext().getRequest();
String host = req.getServerName();
if (host.equalsIgnoreCase("127.0.0.1")) {//If running this from the laptop, return abcde
return "abcde";
else { //split the hostname and return the first part
return host.substring(0, 6);
These did not work and caused the page to not display at all.
Please let me know if you have any suggestions.
Thank you!

I tried this:
<af:outputText value="http://#{facesContext.externalContext.request.serverName}:#{facesContext.externalContext.request.serverPort}/" />When i run this, it shows:
http://localhost:7101/
I believe this is whay you need.

Similar Messages

  • How do I add a link to the list of links under the "My Account Link"

    Q) How do I add a link to the list of links under the "My Account Link"?
    A) Edit any of your portlet web services and go to the "Advanced URL Settings" and then "User Configuration URL". If you type a path in this box, a link displays on the My Account page.
    You need to restart your portal web server to see results immediately because the display page is cached.

    What To Do If Your iDevice or Computer Is Lost Or Stolen
    If your Mac, iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should do in advance - before you lose it or it's stolen - and some things to do after the fact. Here are some suggestions:
    Reporting a lost or stolen Apple product
    AT&T, Sprint, and Verizon can block stolen phones/tablets
    What-To-Do-When-Iphone-Is-Stolen
    Lost or Stolen iPhone? Here’s What to do.
    6 Ways to Track and Recover Your Lost/Stolen iPhone
    Find My iPhone
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
    Find My iPhone
    Setup your iDevice on MobileMe
    OS X Lion- About Find My Mac
    How To Set Up Free Find Your iPhone (Even on Unsupported Devices)
    Third-party solutions for computers:
    VUWER 1.5.4
    Sneaky ******* 0.2.0
    Undercover 4.7
    LoJack for Laptops Premium Mac
    STEM 2.1
    MacPhoneHome 3.5

  • How do you add an image in the signature

    Hi,
    How do you add an image to the signature area.
    The Insert/edit image is not available when in My Settings | Personnel Info | Signature
    Regards
    Ray Farmer

    You need to link the image.  See the example for the Canada flag below.
    <img src="http://forums.ni.com/ni/attachments/ni/130/6908/1/Canada-small.PNG" border=0>
    Replace with the image you like.  This goes into the signature box within the profile tab of the personal settings.
    RayR

  • How do you make a link open on a new page (typically the target="_blank" command) in MUSE?

    how do you make a link open on a new page (typically the target="_blank" command) in MUSE?

    Newer version does not have the same interface.  I'm stuck trying to understand how to add a "blank" target to a hyperlink...  See how your screenshot has a dropdown associated with the "Hyperlink" object?  Mine doesn't...

  • How do you add an entry in the monitor log from the update rules?

    How do you add an entry in the monitor log from the update rules?

    Check this link for relevant SAP recommended implementation.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0c22e690-0201-0010-9581-832abdb5d50d
    Sample Code (Routine) available on the last page of the document.
    award points if useful

  • How do you add a format to the "Date Picker Format Mask" available formats?

    Hi,
    When I select the Date Picker Format Mask or "Number / Date Format" they doen't have YYYYMMDD or others that may be desired...
    How do you add a format to the available formats?
    Thank you, Bill

    Bill - From the popup help text:
    If you need to create a Date Picker item, but the format you need does not appear in the Display As list, select Date Picker (use application format mask). When an application uses this type of date picker, the Application Express engine derives the date format from an item named PICK_DATE_FORMAT_MASK. You can populate this item in two ways:
    - By defining an application substitution string named PICK_DATE_FORMAT_MASK
    - By creating an application-level item named PICK_DATE_FORMAT_MASK
    See the doc for more details.
    Scott

  • How do you add safari favourites with the new iOS?

    How do you add safari favourites with the new iOS?

    Do you mean you want to sync your desktop Safari bookmarks to iOS? This is done in iTunes when you sync the iOS device. There is a box to check to make this happen.

  • How do you add a mailbox to the iphone4s?

    How do you add a mailbox on the iphone4s?

    If you have an IMAP account, then add it on your server and it will appear on the iphone.
    If you have a POP account then you cannot.

  • How do you add a grid on the viewer?

    How do you add a grid on the viewer so you can lign up text and whatnot?  Thanks!

    I do just as you outline. It's covered in my article on Alignment Grids: http://forums.adobe.com/message/4319250#4319250
    I also agree that the Snap Tto Grid would be nice, like in Photoshop. I have sent in several Feature Requests for Grids, with full functions, like Snap To, though not recently.
    Hunt

  • How do you add a link to another website in you PDF using LiveCycle?

    Can you add a link in your PDF in livecycle that opens a new window that that takes you to a predetermined website?

    There may be simpler ways, but this is how I made my button.
    Add the button.On the Object palette>Field page change appearnce of button to have no outline and no fill. Highlight the text and on the Font and paragraph palettes choose the correct look for your text (blue and underlined plus anything else you want) and change the text to what you want the link to say.
    Then to add the URL, open your script editor (Window>Script editor) & choose "Langauge:Javascript" and "Run at:Client".
    With the button chosen, choose the CLICK event (from drop down list, beside "Show") add the script:
    app.launchURL("http://AND THIS IS WHERE YOU ADD YOUR OWN URL")
    Hope that is helpful

  • How do you Add a Link in Nav. Bar to a different site?

    I would like to add a link to the Nav Bar that goes to a location of my choice. Is that possible in iWeb? If So, how?
    Thanks
    Neil

    Here's a way to do it:
    1 - create a blank page with the name you want to appear in the navbar.
    2 - publish the site.
    3 - edit the html file of the page and put the following in the head section of the file:
    <meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com">.
    Replace the “0” with the number of seconds you would like to pass before the redirection takes place. Put in the URL of your destination site.
    As long as you never make any more changes to that page or use the Publish All to MobileMe option you won't have to reedit the html file and add the code all over again. This is a demo of that feature with an 8 second lag.
    Now the external page will be in your navbar.
    OT

  • How do you add multiple effects to the same clip

    How do you had multiple effects to the same clip. I have tried for hours
    I would like to add sepia and aged movie to the same clip. I heard it can be done, but have not figured out how to do it.
    anyone please.

    Normally you can apply only one video effect at a time. But for Sepia, black and white, and others that can be done through the video Adjustments tab, you are in luck.
    Aged Movie should already have a bit of a sepia tone.
    If you want more of a sepia tone or you want to fine tune the sepia effect you can do it with the Clip Inspector/Video Adjustments tab.
    Note: Thanks to Jeff Carlson of MacWorld for this tip.
    If you're looking for a washed-out sepia appearance, first open iMovie's preferences and turn on the Show Advanced Tools option, which adds more controls to the Video Adjustments HUD and other areas of the program. Select the clip you want to alter and press the V key. Set Saturation to 0 percent, and then drag the Red Gain slider to 143 percent, the Green Gain slider to 90 percent, and the Blue Gain slider to 53 percent (feel free to tweak these settings to customize the results). Click on Done when you're finished. Note that the clip thumbnail still appears in color, as the video was shot, but the preview reflects your changes.--JC
    If you need to apply the same settings to all clips, first select the clip you have adjusted. Then Edit/Copy. Then Edit/Select All. Then Edit/Paste Adjustments.

  • How do you add a source to the Health app?

    How do you add a source (ie, Nike +) to the new Health app?

    http://help.apple.com/iphone/8/

  • How do you add a percentage in the preloader?

    How do you add text that changes on the preloader as your site loads? for example a standard "0%" ... "100%" or even controll what frame a gif image displays?
    Thanks

    It is not easy to see and I found it by messing around. First of all put them in daye order by dragging the screen down and touching the little alarm clock at the top.  Then touch the space below the earlies reminder and a new one comes up. It defaults to 'today' so you have to touch the new reminder and then touch the 'i' button that appears. You can then change the date and time etc. No easy.
    I dont understand why Apple do these thongs before updating the user guide!
    Hope this helps.

  • How do you add a reminder on the ipad in iOS 7?

    I hate to admit defeat, but I'm stumped. How do you add a reminder in Reminders on the iPad 2 in iOS 7?

    It is not easy to see and I found it by messing around. First of all put them in daye order by dragging the screen down and touching the little alarm clock at the top.  Then touch the space below the earlies reminder and a new one comes up. It defaults to 'today' so you have to touch the new reminder and then touch the 'i' button that appears. You can then change the date and time etc. No easy.
    I dont understand why Apple do these thongs before updating the user guide!
    Hope this helps.

Maybe you are looking for

  • "OutlookSyncClient has stopped working" when Exchange Cached Mode is On.

    Hi, I have an iPhone 3G which originally didn't sync with outlook 2003 in Vista. Sync is being perform via USB. I initially tried reinstalling iTunes, Reset sync history, Syncing with new windows user but could not get it to sync without an error. Vi

  • Query taking too long when using bind variable

    Hi All, There is a query in our prod DB which runs very slow (approx 2 hours) when it uses Bind Variables (using JDBC thin client), and when i try passing the variable using TOAD/SQL developer it runs fine. Explain Plan for running Query SELECT STATE

  • Table where system id is stored in CRM

    Hi everybody, I'm currently implementing a solution and got the id of the source and target system. I need to know which ID belongs to which system. The id is an 32 long and alphanumerical. I know there is a table in CRM where the logical system are

  • Assign User Task According to Hierarchy From Another System

    Hi all. I am new in Oracle BPM, I'm doing a  project where I have to perform a relatively simple approval workflow. My problem, is actually in associating people who should make approvals to set up reports. My BPM project is integrated with LDAP (AD

  • Custom Keyboard Shortcuts Get Reset / Altered

    Hey I'm having a pretty annoying problem with Photoshop CS4 - one that I never had with Version 3 or earlier. I usually like to unmap the shortcuts for Close Window (Cmd+W by default) and Quit Photoshop (Cmd+Q by default) because they can cause probl