Open plain ole web page from a swing component link?

Can you create a regular hyper link like in html, and have a onclick or something like that, and have it open into a regular webpage. Not a JPanel, or anything like that, just a plain IE, Mozilla, etc... webpage.
something simple www.yahoo.com?

Linux (only tested on Ubuntu 7.04 and 7.10)
                            if (OS.equals("Linux")) {
                                Runtime rt = Runtime.getRuntime();
                                String[] args = new String[]{"sh", "-c", browserpath + " " + siteaddress};
                                rt.exec(args);
                            }Where path to executing app, in this case firefox, is provided.
I.e 'browserpath' is for example '/user/bin/firefox'

Similar Messages

  • Opening a secure web page from oracle forms for credit card validation

    Hi All,
    I searched for the topic in the forms forum but couldn't find a solution.
    Requirement: As per some compliance, our application cannot do a credit card validation from our forms application, instead we need to use a java code which a third party will provide ,it's an iframe (they say, i am layman when it comes to Java, don't know what is it), but they say that, within your forms application you call our iframe do the credit card validation over there get a token of response back from us and use this token as a confirmation in your application.
    Problem: I could not find a solution anywhere wherein i can call a web page from forms. Now, this web page should be modal, i.e. unless i close this page i cannot access my forms application. Please guide me if anyone has done that.
    Secondly if i could make it work, how will i communicate with this external web page, like getting back some token value and use it back in my forms application. I am completely clueless.
    As we are using Oracle designer for generating forms, we cannot use a bean type thing as designer does not have the bean-item type defined!
    Appreciate if anyone could provide me pointers for a solution to this problem statement.
    We are on forms 9i -- Version 9.0.2.11.0
    Edited by: the_wing_rider on Jul 8, 2011 5:10 AM

    The simple way to do it is to use a PJC (java bean) + apache httpclient library..
    If you have a webservice than you can use Axis library and wsdl2java to create java classes from wsdl.
    also you can use httpclient library to simulate http protocol (request/response actions)..
    (for example.. you have a credit card number.. you post this number to specified URL and then you parse the response from credit card validation server)..
    Post here some documentation (specification) on how to call the credit card validation .. (maybe it's a secure webservice?)
    Here you have a httpclient library documentation:
    http://hc.apache.org/httpcomponents-client-ga/tutorial/html/index.html
    Also you can implement bean area in designer.. If you need help I can post here how we do it in our project..
    also look here: Call webservice from PJC over https protocol
    regards
    Peter
    Edited by: Peterv6i on Jul 8, 2011 3:35 PM

  • Access existing web pages from '08?

    Here's the deal - I have had web pages set up with iWeb '06 w/Tiger, no problem. I installed (on a separate disk) Leopard, and iLife 08. So, if I boot from my Tiger disk, all is well, I can edit my web pages using iWeb '06.
    When I boot to my Leopard drive, and use iWeb '08, it just comes up to the default 'choose your layout' - it knows nothing about my existing .Mac web pages.
    How do I open my existing web pages from a different drive / partition using iWeb '08, that was created from iWeb '06 on a different boot drive?
    Many free beers await the first person to help me out on this. Thanks,
    John F

    Hi John,
    Have a look at the following page
    http://transfer.iwebfaq.org
    The only thing that changes for you is that you're transferring it from one drive to the other instead of from one computer to another.
    Please make a backup of the file before getting your site into iWeb '08 (and after if it was successful). Be sure to update the iWeb application before opening your website with it (get it to version 2.0.2)
    And note that once you updated the site to iWeb 2.0 it can't be edited in iWeb '06 anymore.
    I don't drink beer sorry...
    Regards,
    Cédric
    "I don't receive any form of compensation, financial or otherwise, from my recommendation or link"

  • Opening a web page from a JButton

    Dear all,
    I'm trying to program a JButton from my GUI program that will open up a web page on Microsoft Internet Explorer window.
    Can anyone tell me how to do this?
    Regards,
    Raheal

    Try the DOS "start" command:If all else fails,
    import java.lang.reflect.Method;
    import javax.swing.JOptionPane;
    public class test {
        public test() {
         public static void main(String[] args) {
          String osName = System.getProperty("os.name");
          String url = "http://www.slashdot.org";
          try {
             if (osName.startsWith("Mac OS")) {
                Class fileMgr = Class.forName("com.apple.eio.FileManager");
                Method openURL = fileMgr.getDeclaredMethod("openURL",
                   new Class[] {String.class});
                openURL.invoke(null, new Object[] {url});
             else if (osName.startsWith("Windows"))
                Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + url);
             else { //assume Unix or Linux
                String[] browsers = {
                   "gnome-open", "firefox", "opera", "konqueror", "epiphany", "mozilla", "netscape" };
                String browser = null;
                for (int count = 0; count < browsers.length && browser == null; count++)
                   if (Runtime.getRuntime().exec(
                         new String[] {"which", browsers[count]}).waitFor() == 0)
                      browser = browsers[count];
                if (browser == null)
                   throw new Exception("Could not find web browser");
                else
                   Runtime.getRuntime().exec(new String[] {browser, url});
          catch (Exception e) {
             JOptionPane.showMessageDialog(null, e.getLocalizedMessage());
    }

  • TS3276 i am unable to open web pages from email links on my ipad

    I am unable to open web pages from email links on my ipad

    A few more details might help, if nobody else recognizes this.   
    What happens when you try to open the links?
    Can you post an example of a link that doesn't work?
    Is there any particular source for the mail with the (bad) links, or is mail from all sources failing?
    If you happen to know it, what's the format of the mail message?  (Maybe the message is an image?)
    Do the embedded links work as expected from an OS X system running Mail.app, or some system and some other other mail client?
    To view the link in iOS: if you press on and hold your finger on an embedded link in most contexts, iOS will show a pop-up with the link contents, and will offer to copy it.  You can use that to acquire and post the link.  If pressing and holding on the link doesn't offer the pop-up, the format of the link itself may not be valid, or it might not really be a link.

  • How to open web pages from japplet??

    Hi
    Does anybody know how to open web pages from java japplet??
    Any help is apreciated!
    zick

    the getAppletContext() method of the Applet class will get you an AppletContext, with which you can call the ShowDocument(URL url) or ShowDocument(URL url, String target) method...
    check it out at http://java.sun.com/j2se/1.4/docs/api/java/applet/AppletContext.html
    have a good one :)
    Jay

  • Opening a WEB page from FORMS CS & WebForms

    Hi,
    We would like to open a Web Page from a forms running in
    client/server as well as from a form runningover the web.
    Over the web, we plan to use SHOW_DOWUMENT (Even tough it seems
    broken, on forms 6.0, the only way we have got it working was by
    using the parameter that overwrites the current page (the form),
    we cannot have it open an URL in another window)
    In C/S mode, the SHOW DOCUMENT does not work. What is the proper
    way to lauch an URL in a browser in C/S mode ?
    Is there a way to determine if we're running in CS mode or Web
    Mode ? We would like to use the same code both on the web and in
    C/S
    Example pseudo code:
    if (Running in CS Mode) then
    open the URL using C/S method
    else
    open the URL with show dowument
    fi
    Thanks
    null

    use '_blank' as parameter, not '_self'.
    Guy Dallaire (guest) wrote:
    : Hi,
    : We would like to open a Web Page from a forms running in
    : client/server as well as from a form runningover the web.
    : Over the web, we plan to use SHOW_DOWUMENT (Even tough it
    seems
    : broken, on forms 6.0, the only way we have got it working was
    by
    : using the parameter that overwrites the current page (the
    form),
    : we cannot have it open an URL in another window)
    : In C/S mode, the SHOW DOCUMENT does not work. What is the
    proper
    : way to lauch an URL in a browser in C/S mode ?
    : Is there a way to determine if we're running in CS mode or Web
    : Mode ? We would like to use the same code both on the web and
    in
    : C/S
    : Example pseudo code:
    : if (Running in CS Mode) then
    : open the URL using C/S method
    : else
    : open the URL with show dowument
    : fi
    : Thanks
    null

  • Each time I open Safari it opens the last web page I was at rather than my home page. How do I stop this from happening?

    Each time I open Safari it opens the last web page I was at rather than my home page. How do I stop this from happening?

    This is part of Lion's Resume feature (I assume you are on Lion).
    A couple of things you can do: System Preferences>General and deselect 'Restore windows when quitting and re-opening apps'.
    Also when you shutdown or restart make sure the following is unticked:

  • Open a web page from Oracle

    plz, i use oracle 10g but how can i open/ping a web URL from pl/sql code?

    Thank you venky but you should post the link as link and not between tags !
    [Re: Opening a web page from oracle
    SS                                                                                                                                                                                                                                                                                                                                               

  • Won't open homepage on open, won't open web pages from the menu 'open new window', Can't open menu button

    Ok, since update to version 31.0, I have been having some problems.
    I have tried doing everything stated in the support page about resetting, reinstalling, safe mode, restarting pc etc.
    First problem, when I open Firefox no web page loads. It just says New Tab and a blank white page. If I press the home button I am taken to my homepage which is google.
    Second problem, when I right click on a link and the menu pops up, if I click open in new window, a new window opens but it just says New Tab with a blank page and no URL information, just blank.
    Third problem, the Open Menu button just doesn't work at all. You can click all you like, that thing is not opening.
    I am really stuck as to what to do. I have only been using Firefox for about a month and t was good until these problems. If I can't resolve it, I will have to use another browser as it is really annoying.
    I am using Windows 8.1 by the way and have scanned my computer thouroughly for both virus's and malware.

    Hi zenithtwc, to test whether this is a settings issue, could you do a three-minute experiment?
    '''Create a new Firefox profile'''
    A new profile will have your system-installed plugins (e.g., Flash) and extensions (e.g., security suite toolbars), but no themes, other extensions, or other customizations. It also should have completely fresh settings databases and a fresh cache folder.
    Exit Firefox and start up in the Profile Manager using Start > search box (or Run):
    firefox.exe -P
    ''Don't delete anything here.'' Any time you want to switch profiles, exit Firefox and return to this dialog.
    Click the Create Profile button, assign a name like Test731, and skip the option to change the folder location. Then start Firefox in the new profile you created.
    Can it reach the internet?
    When returning to the Profile Manager, you might be tempted to use the Delete Profile button. But... it's a bit too easy to accidentally delete your "real" profile, so I recommend resisting the temptation. If you do want to clean up later, I suggest making a backup of all your profiles first in case something were to go wrong.

  • HT202225 I keep getting pop ups on my iMac for the first time in 6 years after one of my kids tried to watch football through crichd tv. safari now opens with smart search engine rather than google every time i try to open a new web page.

    Ever since one of my kids tried to watch football on a website called crichd tv I keep getting pop us come up like Mackeeper and every time i try to open a web page it comes up with Smartsearch rather than google which is my preferred search engine in preferences. I have blocked extensions and changed homepage to google but this Smartsearch keeps overriding. Also a thing called MacKeeper keeps popping up I have followed the instructions to uninstall but the file it says to move to trash from the Applications folder but it simply isn't there or anywhere else. The file to uninstall Smartsearch is also not where they say it is in Library>frameworks>
    Very frustrating from going from a perfectly working system to a now very frustrating and annoying pop ups coming uo after every time i open a new web page.
    Any help or assistance in this matter would be very much appreciated.
    Russ

    You (or your kids) inadvertently installed adware. You do not need to download or install anything to fix it.
    Any tips on how to stop it from happening?
    Yes. To learn how to avoid it in the future read How to install adware.
    If you require them, Apple's removal instructions are linked in the Recovery Procedure near the end of that document. Read and follow them carefully. Pay particular attention to the easily overlooked passages directing you to restart your Mac when required.

  • How do i Hyperlink to a web page from a java application?

    How do i Hyperlink to a web page from a java application using internet explorer as my default web browser?

    It's very simple.You can start any Application with the class Runtime. The command is an array consisting of the path of .exe and the file to be open.
    String [] cmd={path of IE+Filename.exe,"URL of your website"}
    try
    Runtime.getRuntime().exec(cmd);
    catch (Exception e)
    System.err.println(e.toString());
    }

  • Captivate 6: Can I hyperink to a web page from an image?

    In Captivate 6, can I hyperlink to a web page from an image?

    You can fill a smart shape with the image using the Texture button, but beware: choose a shape with the same size as the image. Maybe Sreekanth is telling the same, but I didn't get his 'assign custom image to it'? And if you want to have a pause for a shape button, you have to check it in the Timing accordion.
    Another approach is to put a click box on top of the image. You can open the URL in another window using the small triangle drop down list, and be sure to uncheck Continue Project to avoid that the playhead will continue.
    Lilybiri

  • Web pages from one computer to another

    Hi,
    While in Italy for two months I made a large number of web pages on .mac from over 1000 pictures. These pages are on my MacBook.
    When I returned I successfully transferred the pictures from my MacBook to my iMac.
    HOWEVER, neither the smart albums or web pages (not smart) transferred.
    Is it possible to export web pages from Aperture from one computer to another? How?
    But how do I move the web pages from my portable to my desktop machine? -- And for that matter can you move smart albums from one machine to another?
    Thank you.

    Scott Grabinger wrote:
    Is it possible to export web pages from Aperture from one computer to another?
    yes. aperture is very flexible working with web sites and projects/albums
    How?
    what I do is build the web site, example, web journal and then "Export Web Pages." aperture will make a folder of your site with all the css, indexes, photos etc. you can then drag and drop this folder anywhere you'd like.
    I export that folder into my local_site root folder in Dreamweaver and tweak the css from there
    you can also use iweb
    But how do I move the web pages from my portable to my desktop machine?
    see above
    -- And for that matter can you move smart albums from one machine to another?
    yes. select the project in the project pane and export the project
    in the other computer, open aperture and File>Import>Project... or Folders into Project (depending how you exported in the first place)
    victor

  • Is there a way of wiping ALL Safari data, i.e. restoring Safari ? I think my Safari has a virus..as every time I open it, a web page called 'search quick' comes up. Its bombarded my Safari with constant pop up adverts almost every time I click!

    is there a way of wiping ALL Safari data, i.e. restoring Safari ? I think my Safari has a virus..as every time I open it, a web page called 'search quick' comes up. Its bombarded my Safari with constant pop up adverts almost every time I click!

    There is no need to download anything to solve this problem. You may have installed a variant of the "VSearch" ad-injection malware. Follow Apple Support's instructions to remove it.
    If you have trouble following those instructions, see below.
    Malware is always changing to get around the defenses against it. This procedure works as of now, as far as I know. It may not work in the future. Anyone finding this comment a few days or more after it was posted should look for a more recent discussion, or start a new one.
    The VSearch malware tries to hide itself by varying the names of the files it installs. To remove it, you must first identify the naming pattern.
    Triple-click the line below on this page to select it, then copy the text to the Clipboard by pressing the key combination  command-C:
    /Library/LaunchDaemons
    In the Finder, select
              Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    A folder named "LaunchDaemons" may open. Look inside it for two files with names of the form
              com.something.daemon.plist
    and
               com.something.helper.plist
    Here something is a variable string of characters, which can be different in each case. So far it has always been a string of letters without punctuation, such as "cloud," "dot," "highway," "submarine," or "trusteddownloads." Sometimes it's a meaningless string such as "e8dec5ae7fc75c28" rather than a word. Sometimes the string is "apple," and then you must be especially careful not to delete the wrong files, because many built-in OS X files have similar names.
    If you find these files, leave the LaunchDaemons folder open, and open the following folder in the same way:
    /Library/LaunchAgents
    In this folder, there may be a file named
              com.something.agent.plist
    where the string something is the same as before.
    If you feel confident that you've identified the above files, back up all data, then drag just those three files—nothing else—to the Trash. You may be prompted for your administrator login password. Close the Finder windows and restart the computer.
    Don't delete the "LaunchAgents" or "LaunchDaemons" folder or anything else inside either one.
    The malware is now permanently inactivated, as long as you never reinstall it. You can stop here if you like, or you can remove two remaining components for the sake of completeness.
    Open this folder:
    /Library/Application Support
    If it has a subfolder named just
               something
    where something is the same string you saw before, drag that subfolder to the Trash and close the window.
    Don't delete the "Application Support" folder or anything else inside it.
    Finally, in this folder:
    /System/Library/Frameworks
    there may an item named exactly
                v.framework
    It's actually a folder, though it has a different icon than usual. This item always has the above name; it doesn't vary. Drag it to the Trash and close the window.
    Don't delete the "Frameworks" folder or anything else inside it.
    If you didn't find the files or you're not sure about the identification, post what you found.
    If in doubt, or if you have no backups, change nothing at all.
    The trouble may have started when you downloaded and ran an application called "MPlayerX." That's the name of a legitimate free movie player, but the name is also used fraudulently to distribute VSearch. If there is an item with that name in the Applications folder, delete it, and if you wish, replace it with the genuine article from mplayerx.org.
    This trojan is often found on illegal websites that traffic in pirated content such as movies. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Then, still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

Maybe you are looking for

  • How to update sales orders using B1WS in SAP 8.8 PL18

    Hello all. We are having a problem updating sales orders using Sap Business One Web Service ( B1WS ). We are running SBO 8.8 PL18, MS-SQL 2008, and all is fine when using the SBO client. But when it comes to updating sales orders through B1WS we just

  • Issue in Custom Filter in PWA of Ms Project Server 2010

    Hi, i am facing an issue on setting a cutom filter in the Project Center view of PWA. I am setting a custom filter and it works fine. Projects are filtered as per the filter. However, on selecting the filter for editing, I get a message viz. "Failure

  • '*' in Summarization Levels for CO-PA

    Hi All, What is the role of table "TKETRLF" in Account based CO-PA. When I try to check the CO-PA Datasource it is giving me an error. I tried to debug it and see where exactly is the problem. I found that the standard program is trying to read the d

  • Iphoto - slideshow in trash freezing Iphoto

    I moved an iphoto slideshow to trash yesterday and now cannot empty the trash as any attempt to click on the slideshow or empy the trash brings up the  rainbow ball  and I have to force quit.  I have tried reorganising my itunes media files but they

  • Understanding the spec for wsdl 2.0

    Hello, I searched the w3.org for the spec for wsdl 2.0 and I found these: -primer -core -adjunct Can anyone tell me how they relate to each other and which are most important?? Thanks in advance, Julien.