How to do a Http get in the background where user access the web app

I want to touch a listener page in non - j2ee based application 1 (say A1 which is ColdFusion) from a j2ee based application 2 ( say A2). The exact functionality would be : A struts based application's A2 web page would send a session id to a listener webpage in A1. How would i achieve this, as i just need to pass some information in Background and not transfer the control to application A1 where as user is performing normal course of actions in foreground? I can think of Socket programming, any other approach that you can think better than this?
So, I need to pass information to a page out of my web application scope yet keep the control within the web application?

This is the snippet I am trying in my "action". Assuming that, the program in A1 reads the request parameters and sends me a response. Would this be enough or am i missing something?
try
HttpURLConnection urlconn = null;
try
String urlStr = "http://IPADDRESS/EntranceSeminar_Web/index.jsp?sessionid="+session.getId();
     System.out.println("URL string = " + urlStr);
URL url = new URL(urlStr);
urlconn = (HttpURLConnection)url.openConnection();
urlconn.setInstanceFollowRedirects(true);
urlconn.setRequestMethod("GET");
urlconn.setRequestProperty("Dummy", "RestValue");
urlconn.setDoOutput(true);
urlconn.connect();
out.println("<br>The response code is : "+urlconn.getResponseCode()+" Message: "+urlconn.getResponseMessage());
catch(MalformedURLException mfe)
System.out.println("MalformedURL Exception");
mfe.printStackTrace();
catch(IOException ioe)
System.out.println("IO Exception");
ioe.printStackTrace();
}

