How to invoke a HTML page from a GUI application.

Use JFrame to devewlop a GUI.
Add a Button to the GUI.
Click the ADD Button.
Add ActionListener to the Button.
Click ADD Button.
A HTML page with a hard coded path like index.html has to open in a browser.

Hi there,
get Runtime Environment at action performed.
after getting Runtime execute following command,
Runtime.exec("iexplore.exe","java.sun.com");
u should specify location for iexplore.exe and url as parameter to pass to browser.
I think it might work for u,
Dhwanit Shah

Similar Messages

  • Creating a HTML page from the J2ME application

    Hi,
    I am developingan application in J2ME. Can anyone of you out there, help me whether there is any way I can generate a HTML page from the application.
    I have the data but I don't know ho to create a HTML page from a J2ME application.
    Any document or any code will prove handy.
    Thanking in anticipation.
    Ashish

    When you say that "you have the data" you mean that you have HTML code data(<html><body>Hello World</body></html>)? If yes you should create an algorithm that "read" html tag and display text in the appropriate layout/font/size/color...
    A solution could be simplify your HTML code (server side), so you can easly "decode" and display text.
    Giovanni
    Italy

  • How to invoke a jsp page from java which does not use Servlets?

    Hello,
    I am working in Documentum. I am trying to invoke a jsp page from another java page which does not use Servlets.
    I tried doing this by just instantiating the java class related to the jsp page from my present java class.In my java class related to the jsp page, I have defined onInit() and onRender() methods.
    Now, I am trying to call the jsp page from my present java class by just instantiating the java class related to the jsp page. This throws a java.lang.NullPointerException.
    Any comments or suggestions on this.Any help would be appreciated.
    Thanks,
    Ranjith M.V

    RanjithM.V wrote:
    Hello,
    Thanks for the reply. One important thing I forgot to mention. I am also using xml component.And?
    As this is the standard way used for coding in Documentum, I do not want to use Beans.Well, JSP's should, in and of themselves, contain no functional code. It should all be only display.
    Without that is it not possible?What did I say? I said,
    masijade wrote:
    It is possible, but I very, very, very, much doubt, that it would be worth the effort.And, if you don't know how, a forum is not truely going to be able to help you implement it (at least not in less than a few years time, at which point it would be outdated).
    >
    Appreciate your understanding and help.
    Thanks,
    Ranjith M.V

  • How to call an HTML page from a JSP

    Hi,
    I am getting problem in calling an html page from a jsp
    The Sample code is
    int rowsAffected = stm.executeQuery("Select * From Table");
    if (rowsAffected == 1)
    {   %>
    <jsp:forward page="xyz.html" />
    <%

    See the other forum where you asked the same question http://forums.java.sun.com/thread.jsp?forum=45&thread=158981
    Please refrain from cross posting.

  • How to invoke Custom HTML pages on Dashboard page when running OBIEEon AIX

    Hi,
    i am facing an issue with regards to invoking a custom HTML page( say definitions.html) using html code inside a text section( with html markup) on a dashboard page.
    I have performed the following configuration on Windows and it perfectly works well
    However i can get the same to work on AIX where i actually needed it to work:)
    Could any of you please provide any insights over this issue pls? am i missing something obvious? Appreciate your inputs.
    Here is the description of the configuration performed.
    Created a HTML file called definitions.html
    copied the file in the following folders
    OracleBI\web\app\res
    OracleBI\oc4j_bi\j2ee\home\applications\analytics\analytics\Missing_
    I have created a new folder called _Missing.
    I restarted the app server
    HTML code on the Dashboard Page ( used Text section with HTML Markcup)
    <b>Help
    I have checked the permissions on the custom page and it loosk fine. I have added <HardenXSS> false</HardenXSS>tag to my instanceconfig.xml but not luck yet
    Appreciate your inputs
    Thanks

    The easiest thing for you to do is to download the Oracle BI SampleApp (http://www.oracle.com/technetwork/middleware/bi-foundation/obiee-samples-167534.html) and follow their instructions for install/creating/deploying the analyticsRes application on the Oracle BI Application Server. This will allow you to have a URL such as http://myserver.obiee.com:9704/analyticRes/definitions.html on the same server system as your Oracle BI server. This way the port and domain are the same as your Oracle BI Server and you can simply place any additional web based file in that deployed application path to reference on your Oracle BI Server.

  • How to call a html page from servlet

    i want to link a servlet to a html page, if i use requestdispatcher, it says XXX.html is not available, can anybody help

    Can you be more specific about what you're trying to do? Can't read your mind =). But if you mean you want to just have an static HTML page such as a header read by the servlet you can you the requestdispatcher include().
    Create a servlet to generate a page, and then map it as /getPage in the web.xml file. Then you can use:
    // header
    RequestDispatcher rd = ...getRequestDispatcher("/getPage");
    rs.include(req, res);
    // the rest of the servlet output
    // and you can do another one for the footer down here
    rd = ...getRequestDispatcher("/getPageFooter");
    rs.include(req, res);
    and it'll output the HTML in the servlet.
    Hope this helps

  • How to use custom HTML page in flex web application with out using iframe

    Hi all,
              I have to import a custom HTML page (that has got links to another html pages) inside my flex web application and i dont want to use IFrame. Can you please suggest me with best example.
    Please help me out as i'm new to flex.
    Thanks,
    Swetha.

    Hi, there:
    Best thing to do is to start with the default login.html page, and then modify it. The login screen is fairly complex and it's easy to just miss a JS function you need to call. To get to default page, you would need to do one deploy (to simulator or whatever), and then look for login.html page in the temporary Xcode or Android project generated from the deployment. It should be under the "deploy" directory in your JDev workspace.
    You can also see all the framework JS files and CSS files that way as well.
    We have had customers implementing custom login screen so we know it can work, but they all had to start with the default login screen and then modify it.
    Thanks,
    Joe Huang

  • How to Load a html page into Flex the application?

    I want to load separate html page in to my flex application.
    for example
    think I am in my shopping cart and I wanna buy something and pay for that.Then I am try to pay they will load a separate html page into my shoipping cart.
    How can I do that inside flex application?
    Any ideas are appreciated..
    thnx

    Hi snkd,
    You need to make use of iframe to load html content in Flex application.
    Check out the link below...there is also source code included..
    http://www.deitte.com/archives/2006/08/finally_updated.htm
    Thanks,
    Bhasker

  • How to open NEW PORTAL PAGE from current portal page ?

    I'm very confuse with my problem.
    I have 2 portal page.
    portal page I has 2 portlet : portlet A & portlet C.
    portal page II has 2 portlet : portlet B & portlet C.
    Now my customer want : start with portal page I, when i submit portlet A, program will open portal page II.
    I don't know the way to call new portal page from current portal page. Help me, please.
    Thanks.
    Edited by: young_hero on Oct 30, 2008 1:12 AM

    Could you please help me how to call a .html page
    from a Pl/Sql procedure or trigger ?
    Thanks & Regards
    Kalyani KothaKalyani,
    Could you explain a little more exactly what you're trying to acheive? I'm not quite sure what it is you're asking for. Are you asking: "how would you/can you open a browser and direct it to a URL with PL/SQL?"
    Earl

  • Opening a HTML page from a Navigation link

    Hi All,
           I have a requirement of adding a new link at the navigation bar of WebClient. This link will open a static html page with some contents. I have created the page required for it. But I don't know how the link will be created at Navigation bar and how to open the html page from it. I am using the SAP CRM 5.0 and I want to add the link at Default profile.
      Please help.
    Thanks
    Indranil Datta

    Hi Sujit,
        Thanks for your help. I have created a new navigation bar entity and added that in a customized profile. I have also mentioned the page name and path for that link from tran SPRO. I found that link after logging into IC WebClient. But that link is not connected with the required page. If I click on the link page, it get refreshed but without any change.
    Thanks,
    Indranil Datta.

  • Oppening a html page from a swing applincation

    How to display a html page from a user interface developed in swing(specially via a JButton.
    please help me!!!!!!!!!

    look at
    developer.java.sun.com/developer/Books/ gui/swing2/swing2_chap20.pdf
    source :
    http://www.manning.com/sbe/files/swing2e/Chapter20.zip
    It's an simple HTML editor

  • How can I display the HTML page from servlet which is called by an applet

    How can I display the HTML page from servlet which is called by an
    applet using the doPost method. If I print the response i can able to see the html document. How I can display it in the browser.
    I am calling my struts action class from the applet. I want to show the response in the same browser.
    Code samples will be appreciated.

    hi
    I got one way for this .
    call a javascript in showDocument() to submit the form

  • How to Create HTML page from portal

    Hi
    I have a requirement to create html pages from portal.
    There will be an author who can choose document type as HTML
    and then he will write html codes on saving it should be saved as HTML doc in UCM.
    and publisher should be able to display it on portal(may be using content presenter).
    please help me in this. I know there is rich text editor task flow which can save a doc as doc file.
    and in spaces we have option of creating HTLM file but i don't know how to do it for my portal.
    Thanks

    A better way would be to create the page using approach in this blog:
    https://blogs.oracle.com/ATEAM_WEBCENTER/entry/content_presenter_cmis_complete
    That way the page can be edited inline and the html author need not upload html to ucm everytime.

  • Adobe Configurator - how to invoke action or script from html widget?

    How to invoke action or script from html wiget in Adobe Configurator?
    Please help! I tried to make it about 5 hours!
    I need something like that:
    I click link or image
    ...and it runs action.
    Thanks!

    If you click on the question mark ( as shown below) on the right of Configurator  2 window
    the user guide installed on your computer within Configurator 2  will open
    Anyway once you have your action or script button  in your panel you must select it and configure it in the  inspector palette

  • How to cache a content item like a Static HTML Page from UCM to Coherence/C

    Hi All,
    How to cache a content item like a Static HTML Page from UCM to Coherence/Coherence Web?
    Thanks

    Hi,
    Could you explain your use case in more detail?
    It does not look like proper use of coherence to cache static content - it more suited for dynamic content like user session etc.
    Adam

Maybe you are looking for

  • Where did my vids go? Please help While downloading my pics and vids half of vids can't open

    Today I mistakenly tried to download all of my saved pictures and videos from my saved library without having ITunes open. Just tried to put on a flash drive... While I was saving all of my pictures half of my videos went grey and said 0:00 for their

  • Problem Disabling Beats Audio w/ Windows 10

    Hi - I have  problem with Beats Audio Control Panel after upgrade windows 8 .1 to windows 10. I updated the audio drivers which didn't solve the problem.  Product Name: Hp Pavilion dv7-7051swProduct Number:  B6G49EA#AKD Driver Versions:IDT High Defin

  • How can i export the survey to word ?

    Hi, I just finisshed a surevy and my professor wants me to include the questionair in the research paper, I tried but it didn't wokr with me, Can anyone tell me what to do..

  • I thought it was aligned...

    I just published this site for a friend of mine: www.paintingbydarlene.com and it looks fine in all browers on my laptop as well as my iPhone, but when my friend looks at it on his computer, the aligning is off. When I look at it in my computer at wo

  • Weather Channel App. Uses lots of background data

    The Weather Channel app uses alot of background data, if I restrict background data, it says it may cause an app to stop working when only mobile available.  Does anyone know of another weather app that would not use up so much data? Or is there a se