Download ip applications and the port using the expression language

Hi gurus, is possible to get the ip and port applications using the expression language / FacesContext?

example:

I have a request to the url:

http://120.120.120.120:7001/MyApp/faces/login.JSPX

I can get 'MyApp' (context root) using #{facesContext.externalContext.requestContextPath}

but I want to get the 120.120.120.120:7001 using EL.

If it is not possible using EL, I can't using javascript / java code in jspx?

What am I I make here is, I want to store multiple images in the folder on the server, and then I'll have my servlet read this image of the server folder and use this picture as the background image of the panelgrouplayout.

I want to save this image in a folder user can update this image easily that store this image in DB / application

Thanks before

Hello

Try #{facesContext.externalContext.request.remoteAddr}

If the above does not work, use a managed bean and expose the information as a property. Then use EL to reference the property.

private String remoteAddress;

public void setRemoteAddress (String s) {};

public String getRemoteAddress() {}

String addr = (facesContext.getExternalContext () .getRequest () .getRemoteAddr () (HttpServletRequest);

}

HttpServletRequest (Java EE SDK 5)

Frank

Tags: Java

Similar Questions

  • When using my computer, all applications and the windows are closed at the same time, got disconnected and the computer turns off as if someone stops manually.

    Original title: it's a virus that's causing this?

    It happened a few times now. While I use my computer, all applications and the windows are closed at the same time, I am disconnected and the computer is off, as if someone manually stops the computer. I turn on the computer and log in and everything seems to be okay. No data deleted, not that I could find and detect anyway. One day when I turned on the computer, it run chkdsk before doing the usual startup. I use the computer for 2 years and this is the first time, she never did a chkdsk on its own. I used Microsoft Essentials and no viruses were found.

    Should I worry?

    Hello

    You can read the following article and try to download the Microsoft Safety Scanner and perform a full scan on your computer and check.

    Microsoft safety scanner

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    Check if there are logs of events related to the issue in the event viewer which may help us to solve the problem of the:

    What are the information contained in the logs of the event (Event Viewer)?

  • Offers day and slow downloads WiFi (very slow).  Is there a way that I can download some updates and new programs using my macbook pro (to a public site in the city) and transfer it on my iMac which is too heavy to cart autour?

    Difficulty to access the updates and downloads with very slow wifi ("country").  Is it possible that I can download some updates and new programs using my MaBbook Pro (retina) on a public site in the city and transfer them on my iMac which is too heavy to cart autour?

    New programs, Yes.

    Updates, depends on what you're updating.

  • Hai iam Amaladas from Chennai (India) iam Remote Sensing and GIS researcher here most people using the Google Earth application and five members using Iphone, we need a Google Earth app (India)

    Hai iam Amaladas from Chennai (India) iam Remote Sensing and GIS researcher here most people using the Google Earth application and five members using Iphone, we need an app (India) of Google Earth?

    https://www.Google.com/search?q=Google+Earth+app+India&ie=UTF-8&OE=UTF-8

  • How can I delete a desktop application and the file?

    I download an application which went to the bureau.  Target is "C\Users\===\desktop\===.exe" no shortcut key. I click with the right button to delete the file and got a sign of caution: action cannot be compleded because the file is open in = executable.  Close the file and try again.  I have liquidated everything returned to do the samething and got the same answer.  How can I close a file?  How can I get this unwanted application and the deleted file?  Thanks :=)

    Hello

    The program has an open handle. Use the Task Manager process tab to locate and kill him. Alternatively, restart the system and delete once recharged. Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • Applications and the computer cannot find HP Deskjet 4180 printer

    Recently upgraded to Windows 8 XP (32 bit).  Downloaded the driver from the HP website for the HP Deskjet 4180 printer and installed it.  Open a document and select print as well as the application cannot find the printer.  The computer does not recognize a printer connected (via USB cable - no network connection).

    Then I downloaded the installation wizard and he can identify the HP devices connected via USB and has chosen the correct software to download and install.  He identified the aircraft and said the basic software that it is installed and recommended that I have the full software.  I did this, which involves downloading a file of 291MB and it works. Eventually return to the same point in the installation wizard and most recognized once the device but the claims only the basic software is installed - followed the instructions on-screen, downloaded 291MB file and the wizard could have do me it again for a 3rd time!  Printer is still not not regonised when I try to print.

    The pilot actually works?

    Is there anything else I can try?

    Your help will be very appreciated.

    Sorry, you have problems getting the printer to set up and print.  Here is a video on uninstalling software of the printer in Windows 8 (which is step 1).  After uninstall, restart the computer, then try to install the full feature software and drivers Deskjet 4180 (link is for Windows 8 32 bit) using this download.

    To the best of my knowledge, this driver should work (I have not heard otherwise).  Try this for me first and if it doesn't work, tell me what is happening. I hope this works!

  • I can't download free applications from the store

    I can't download free applications from the store after upgrade to windows 7 help me

    Hello Mohandas,

    Thanks for posting your question on the Microsoft community.

    I would like to know some information about the problem so that we can help you better.

    You receive all code or an error message when you try to download apps from the store? If Yes, what is the error message?

    Thank you for details on the issue.

    This problem may occur because of these corrupt files and settings. This can also happen because of app download corrupt files.

    I would suggest trying the following methods and check if it helps.

    Method 1:
    Run Troubleshooter app and check.
    See this link:
    http://download.Microsoft.com/download/F/2/4/F24D0C03-4181-4E5B-A23B-5C3A6B5974E3/apps.diagcab

    If this does not help, use method 2.

    Method 2:
    Please use the suggestions in this article and check the issue.
    Reference:
    Why can't find or install the application on the Windows Store?
    http://Windows.Microsoft.com/en-us/Windows-8/why-find-install-app-Windows-store

    I hope this information helps.

    Please let us know if you need more help.

    Thank you

  • whenever I try to download or preview and the image, I gives me the message "licensing for this image are no longer available" Why am I doing this?

    whenever I try to download or preview and the image, I gives me the message "licensing for this image are no longer available" Why am I doing this?

    He was going on with all the images. Using chrome, I disconnected and then reconnected and still had the same problem. I have signed in using firefox and had no problem. I bought 3 images of the last week with the help of chrome and downloaded successfully, the problem seems to happen after that. Right now I use firefox for preview images, I can't use chrome. I have not yet tried to make an additional purchase.

  • We currently have questions get applications and the list of services. Please try again...

    I just signed up for cc, received confirmation that I'm in and confirm my email address.

    The following text is displayed when I click on "Download now" under Services and applications:

    Adobe_error.png

    We currently have questions get applications and the list of services. Please try again in a few minutes.

    This happens in Firefox and Chrome.

    I'm kind of miserable at the moment.

    The problem has been resolved.

  • I can't download any pic and the file in my facebook.

    Why I can't download any pic and the file in my facebook. I started to realized about 1 month ago. Can someone advise me?

    Please contact the Facebook Support for help with this issue:

    http://www.Facebook.com/help/?page=220217228006012

    http://www.Facebook.com/help/

    http://www.thefacebookforum.com/

  • 'Versions of the application and the database do not match' on the comparison of the annex

    Moved the database to a Server 2003 to server in 2012.  This has been the only change PM receive the message "the application and the database of the versions do not match" when they try to make a comparison of the annex.

    Thanks for your help.  You have provided very concise solutions to my problem, I ended up having also do the following:

    Trip, click the password in the admim.cmd to ensure that the password has been set successfully and deleted the file BREBootStrap.xml (let it recreate itself)

  • There is an error when I try to download an application via the cloud

    When I try to download an application via the cloud, there are 34 error:

    Exit code: 34

    Please see specific errors below for troubleshooting. For example, the ERROR:

    -------------------------------------- Summary --------------------------------------

    -fatal error 1, 0 error (s)

    FATAL: Payload "Package Microsoft redistributable Visual C++ 2010 (x 64) 9.0.0.64 {9D2A060F-AC6B-11E0-8C00-00215AEA26C9}' information not found in Media_db."

    -------------------------------------------------------------------------------------

    Because of this fatal error, I'm not to download software cc,

    I already see for this error but not found

    I'm on PC

    Hello

    Please refer to get fatal exit Code 34 when installing an application

    Concerning

  • The schemas are required to export an APEX application and the EE DDL to itself and XE

    Source DB - Oracle 11 g 2 EA

    Target DB - Oracle 11 GR 2, 11 2 Oracle XE GR SE

    O/S - RHEL 6.5

    Application - APEX 4.2.2

    Must give up an APEX application and the underlying DDL associated with a database Oracle EE an Oracle SE and XE database.

    Patterns are required to export to accomplish this approach?

    Is there one method other than export patterns which would be preferably?  (for example export tablespaces).

    You should not deal with apex tablespace or schema APEX_040X00.

    Just follow these steps:

    (1) ensure that the APEX version is the same or higher in the target schema, upgrade if need be

    (2) discover patterns of the application (NOT APEX_XX) pump and export data those and import them into the target schema.

    (3) in the target database, create a different workspace and the link with the schemas imported analysis

    (4) export enforcement APEX of source database in the target database.

    If you expand the app, better to talk to the one who did it. Make sure that the Images, CSS, JavaScript files are added as objects of support and those that are then exported (to step 4).

    Basically don't worry about APEX_O40X00 scheme, as long as your Apex versions match, it will be the same and will be automatically filled with metadata in the application import and export performance.

  • Record: difference of Application and the screen area?

    Beginner questions:

    1. What is the difference between registration and Application screen area?

    2. with the selected Application, what is the difference between the Application and the area of Application window?

    Thank you.

    Hi winnn123,

    Check with application means you want to record actions on a PARTICULAR application. In addition, the recording rectangle could yield to the request to be registered. Three options are available:

    -Size: This means that the application window (to save on) will resize according to the selected dimension.

    -Window application: the recording rectangle will resize according to the dimension of the chosen application (to save on).

    -Area application: an application window is composed of many frameworks/component/regions. Select this option if you want to save a specific framework/component/area of the selected application.

    Screen area:

    This positions blindly the rectangle (of size selected) registration on the screen independently open applications.

    Hope that answers your questions...

    Manish

    http://blogs.Adobe.com/Captivate

  • Problem with downloading of applications and updates

    Hello

    I get the error when you try to download certain applications from the Mac App Store.

    And when I try to update applications.

    Here is a log from the console:

    storedownloadd [493]: * the Assertion failure in French-[CheckPreflightOperation verifyDistributionAtURL:allowsDevSign:allowsUnsigned:osVersionToBeInstalled: err or: distributionController:], /Library/Caches/com.apple.xbs/Sources/Commerce/Commerce-462.9/CommerceKit/Check PreflightOperation.m:291

    I have a month old Macbook Pro. I have no problem with downloading the applications from my old Macbook on the same network.

    What should I do?

    Hello..

    Start Safe Mode removes the system caches that can help.

    Upper left corner of your screen, click on the Apple  > Shut Down.

    After your Mac stops, wait 10 seconds, then press the power button.

    As soon as you hear the startup tone, hold down the SHIFT key. You must press the SHIFT key as soon as possible once you hear the startup tone, but not before.

    Release the SHIFT key when you see the gray Apple logo and progress indicator.

    Once you are in Mode without failure, return to the menu Apple . In the drop-down list, click: reboot


    Then try the App Store.

    On Safe Mode

Maybe you are looking for

  • HP Notebook W7V75UA #ABA: what is HP Radio Manager

    I just what flames is Radio HP Director.  Neither Google nor HP support would provide a response, instead just asked out of place.

  • Ubuntu reports bad RAM?

    Yesterday, I upgraded my Netbook to 2 GB of RAM. Windows XP recognizes all the new RAM.Today, I restored to Ubuntu - Ubuntu shows only 883 MB of RAM in the system monitor.Is this a bug in Ubuntu, or is there something else I need to change to recogni

  • Satellite Pro L450 - 17K - expandability RAM and HARD drive

    Can someone help me find out what the actual amount of system ram memory can be installed using windows 7 64 bit? As far as I can tell it is 4 GB or more? What is "more"? What of the hard disk, what is the maximum size that I am able to install and f

  • Is the Black berry online real lottery?

    Received the following message: We are pleased to inform you of the publication of the results of the long-expected promotion contest organized by Blackberry online lottery, award jury has ordered to pay you via western union under slice for $20 000.

  • Error message Eject key currently unavailable

    So, how to get out he demo mode for the drawer opens