Similar Messages

  • How much storage can I get in the ipad app pages

    How much storage space do I have in the app Pages?
    Bob

    As far as I know there is no limit within the app, your main limit is the space you have on your ipad.....if you have 5 gig open then Pages can use up to 5 gig, if you have 400 megs, then it can use 400 megs.

  • How can I get into the Dutch App store?

    I am a Dutch Native living in the U.S. and since a few weeks the proud owner of an Ipad 2. I would like to download some Dutch apps for me and my son but I do not know how to get into the Dutch App store or how to find Dutch apps in the U.S. app store.

    http://store.apple.com/nl
    All the Apple online stores are just store.apple.com/(country-domain_suffix)
    Not sure about payment policies and such (that is, if you need a Netherlands credit card with a Netherlands billing address, or whether you can use a US credit card).

  • I have Mac OSX maxmini; Safari states "can't open server since starting with 'open-help-anchor'.  How do I get into the web site this is blocking?

    I have Mac Mini OSX 10.6.2; Safari states "can't open server since url starting with 'open-help-anchor'.  I didn't type this but possibly I was hijacked but it only occurs on the specific banking site I'm trying to get into.  How do I get into the web site I've always been able to get but now this is blocking it?   Is this related to cookies?

    https://discussions.apple.com/message/25085868#25085868
    I started a thread in safari maverics, I ment to put it in iOS Safari.  New Thread lists all the steps I've taken.  No I haven't tried another browser.  I've only ever used Safari on my iDevices.

  • How many song should i get on the 2gb ipod shguffle 4th generation

    How many songs should I get on the 2gb I Pod Shuffle 4th generation

    Hello Maureen,
    The number of songs will vary based on the length of each song and how large the file is, but on average 2 GB will hold approximately 500 songs. 
    I found this information in the following link (the title of this article says 2nd generation iPod shuffle, but the number of songs in 2 GB is the same for the 4th generation as well):
    iPod shuffle (2nd generation) - Technical Specifications
    http://support.apple.com/kb/sp27
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How can I get back the Web Clip widget in Dashborad?

    Dear all,
    I accidentally deleted the Web Clip widget together with the Web Clip.wdg in Library/Widgets/ folder by AppCleaner some time ago. Now I cannot use this function to clip content in pages. I have the widget icon in Safari and can crop the webpage without problems, but after I did this action, nothing appeared or happened in the Dashboard since the original web clip widget file is gone.
    I would like to know where and how I can get back the Web Clip.wdg file so that I can perform the Web Clip function again?
    I just saw a user who posted a similar topic on Dec 28, 2008 and his/her problem is solved. I have this same problem like his/hers.
    I would appreciate if anyone can help me, thanks!

    Hi,
    Thank you very much for your help.
    I have tried to use Time Machine to get back the Web Clip but still couldn't, and very strange is when I click Time Machine, I can only choose Windows Applications as the back up disk but not Macintosh Applications, so I cannot restore anything from Macintosh applications.
    I think the best is if anyone has this widget on their Mac and can kindly send it to me by e-mail?
    I would appreciate it so much.

  • I have a new ipad.  How do I get to the old apps I had to download them?

    I have a new ipad.  How do I get to the old apps I had to download them?

    Sign out of the App Store, close the App Store app and reboot the iPad, sign in again and then go back and try again.
    Settings>iTunes and App Store. Tap your Apple ID and sign out.
    Close the App Store. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the App Store app and then swipe "up" on the app preview thumbnail to close it.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    Go go back to Settings>iTunes and App Store. Sign in again. Go to the App Store and see if the apps appear for downloading now.

  • I was referred to this site because Internet Explorer would not allow me to navigate to web page. Therefore the tech-support staff sugested I try your site to get to the web page

    upon logging into this program open road x3 from the site realeflow.com. I get a msg "navigation to web page has been canceled" so I contacted the tech-support staff. They informed me that in the past this problem has occurred with internet explorer, so they referred your site to me, as a option to get into the web page from their site. I have never used your site to get into a web page before. So I do not exactly know how this works??????????

    In Firefox 3.6.4 and later the default connection settings have been changed to "Use the system proxy settings".
    See "Firefox connection settings" in [[Server not found]]
    You can find the connection setting here: Tools > Options > Advanced : Network : Connection
    If you do not need to use a proxy to connect to internet then select No Proxy
    Another possible cause is security software (firewall) that blocks or restricts Firefox without informing you about that,.
    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.
    See [[Server not found]] and [[Firewalls]] and http://kb.mozillazine.org/Firewalls

  • How do I search for movies in the videos app

    We just got an iPad 2 and I can't see how to search for a movie in the videos app.
    We do not have any movies on the iPad, but wIth home sharing running I can see our extensive movie library. However the only navigation is swiping up and down through a list of cover art. With 400+ movies in iTunes it can take a while to scroll down to Zombieland or Zulu... Spotlight doesn't search the home sharing stuff.
    I don't even see movie names in text under the cover art, or the normal quick scroll letter down e side of the page like you see in other iOS apps. It just seems very un-Apple and un-iOS.
    I feel like I am missing something, some setting to make the movies interface more user friendly.
    I'd appreciate any help or advice here
    - Rick

    I don't see any way either, but it is a Version 1.0 of Home Sharing.
    Tell Apple you want a search capability here: http://www.apple.com/feedback/ipad.html

  • I keep getting "Unable to connect" for my firefox. It was working yesterday and I turned my computer off. I can get to the web using internet explorer 9. I don't know why my firefox is not working. Everything else is working. HELP....

    I keep getting "Unable to connect" for my firefox. It was working yesterday and I turned my computer off. I can get to the web using internet explorer 9. I don't know why my firefox is not working. Everything else is working.

    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

  • Sun x4170 ILOM - Can't get to the web interface 2 days after password reset

    Just bought a used x4170. I was able to get iLOM on the network and get to the web interface logon screen after setting the IP for it.
    I tried logging on but the password was not given to me. So I connected to the serial interface (rj45) from another machine and used putty to connect. Got to the preboot point and was able to reset the password to default, Rebooted.
    I was then able to log into iLOM. That was 2 days ago. Today for some reason, I can't get into iLOM. It pings but I can't get to the web interface. I get the IE error "cannot connect" or unable to connect or something like that.
    I'm completely new to this brand of server so consider me completely ignorant on all aspects of the hardware.......lol
    Thanks

    Hello
    By default, you connect to the server’s service processor (SP) using the out-of-band network management port (NET MGT). The ILOM sideband management feature enables you to select either the NET MGT port or one of the server’s Gigabit Ethernet ports (NET 0, 1, 2, 3), which are in-band ports, to send and receive ILOM commands to and from the server SP. In-band ports are also called sideband ports.
    You can refer more here : https://docs.oracle.com/cd/E19269-01/820-7959-11/820-7959-11.pdf
    If you want to use the NET MGT port of ILOM, then your output should display similar to below
    -> show /SP/network
    /SP/network
        Targets:
            interconnect
            ipv6
            test
        Properties:
            commitpending = (Cannot show property)
            dhcp_clientid = none
            dhcp_server_ip = xxxxxxxxx
            ipaddress = xxxxxxxxx
            ipdiscovery = dhcp
            ipgateway = xxxxxxxxx
            ipnetmask = xxxxxxxxx
            macaddress = 00:10:E0:65:2F:20
            managementport = MGMT   <<<<<<<<<<<<<<
            outofbandmacaddress = 00:10:E0:65:2F:20
            pendingipaddress = xxxxxxxxx
            pendingipdiscovery = dhcp
            pendingipgateway = xxxxxxxxx
            pendingipnetmask = xxxxxxxxx
            pendingmanagementport = MGMT    <<<<<<<<<<<<
            pendingvlan_id = (none)
            sidebandmacaddress = 00:10:E0:65:2F:21
            state = enabled
            vlan_id = (none)
    Hope this helps.
    Best Regards
    Bhavyesh

  • How to reduce photos to send on the web

    How to reduce photos to send on the web my info says 225 KB and I need it to be no more than 4MB

    You are welcome.
    If the existing photo is 49kB and you can send anything less than 4mB, you are fine.
    http://cryptosmith.com/node/297

  • How do I change the Web App Root

    During installation I made a mistake of choosing the compiled output directory as the Wen App Root, whereas it seems that it actually wanted the source directory. Consequently whenever I try to open a source jsp file I get
    Unable to create this part due to an internal error. Reason for the failure:
    The NitroX editor can only be used with the pages located in the Web Application Root directory.
    The Web Application Root directory is the directory containing the WEB-INF folder.
    The text editor is being used instead.
    How do I change the Web App Root directory, I can't find a menu or preference that shows the current value or an ability to establish a new location.

    Does this mean then that you are forced to have a WEB-INF folder sitting beside JSPs you want to edit with NitroX?
    e.g. If my project directory structure looks like this:
    project-root
    |-- dist
    |      |- WEB-INF
    |      |- a.jsp
    |      |- b.jsp
    |-- web
            |- a.jsp
            |- b.jsp[/code:1:daa10af002]
    i.e. I keep my JSP source code in /web but when I run my Ant build the JSPs are copied to the dist directory.
    If I try to edit the files in /web using NitroX I get the error mentioned above. Does this mean I have to make /web the Web App Root directory and thus have to have a WEB-INF folder inside it?
    Cheers,
    mEEch                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How can I transfer PDF books to the kindle app

    how can I transfer PDF books to the kindle app     

    There are many ways to import your PDFs into Papers for iPad. Obviously the preferred way is if you have a Mac and also use Papers for Mac**. The two apps can wirelessly sync their libraries. But also without a Mac there are plenty of ways. You can upload PDFs directly via iTunes, or you can import PDFs attached to an email from Mail on the iPad. Alternatively, use the Papers bookmarklet to open a webpage you found in Mobile Safari and download the PDF from there. Or you can use the built-in search engines to search for articles and download the PDFs.

  • How do I keep forms opened on the web  - if they close themselves at times

    How do I keep forms opened on the web  - if they close themselves??

    Hi,
    When you have completed design your form on design tab, you may open form to filling out and submit. At this time, if you don’t change your form, it will keep the open state. if you change or edit your form, it will showing a warning dialog to let you know form will be changed to closed, and remind you to open it again.
    Thanks,
    Guanshuai

Maybe you are looking for