How can I execute an IE browser window from within my java application?

I am programming a java application that requires me to execute a browser application and point to a specific web site. How can I do this? I cannot seem to find any examples on the web.

Hi Heals,
This forum is for discussing Measurement Studio for Visual Basic and is not really a good place to ask general purpose Java questions. I suggest searching one of the comp.lang.java.* newsgroups at http://groups.google.com/.
Off the top of my head, though, I would say take a look at the Runtime.exec method.
- Elton

Similar Messages

  • How can I open a new browser window from UIX?

    I need to open a new browser window from an event handler. How that can be done? HELP!
    Thanks!
    Martin Patrici

    HTML doesn't really let you do this on the server side; the client is in charge
    of creating new windows, not the server.
    If you know that clicking a certain link/button, etc. will always raise a new window,
    then you should use Javascript or "targetFrame" accordingly.
    If the decision will only be made on the server side, then you could reload the current
    window, only this time use an "onLoad" on the <body> to raise a window.

  • How can I open the Wndows Browse window from forms..

    I am using forms 5.0 and at run time I want to open the
    MSWINDOWS "BROWSE" window.Can any body help me?.

    I found this example in a book, which is useful for retrieving an
    image file from a local drive and inserting it into a table.
    I hope you find this helpful.
    DECLARE
         v_dirname          VARCHAR2(255);
         v_filename          VARCHAR2(255);
    BEGIN
         v_dirname := 'C:\';
         v_filename := get_file_name(v_dirname, NULL,
              'Bitmap file (*.bmp)|*.bmp|'                    ||
              'JPEG file (*.jpg)|*.jpg|'                         );
         IF v_filename IS NOT NULL THEN
              read_image_file(v_filename, 'ANY', 'av_data_image.blob_data');
         END IF;
    END;

  • How to call up an executable file (eg. MSPaint) from within my java program

    How to call up an executable file (eg. MSPaint) from within my java program

    Ummm... why would you want to get MSPaint anyway? Even in the absense of real software, Java's own graphics tools are way more sophisticated - with a little time and effort, you could write a simple paint package that beat MSPaint hands down.

  • How do I open a new browser window from Flash

    I wish to open a new browser window from Flash and when the new window closes to return to the location from whence I started.
    ThomasChen

    The command to open a new window would be the "_blank" part of a command to link to a web page in the code below.
    navigateToURL(new URLRequest("http://www.anothersite.com", "_blank"));
    As far as the new window closing and getting back to where you were in the original window, I don't understand where that original window might have gone to... You should be wherever you last left it.

  • How can I open a new browser window!!!  Very Challenging!!!

    I have a form (name=MAIN) with a submit button (name=Button A). Button A opens a new browser window (name=SEARCH), via an HTML form target tag (<FORM TARGET=A>). Window SEARCH has multiple submit buttons (10-15). Each button has a different action which is handled by a servlet (form name and button name are passed to a servlet as a hidden field in the form to determine the action), which is setup to be an action handler. When a button in the SEARCH window is clicked the results are retrieved from an Oracle database and should be displayed in the text fields in window MAIN.
    For example, some results may be displayed in window SEARCH (_self) and and other results may be required to be sent to window MAIN depending on the button clicked.
    How can I setup window SEARCH so each button can have a different target window (some may be window MAIN or other windows)? Using a form tag for each button doesn't give desirable results. Is there a way to do this with JSP or some form of Java code?
    A form tag can only have one target. Basically I have one form with multiple submit buttons. How can I get it to send each submit buttons results to a specific window?
    Thanks.

    <!-- try this -->
    <script language="JavaScript1.2">
    function mysubmit(mytarget){
    document.myform.target=mytarget;
    document.myform.submit();
    function validation(myform){
    //validation stuff
    return [true | false];
    </script>
    <form target='none' name='myform' action='myaction.jsp' method='post' [onsubmit='return validation(this)']>
    <input type=button name='submit1' value='submit1' onclick='mysubmit("target1")'>
    <input type=button name='submit2' value='submit2' onclick='mysubmit("target2")'>
    <input type=button name='submit3' value='submit3' onclick='mysubmit("target3")'>
    <input type=button name='submit4' value='submit4' onclick='mysubmit("target4")'>
    </form>

  • How can  we popup "Operating System Browse Window " in OAF?

    Hi...
    I have "Import" button on page.
    I want to display "Operating System Browse Window:" when user hits import
    button.
    This Browse window will navigate user to choose a file.

    Hi,
    You can use the component messageFileUpload for that. You can find some instructions on using it in the OAF Developer's Guide, Chapter 4: Implementing Specific UI Features, on the section "File Upload / Download". When you put a messageFileUpload on the page, it automatically renders the button to call Browse Window.
    Thanks!
    Thiago

  • How can i stop iTunes 7 for Windows from opening automatically whenever I browse my Music Folder in Windows?

    Whenever I'm browsing through my files on my PC, if I open the iTunes folder inside my music folder, iTunes automatically launches.  If I close iTunes without browsing away from this folder, it simply re-opens itself.
    edit:  I have no Apple devices currently connected to the computer and WiFi Sync is disabled.
    How can I stop this behaviour?
    Message was edited by: azharahs

    Olliev wrote:
    How do I disable itunes on my iphone 4s?
    iTunes app on the iPhone is for purchasing music.
    The fact the iPhone starts playing when connected to your car stereo is a function of your car bluetooth system.
    Consult your car dealer/bluetooth system manual.
    I have attempted to delete all music from the device (so there would be nothing to play), but 1 song remains in the iphone memory and I have been unable to delete that song.
    Connect the iPhone to computer and select it in iTunes.
    Click the Music tab and uncheck Sync music.
    Then click Apply at lower right of iTunes.

  • Can I open a new browser window from a movie clickbox

    Hi,
    This is a last question from me, I hope. (I'm within a month
    of delivery, and my boss keeps saying 'a user's asked for this or
    that', but I'm meeting many of their requests with technical
    obstacles. Oh dear.)
    Here's the question: From a caption clickbox within a movie,
    can I link to a new browser window? (I have a Help button at the
    top of my movie and a user tester rightly pointed out that it
    breaks them out of their movie and they can't get back. So my only
    solution is to open it in a new browser window, but as I'm within
    the movie, I need to link to the new window from a caption or
    button, not an html page.)
    If a Javascript command would work, could I get the exact
    code to put in the box? I haven't been able to get any
    Javascripting to work through Captivate.
    If nothing works out, I'll have to scrub the Help button from
    every page, but I'd rather be sure before I do it.
    Thanks in advance,
    Kim

    Hi and thanks for both of the replies.
    Phew! I love it when there's a way out of my problem! Is it
    my imagination or are the options: Current, New, Parent and Top not
    described in the Captivate help? What is the Parent? I would have
    thought a window would have spawned a child. And I guess Top is a
    new window that's always on top? Is it described in the help
    anywhere beside the page I found that doesn't describe it? (I guess
    so far, I've been blindly and successfully using Current.)
    I assume I can't remove the toolbars on my new windw without
    going through an extra link? If that's the case, I can live with
    that. I wouldn't want to make the user click two links just for a
    help page.
    Thanks again,
    Kim
    PS. No wonder my Javascript never works if I can't even
    notice the options!

  • How can I call a pop up window from a java class ?

    Hi,
    I am developing a web app. I would like to call a windoz pop up from a java class.
    How can i do that ?
    Thanks

    user504072 wrote:
    It was possible to do it in ASP .NET even from the server side with the method Page.ClientScript. What do you think what Page.ClientScript stands for?
    I's an encapsulation for the JavaScript code required and hides the separation between frontend and backend. There was a reason why so many developers stick to the MVC-pattern wich ist violated here.
    I did not know it is not possible to do the same thing in Java.I'ts not a task of the backend to layout the user interaction GUI.
    bye
    TPD

  • How to spawn and reuse separate browser windows from CAD?

    I'm currently working to integrate some of our existing web applications with CAD.  My original plan, before I got my hands on CAD, was to spawn new windows from the mbedded browser via targetted hyperlinks or JavaScript.  However, I've learned the hard way that CAD's integrated browser makes every attempt to open a new window in a new tab.  Worse, even if you name your target window, CAD seems to refuse to re-use the previously opened tab but just spawns a new one.
    This is quite problematic.  The agents all have two monitors to faciliate more screen real-state and showing information side-by-side.  Forcing all websites to show in CAD's tabs thwarts this.
    I've considered launch Internet Explorer as a separate application, instead, but that is a degree mroe complicated in building a dynamic URL.  I believe it would also spawn a new window each time, meaning agents would have to re-log-in every time.
    If I disable the integrated browser, will it leverage Internet Explorer on its own?  Or will it just disable HTTP application integration entirely?
    (Am I wrong to be entirely frustrated by such a handicapped web environment?)

    From the sound of it, he was using javascript inside of the web application to open a new window. This was automatically being forced to open in a new tab by CAD, similar to clicking on a link. There is no method I am aware of to directly instruct CAD to open a request in a new tab.

  • How can I forward to an external URL from within a DataAction?

    This is a very simple question I'd guess -- but what I thought was the obvious answer turned out not to be. Keep in mind I am using struts, and the URL is constructed dynamically, so I cannot place a struts forward action in the struts-config.xml file. Here is what I tried from within my DataAction's prepareModel() method:
    actionContext.setActionForward(newURL);
    actionContext.setRedirect(true);
    This didn't work -- nothing happened. Anyone have any ideas?
    Brad

    In our application, we had a forward named Cancel, but for it to work properly we wanted a Redirect to occur to another page. The redirect was not working until we created a new actionforward and set th action forward to it as seen below. You can't programmatically change the forwards at runtime without error, from what I remember.
    DataActionMapping mapping = ctx.getActionMapping();
    ActionForward af = mapping.findForward("Cancel");
    ActionForward afNew = new ActionForward();
    afNew.setPath(ctx.getHttpServletRequest().getSession().getServletContext().getInitParameter("rootURL") + af.getPath());
    afNew.setRedirect(true);
    ctx.setActionForward(afNew);

  • How can I customize the opened browser window

    I need to customize the browsers to tell them not to display the address bar or any toolbars. This will be a stand alone presentation that won't connect to the web but use the browser to present. I don't want any browser details. As close to a frame as possible like a pop up window.

    When you post a question and then repost more variations of that question, the threads can grow very confusing.  This one has been answered in one of your other threads.  I am locking it.

  • How can i pull up my browsing history from a month ago?

    I recently purchased a pair of Oakley sunglasses off of a website around September 12, 2011. The invoice never came through my email, and I have not received them yet! I can't remember the name of the site which is just awful. I tried doing the steps in the forums, but I have been unable to bring up my browser history. Nothing is showing up there just the history for today! And I know that is wasn't bookmarked, so no luck there either. Is there anything else I can try? Thanks for your help.

    You probably have firefox set to only remember history for one day.
    # At the top of the Firefox window, click on the Firefox button (Tools menu in Windows XP) and then click Options.
    # Select the Privacy panel.
    # Set Firefox will: to Remember History.
    As to getting your history back from a month ago, I do not think you can find that unless your network administrator keeps a log of all network activity

  • How can native executable files be started from within a Java application.

    Hi Everyone,
    I am currently working on an application that will have the ability to start a program within Windows. What I intend on having is a button within my GUI that can start Microsoft Word. I am completely lost as to where I should begin in order to make this work. If anybody has any pointers they will be greatly appreciated. Thanks.
    Regards
    D

    Hi ,
    easy:
    Runtime.getRuntime().exec(new String[]{path,name});
    see:
    http://java.sun.com/j2se/1.3/docs/api/java/lang/Runtime.html
    HTH

Maybe you are looking for

  • Problem regarding sy-ucomm

    hi all, i want to know what does this statement mean?   IF sy-ucomm EQ 'Percentage 001' thanks, Poonam Edited by: Poonam Naik on Sep 22, 2008 4:02 PM

  • RAR5074 - what is the root of this problem?

    Hello i have posted this msg before but seems i am still far from a solution. I deployed an webapp created by Java Studio Creatro 2. After approx 1/2/3 days in random any action that requires access to the DB, the app gets stuck. I checked the error

  • Fan problems after nvidia update

    After I installed the newest driver from nvidia the fan is out of control! It goes on and off non-stop. Anyone else experienced this? My computer is a Dell M1330 laptop.

  • Naming template problem in Lightroom 4

    My file naming template is working differently.  It is a template from Lightroom 3 but now it is adding an underscore before the .jpg so it looks like  1234_.jpg.  The underscore wasn't there before and I can't figure out how to get rid of it.  On th

  • How to install driver for Intel HD on Satellite C660-22V?

    Hi I could not reply below so here is my question. http://forums.computers.toshiba-europe.com/forums//thread.jspa?threadID=68240 As*** I do not know if you work for toshiba but what else am I suppose to do if the driver installed on a new laptop does