How do I access the remote(requesting) clients IP address through the Portal API?

How can I access the remote(requesting) clients IP address through the Portal API?
On our 4.5 - IIS system, we can acces it using the Request.ServerVariables("Remote_Addr") in the ASP pages.
We are deploying 5.0 on Java Portal and would like to be able to do this through the Portal's API so I can call it in one of our custom login Activity space or control etc.
I have looked documentation for the HTTPServletRequest object. It seems like we should be able to access it through one of the methods getRemoteAddr if we can get a handle to HTTPServletRequest object through the Plumtree's framework.
I think the XPRequest object encapsulates the HTTPServletRequest but I didn't see getRemoteAddr method listed in the Javadocs.
Is there a way to access the client's IP address through the Plumtree's framework?
I need to do this so we know the location of the user and in our business case we have fixed IP adresss which let us identify which location is user accessign the system from. We can't do this through preferences or profile because we have to use generic userid for the specifc group of users.
Any help on this would be appreciated.
Thanks.
Vanita

Hi, Vanita. For now, you can use
stringsClientIP = HttpContext.Current.Request.ServerVariables["REMOTE_ADDR"].ToString();
Hope that helps!
Sarah

Similar Messages

  • How do I access the portal "builder"?

    It seems like I am successfully logging in as the orcladmin user via the Login link off of the portal home page (/pls/portal/portal.home), because there is no error upon logging in and I can access the OID admin pages. However, I can't seem to figure out how I get to the pages that will allow me to build portal pages, etc. All I see is the "Home", "Community" , "Refresh","Login" and "Help" buttons on the top navigator. Is there a url that I can type in to access the portal builder pages?
    I am quite certain that I am logging in properly because after my initial login, when I click the Login link, it does not take me to the login page, just leaves me where I am at.
    Upon my initial login, should'nt I be forwarded to the portal admin page or something??
    Any help would be appreciated.

    once you login, click on the "corporate documents" tab.
    a link to the "builder" should show up in the top right.
    clicking on that gets you what you want. (there is then a link to navigator on the top right of that page...if you want to work on pages).

  • How can we access the java API from the BO report

    Post Author: kusammurali
    CA Forum: JAVA
    Hi,
    Pls clarify my doubt
       Busines Objects Developer suit comes with either JAVA SDK or .NET SDK  COM/VISUAL BASIC SDK . am i right?
       By Using visual basic we can customize the report  (Tools--->Macros  and create VB macro)
        What is the process of accessing  .NET or JAVA SDK ? is there any separate editor for java and .net ?
    Thanks
    Murali.

    Using object tags is the correct way and only way to download the plugin and let the client decide whether he can download it r not. There is no way to install automatically
    I dont think there is a way to install automatically without a user intervention coz, it can open the floodgates for potential hackers.
    Can u cite an example about which programs can be installed automatically and why do u want the plugin to be installed automatically?
    ciao

  • Starting and accessing the portal

    I am a fresh newbie. Just installed the App Server and Portal in Enterprise System 5 on Windows as binary. Started the App Server and the Admin console.
    Now how to I access the Portal? Does the Portal need to be started? I couldn't locate this information in the documentation or in the Forums.

    Found another piece of documentation :
    Sun Java Enterprise System 5 Installation Guide for Microsoft Windows
    In this document, it says :
    Starting and Stopping Portal Server
    The Portal Serverstartup and shutdown mechanisms are part of the startup and shutdown mechanisms for the web container, either Web Server or an application server. Portal Server depends on Directory Server, Access Manager or Access Manager SDK, and a web container.
    To Start the Portal Server
    1.
    Start the Directory Server instance.
    JavaES5-Install-Dir\DSEE\ds6\bin\dsadm.exe start DSInstancePath
    2.
    Start the Cacao Server instance.
    JavaES5-Install-Dir\share\cacao_2\bin\cacaoadm.bat start
    Wait for some time to ensure that the Cacao Server is started.
    3.
    (Optional) Verify the Cacao Server status.
    JavaES5-Install-Dir\share\cacao_2\bin\cacaoadm.bat status
    Cacao Server status is displayed in the following format:
    default instance is DISABLED at system startup.
    Current retries count : 0/4
    Processes:
    3780
    Uptime: 0 day(s), 0:8
    4.
    Start the Derby Server instance.
    JavaES5-Install-Dir\share\ant\bin\ant.bat -buildfile PortalServer-base\lib\derby.xml -propertyfile PortalServer-base\config\PSConfig.properties start-instance
    Note �
    If the Derby Server is not started then the Wiki and community samples will fail.
    5.
    Start the web container, which can be Web Server or Application Server.
    Note �
    If both Access Manager and Portal Server are deployed on the same web container, starting web container brings up both Access Manager and Portal Server by default.
    1.
    To Start the Application Server, type:
    JavaES5-Install-Dir\appserver\bin\asadmin.bat start-domain user adminUserName password adminPassword deployedDomain

  • How can I access the properties of Microsoft files (excel, ppt, and word)

    Hi,
    How can I access the properties of common Microsoft file formats (Excel, Word, and Powerpoint) from a Java program. You can access/modify the properties of each document type using File->Properties in each MS application. The properties are essentially name/value pairs.
    Basically, I need to write a java program that scans a directory and accesses the properties in each of the MS files in the directory.
    thanks,
    -john

    By api. That is only way to establish a contract with the MS programs you want to interface with, unless you write an api yourself! I've used POI and it was an awesome way to use Excel in java. I created an excel spreadsheet from the results of a sql query from a batch program and then it was automatically emailed using javamail to my client. I had a lot of VBA experience with Excel, Word, and Outlook and it didn't take me long to get used to using Jakarta-POI.
    Now I see there is Jakarta-POI-HWPF which works with MS Word documents. Go to: http://jakarta.apache.org/poi/

  • How can I access the selected element of a DropDownByIndex-box?

    Hi,
    I want to create a WebDynpro with two web services. I created the first request with the first web service and the results are displayed in a DropDownByIndex-Box. Now the user should choose one of the results and I would like to use this for the request with my second web service. How can I access the selected Element of a DropDownByIndexBox in the Code?
    Thank you!!
    Julia

    Hi Julia,
    when user select one element in drop down it automatically set lead selection of node binded to dropdown.
    For example if you bind a dropdown to node myNode with value attribute myAttribute the lead selection of node myNode is set in the position of element choose from user.
    So to take this chooised element use this code:
    wdContext.currentMyNodeElement.getmyAttribute()
    bye
    Andrea

  • How do I access the AF Portal with SCR331 reader in Mac OS 10.5.6

    I have searched every website known to man and I am unable to find a way to access the AF Portal using a CAC reader issued to me. It is an SCR331. It shows up just fine in Keychain Access and I am successful in adding a new identity for the website. But when I go to the website www.my.af.mil and hit the button to access using my CAC card, it says that I have hit the Cancel button.
    Any ideas?

    To All,
    I encountered the same problems you describe with the Air Force portal. Followed all recommendations to no avail. After lots of trial and error this is what I did in my setup and worked:
    1. close all open programs. Open keychain access, connect the reader, insert CAC, select CAC keychain by clicking on it once, you will see a list with 3 certificates and 3 private keys to the right.
    2. double click on the certificates and find the one that shows "Usage Digital Signature, Non-Repudiation" and Purpose #1 Smartcard Logon, Purpose #2 Email Protection, Purpose #3 Client Authentication". This is the right certificate for online CAC authentication.
    3. control-click the CAC certificate identified as the right one in step 2 and create an identity preference for each server addresses that the AF Portal has:
    https://www.my.af.mil/EAI_JUNCTION/eai/
    https://www.my.af.mil/EAI_JUNCTION/eai/auth
    https://www.my.af.mil
    I had to create an identity preference for each; for some reason if I don't use all three, login fails.
    If you also want to access the virtual MPF, also create an identity preference with the following server: https://w20.afpc.randolph.af.mil/afpcsecurenet20/
    Note that these server addresses are case-sensitive and you need to put the "/" just as I did above.
    4. verify the identity preferences were created by selecting the login keychain, you should see them in there.
    5. open safari and enter: https://www.my.af.mil in the safari address bar. Enter PIN number if requested. I have noticed that sometimes it will work flawlessly and sometimes the server will reject the certificate and ask you to select a different one. If I select the one that says DOD EMAIL CA-15 and hit enter (sometimes repeatedly) it will then work. Don't know why this happens but have read is a USAF server-side issue.
    Once you are able to access the portal, logout and try the vMPF by entering https://w20.afpc.randolph.af.mil/afpcsecurenet20/ in the Safari address bar
    hit OK if presented with a consent screen. You may be given a username/password screen, reenter https://w20.afpc.randolph.af.mil/afpcsecurenet20/ into the address and try again, you should be in AFPC secure.
    I tested this in a 2008 white macbook with an OmniKey 3121 USB reader and an Oberthur ID One v5.2 CAC card. My OS is 10.5.6.
    Please let me know if this helps.
    R Burgos

  • How can we access the file/directory system in the server

    Hi friends,
    I have made a text editor attached with an audio player for my project.
    Both text editor and audio player are implemented in applet and put in to a
    jsp page using jsp:plugin. Text editor and player are separate applets running
    in the same page and from same server.A client who is using this editor may
    want to save the edited text files to the server as well as hear audio files from
    directories in the server.
    My question is how can we access the file/directory system in the server
    like we do in the local machine.When the user cliks save or openfromserver button
    in the editor, folder/files in the server must be displayed as we do with FileChooser.
    I am using Apache Tomcat 5,wiindows 2000 server, jdk1.5.
    manu

    You can't access it directly. But your applet can make net connections to the server, and the server can provide that kind of functionality. Generally this is easiest by making HTTP connections and having the server provide the functionality via the web server. (So in your case, JSPs or servlets on the server would list/deliver/create/modify/delete files, and the applets would invoke those JSPs and servlets.

  • A friend has  given me his 02 apple 3g phone,but i'm on a pay as you go vodaphone sim.How do i access the phone

    A friend has given me his old iphone 3g 02.I have a pay as you go vodaphone sim card.How do i access the new phone.

    If locked to O2, you first need to get your friend to have O2 officially unlock it. Once done, you can then use it on Vodaphone's network. You can't get the phone unlocked, your friend needs to do this. Once O2 processes the unlock request, follow the directions here:
    http://support.apple.com/kb/HT5014

  • How do I access the web utility with model cisco sf302-08p ?

    Hi,i have a problem with the model Cisco SB SF302-08PP Switch , i connect a cable rj45 to my pc and configure the adapter local area connection (ip address:192.168.1.252), the LEDs blink green, and go to the address bar and get the IP by default, which according to the manual is 192.168.1.254 and the result is: page not found. Is there any way to change the web utility? How do I access the web utility?

    restore  the switch by holding more than 30 seconds and try accessing with ip 192.168.1.254. username and password is "cisco". before change your base ip to 192.168.1.2-253.try to ping and check the connectivity

  • How do I access the web-based utility

    I just purchased a wireless router...WRT300N. I want to access the "web-based utility" in order to update the firmware.
    How do I access the web-based utility...help!
    Thanks.

    Access the router’s web-based setup page.
    For instructions, click here.
    Linksys Easy Answer 4030, applies to WRT300N
    Upgrading the Linksys Router's Firmware
    Hope this helps,
    Lilla
    Westell 6100 modem/router; Linksys WRT54GL v1.1 router firmware 4.30.9; Linksys WPC54G v2 Notebook Card; CenturyTel DSL using PPPoE

  • How can I access the Attribute Values from the Search Region

    Hi all,
    I have a table which contains Company id, department id, and PositonId. For a particular Company and Department there may be multiple records.
    I have to pupulate a table which contains the position and other details that comes under a particular Department and Position based on the selection in the Three comboBoxes.
    Also I have to populate a select many Shuttle to add new postions and records under a particular Department.
    I created a query panel *(Search Region)* for the serch and a table to display the data. That is working fine.
    Now the issue is I am using a view criteria to populate the shuttle with two bind variables ie, DepartmentId and CompanyId.
    If the serach will return a resuktant set in the table it will also pupulate the correct records, otherwise ie, if the if the serch result is empty the corresponding iterator and the attribute is setting as null.
    SO I want to access the attribute values from the Search Region itsef to populate the shuttle.
    I don't know how can I access the data from the Search Region.
    Please Help.
    Regards,
    Ranjith

    you could access the parameters entered in search region by the user as follows:
    You can get handle to the value entered by the user using queryListener method in af:query.
    You can intercept the values entered as described
    public void onQueryList(QueryEvent queryEvent) {
    // The generated QueryListener replaced by this method
    //#{bindings.ImplicitViewCriteriaQuery.processQuery}
    QueryDescriptor qdes = queryEvent.getDescriptor();
    //get the name of the QueryCriteria
    System.out.println("NAME "+qdes.getName());
    List<Criterion> searchList = qdes.getConjunctionCriterion().getCriterionList();
    for ( Criterion c : searchList) {
    if (c instanceof AttributeCriterion ) {
    AttributeCriterion a = (AttributeCriterion) c;
    a.getValues();
    for ( Object o : a.getValues()){
    System.out.println(o.toString());
    //call default Query Event
    invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
    public void onQueryTable(QueryEvent queryEvent) {
    // The generated QueryListener replaced by this method
    //#{bindings.ImplicitViewCriteriaQuery.processQuery}
    QueryDescriptor qdes = queryEvent.getDescriptor();
    //get the name of the QueryCriteria
    System.out.println("NAME "+qdes.getName());
    invokeQueryEventMethodExpression("#{bindings.ImplicitViewCriteriaQuery.processQuery}",queryEvent);
    private void invokeQueryEventMethodExpression(String expression, QueryEvent queryEvent){
    FacesContext fctx = FacesContext.getCurrentInstance();
    ELContext elctx = fctx.getELContext();
    ExpressionFactory efactory = fctx.getApplication().getExpressionFactory();
    MethodExpression me = efactory.createMethodExpression(elctx,expression, Object.class, new Class[]{QueryEvent.class});
    me.invoke(elctx, new Object[]{queryEvent});
    Thanks,
    Navaneeth

  • I'm trying to set up Family Sharing. My settings show that the people I chose are there but I don't see any shared information. How do I access the shared info?

    I'm trying to set up Family Sharing. My settings show that the people I chose are there but I don't see any shared information. How do I access the shared info? All computers are using Yosemite 10.10.1 and are new 13" MacBook Pros.

    Hi wmcknigh,
    Welcome to Apple Support Communities.
    The article below should help you resolve the issue with shared content not appearing after setting up Family sharing on the MacBook Pros.
    If you don't see your family's shared content - Apple Support
    Cheers,
    -Jason

  • How can I access the Home Sharing Library from my iPad?

    We have an ipad 2 with ios 7, and an imac with itunes 11.1.3
    Just heard about home sharing and want to use this - surprised we haven't heard of it before
    home sharing is turned on in itunes (file > home sharing).
    home sharing is on for the ipad (settings > music)
    They are both connected to the same wifi network (usually our computer doesnt use wifi and is wired, but we turned wifi on just for this)
    When I open music in the ipad (even after continually quitting and reopening the app) there is no 'more' button in the bottom right that there is supposed to be.
    What is wrong? How do I access the library from the ipad? Help please!

    Welcome to the Apple community.
    More does more than home sharing, so it's odd that it isn't there, even if home sharing wasn't working for some reason. Are you sure you are in the music app and not the iTunes App.

  • I have just acquired an iMac desktop. I want to sign on to my airport wireless network, but cannot remember the password. How can I access the password or reset it. I already use a MacBook Pro and an iPad on the network.

    I have just acquired an iMac desktop (about 4 years old). I want to connect to my Apple airport wireless network, but cannot remember the password. How can I access the password or, if necessary, reset it. I already use a MacBook Pro and an iPad on the network and don't want to jeopardize what already works well. I am not all that computer literate.

    How can I access the password or, if necessary, reset it.
    Read the user manual that came w/your Airport router or you can cross-post in one of the  AirPort Forums for instructions. 

Maybe you are looking for

  • MacBook Pro Closed Screen Fit

    Hi, I have recently received my new MacBook Pro. Overall I am very happy with the purchase however I have one question/comment regarding the fit of the screen when closed. When the screen is closed there is a slight gap on the left hand side when loo

  • I only see the Java Deployment Toolkit plugin listed in the Add-ons

    Hello everyone, I only have Java Deployment Toolkit plugin 7.0.110.21 listed and enabled, and not Java Platform SE. I tried the steps under: http://kb.mozillazine.org/Java#Enabling_Java, but nothing works. Help! :-)

  • Assigning Territory Attribtues Using Rule Builder

    Hi , I am not able to assing the Territory Attributes using the Rule Builder. 1. I have create the Rule Policy and Rule set in the Rule Builder. 2. Under the territory I assigned myself as employee and I have created a Rule saying that 'if the Accoun

  • IDM JMX monitoring - Synchronization MBean

    Does anyone know how to additionally expose Waveset data using JMX MBeans? In earlier versions of the product (at least 7.0) I thought it provided insight into the synchronization processes currently running within the system, under: ObjectName=IDM:t

  • How to open Word with Lion?

    After getting Lion, I can't open my documents on 2004 Microsoft Word.  If I bought iwork would it open my documents?  What about Pages?