Applet. Is it new while browser opens html file?

I want to know if applet is new every time. I have an applet in html. it works to write some strings so I use param to transfer new string content. do it takes time to download applet everytime while the new string transfer to html file? in fact, browser get asp file.
by the way:
I am confused about that I should deal string by applet in browser or in server? which on is the better? I use w_server and asp.
Thank you for your attention.

Your question is a little unclear. You may want to start here (below). It explains the basics of how an applet works and its lifecycle.
http://download.oracle.com/javase/tutorial/deployment/applet/index.html

Similar Messages

  • How Can i open Html file in a Browser from Jar file

    Hi
    i am having Html help files inside my Jar file ... if i use
    getclass().getRource("\lib\start.html");
    it is not opening ... so i have to ship seperate folders for html files along with jar files.... can anyone give the solution to have(open) html files inside the jar file and to open then in a default browser of any OS
    Regards
    Ganesan S

    the follwing method i have used to open html file ...
    so to access html file i am shipping resources folder with jar file ..
    private void openHtmlPages(String pageName) {
         String cmd[] = new String[2];
         String browser = null;
         File file = null;
         if(System.getProperty("os.name").indexOf("Linux")>-1) {
              file = new File("/usr/bin/mozilla");
              if(!file.exists() ) {
              }else     {
                   browser = "mozilla";
         }else {
              browser = "<path of iexplore>";
         cmd[0] = browser;
         File files = new File("");
         String metaData = "/resources/Help/Files/"+pageName+".html"; // folder inside jar file
         java.net.URL url = this.getClass().getResource(metaData);
         String fileName = url.getFile();
         fileName = fileName.replaceAll("file:/","");
         fileName = fileName.replaceAll("%2520"," ");
         fileName = fileName.replaceAll("%20"," ");
         fileName = fileName.replaceAll("jarfilename.jar!"," ").trim();
         cmd[1] = fileName;     
         try{
              Process p = Runtime.getRuntime().exec(cmd);
         }catch(java.io.IOException io){
                   //Ignore
    can anyone give me the solution..???
    Regards
    Ganesan S

  • Open html file from Applet

    Hi,
    I need to open html file from applet, the html file is placed in my local system, it is not open. the code is below, please can u tell where i did wrong.
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    <applet code="Resource.class" width="400" height="400"></applet>
    public class Resource extends Applet implements ActionListener
    Button b = null;
    public void init(){
    b= new Button("Click");
    add(b);
    b.addActionListener(this);
    public void actionPerformed(ActionEvent ae){
    try
    URL adress = new URL(getDocumentBase(), "html_code.htm");
    getAppletContext().showDocument(adress, "_blank");
    System.out.println("Execut inside"+adress);
    }catch(MalformedURLException e){
    System.out.println("Eror in Display");
    }

    Don't cross post
    http://forum.java.sun.com/thread.jspa?threadID=633500

  • Can't import/open HTML files in Fireworks CS4

    I'm trying to import/open HTML files into Fireworks CS4 to do some redesigning. I inherited the job of redoing my companies website and we believe the person who created our website created the site using Dreamweaver 8. Unfortunatley that person moved on to a new job across the country and we can't ask him exactly how he created our website.
    When I try to open some of the HTML files in FW I get the message: "Could not open the file....Fireworks could not find an HTML table in this file". Next I tried creating a new, very simple HTML page in Dreamweaver CS4 that contains just a few lines of text and 1graphic (we just bought the CS4 web suite). Again, I get the same error.
    Other files give me a slightly different error message when trying to open them in FW, "The HTML document contains one or more images with absolute web addresses for the source. Fireworks cannot handle these images. --click OK-- (next error message) Could not open the file. Fireworks has encountered a problem with the HTML in this table. Verify that the HTML is valid"... and then it closes and nothing loads into FW. Bummer.
    I've searched on these forums and can't find any solutions to this problem although I found a few people experiencing the same problem.
    Do I need to do something to the Dreamweaver created HTML's to get them to open in FW? Any help would be appreciated.

    Fireworks is a graphics editor that can export code; it is not an HTML/code editor.
    If you have exported HTML from Fireworks, you ought to be able to re-import that, but I would think most people who use Fireworks exported code would just modify their Fireworks document and re-export. (Fireworks' code is not robust and it is only intended for mockups and prototypes. Fireworks is not intended for developing and maintaining live Web sites; Dreamweaver is.)
    If your developer used Dreamweaver, then I really don't expect that Fireworks would be able to import that, nor any code that isn't in exactly the format that it can export. If you know your developer used Fireworks, then you need to look for .png files. Fireworks uses an enhanced version of the PNG format for its native document format.
    If you are making small adjustments to your site, then you might be better off working in Dreamweaver. If you're doing a site re-design, then Fireworks is an excellent tool for laying out your design and producing your graphics, but you will, at some point, need to move over to Dreamweaver for coding.

  • Can No Longer Open html files

    I Fireworks 8, I was able to save a web page as a complete
    document to the local drive and then open it with Fireworks to work
    with it. With CS3 all I get is a totally white canvas. I have
    checked that my preferences are all set the same, and they are. I
    use this feature all the time for a variety of functions, i.e.,
    combining slices to make one gif, etc. Am I missing something - or
    is that function no longer there?
    It shows it can open Html files, but it will not even open
    it's own exported html files. Get "internal error." The file is
    fine ( and it just created it.)

    No, it is not a bug at all. It is all about how you do this
    and understand the primary functionality of Fw itself, and how it
    do for you. If you don't fully understand how it works, then you
    have problem trying to understand how it works and what's not.
    Then, perhaps that you clearly do not understand the
    functionality of Fw CS3, and how it relates to exported HTML files
    created by Fw CS3.
    It is very common, wide misunderstanding among other,
    especially with newbies using Fw app, and they thought that if Fw
    could create HTML code. Actually, it was created by side of
    pre-scripted coding inside the app itself, and that it does the
    rest for you.
    As for working with sliced images around Fw CS3, as any
    legacy versions of Fw, the concept of sliced images is often up for
    the air and debates. Everyone have different opinion about sliced
    images, and what not and what's cool.
    I personally dislike sliced images. If having lots of sliced
    images, means slower downloading time and more codes involved.
    I get the feeling that you really not understand how Fw
    works, and how it relates to your question about HTML code in Fw.
    Please try to understand that FW itself CANNOT edit HTML. It only
    just exports html code for you. However, it is important to note,
    it is NOT perfect html code.
    It is best IF you work with pre-scripted HTML code in
    Dreamweaver, or any web authoring app to work with HTML directly.
    If you are not taking my advice, so be it. I am out of this
    discussion. End of discussion!
    And good luck!
    quote:
    Originally posted by:
    lloydtennison
    No. I mean for editing the images. The open command even
    shows html as an option to open, it just does not open the file at
    all. I just creates a new one.
    The reasons for opening an html file in Fireworks have
    nothing to do with Dreamweaver or coding, just images and image
    manipulation. If open html is an option, as it is, it should open
    the file. It used to open with all slices intact, and all html code
    behind it. Now it just opens a white page.
    It is a bug and problem since it does not do as it should.

  • Opening HTML files

    Hi there,
    I'd love someone giving me a bit of help about this...
    AFAIK, Nokia S40 phones can't open an html file stored locally (in the phone's memory or memory card), although they can if that file is accessed through an internet connection.
    So... is there a method or piece of software that I could use to open HTML files stored locally? (I've tried some Java browsers, including Opera Mini, but they all seem only fit for online browsing).
    Thanks a lot,
    Marcos

    ok so i just realized that it doesn't make sense for a program outside the jar, like IE or Firefox, to be able to access and open a file inside of the jar. I am now looking for suggestions on how to work around this problem for my program to be able to have a simple help system located inside the jar that can be loaded during runtime.
    Thanks for your suggestions.

  • How to open html file in forms6i ?

    Hi Guys,
    Can anyone help in out in this regards.How to open .html file in forms6i ?
    Thanks in advance
    raj

    Check out WEB.SHOW_DOCUMENT.
    Regards
    Grant Ronald
    Forms Product Management

  • Open Html file

    How i can write a program can open html file?

    Well I dunno what he meant but I'd like to know how
    to open a html file on my hard-drive from a java
    application.Just like you open any other file on your hard drive.

  • Safari 7.0.5 unable to open html file

    I used to be able to open HTML files in Safari so I can read the content but now it won't let me. Safari 7.0.5. Is there an issue with this version? I am also unable to see some content in our SalesForce app for work. Would a different version of Safari fix this?

    You may have installed "SearchMe" or some other malicious Safari extension.
    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Remove all extensions with the word "Spigot" in the description. If in doubt, remove all extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those.

  • So the new ipad can open PPS files?

    I recall with the previous generations (ipad 1, 2) you had to download a software like Keynote to open an attachment file in PPS format. It seems the new ipad can open such files straight out of box without installing any additional program. Is it because of the 5.1 update?

    Wow...just wow... I love when I fix my own tech problems.
    As mentioned before I felt my iTunes was the problem even though it was up to date.
    I un-installed it and ensured I re-installed a 64bit version of it.
    I synced it with the iPad but nothing changed.
    Then I realised that maybe my zone alarm firewall might be the cause of all my problems even though I already tried syncing with zone alarm off (which didn't work) I thought maybe updating it to the latest version would fix the issue. I have long been aware that zone alarm has cause different issues with iTunes and iProducts. I don't know if anyone has ever covered it on these forums.
    After installing the most current version of zone alarm firewall. I synced my iPad with iTunes and IT WORKED. My videos now play on the iPad perfectly.
    Hopefully this new version of zone alarm won't cause any other conflicts otherwise I maybe have to remove it.
    So in summary, ensure you are using the latest version of iTunes. If you are using zone alarm firewall. Update it or if that doesnt work then uninstall it complete and use another firewall.
    Thanks to all who offered their suggestions.

  • Open html file in new window it is opening in calling browser.

    Hi ,
    Am using adf 11.1.1.5 jdev.
    I have a pop in which pdf,html and rtf file extension are mentioned in drop down list . As i select htlm and fire command button .
    The generated html file is opening in the same browser which is replacing the calling page . I want to open in new window .
    thanks .

    Hi,
    iff you use ADF Faces, use a goLink with a target to _blank. If you don't use ADF Faces, provide more details to the question
    Frank

  • New Win7 install. Can't open html files. Get "there was a problem sending command to the program".

    When I try to open an html file on my hard drive, I get a "There was a problem sending the command to the program" error. There is no way I can open a local html file with firefox, even though Win7 sees it these files as Firefox documents. This is a brand-new Gateway tower running Windows7-64, Athlon phenom 4x processor, 6G RAM, and the latest version of Firefox (a week old).

    Try:
    *http://kb.mozillazine.org/Windows_error_opening_Internet_shortcut_or_local_HTML_file_-_Firefox
    You can try to redo the default browser (temporarily make another browser the default).
    *http://kb.mozillazine.org/Default_browser

  • Cannot open HTML files on Win7 using FF 3.6.10 as default browser.

    When I click on any HTML file in Windows 7 (64 bit, Ultimate) I get an error dialog that says "There was a problem sending the command to the program."
    The only way I can open local HTML files is with IE as default browser - which I do not want.
    I first noticed the error when clicking links in emails in Outlook 2010. But now it also happens on any local HTML file - like help files (help files that I really need to be able to easily read).
    I have tried editing the registry (this solution found at http://www.raymond.cc/blog/archives/2008/03/25/fix-general-failure-when-open-link-or-url-from-outlook-and-windows-mail/) which temporarily fixed the problem, but would not work a second time to fix the issue as the change I made was still present in the registry, so nothing to do.
    I tried making IE the default browser then making FF the default browser again, but that didn't work.
    I tried checking the default program for HTML files in Win7, but that is set to FF.
    I don't get it. This just started happening in the last 2 weeks or so.
    The "This happened" drop-down below is not entirely correct. This happens whenever I click on a local HTML link or a link in an Outlook email. But, the "This happened" drop down does not have an option for "When I click a local HTML link".

    ( links in emails )
    this is what fixed my issue with links in my windows live mail
    in Firefox go to tools >options >advanced > general tab > at the bottom click the check now button to make sure Firefox is your default browser . if its not click yes to make it default now your links in emails should open in Firefox properly

  • Run applet in browser when html file is stored in different dir.

    I have a SiteSelector.class stored in: "D:\DATA\Java Programmes\Networking\"
    and a SiteSelector.html stored in :"D:\DATA\Java Programmes\Networking\HTML files\"
    Here is a part of the code of SiteSelector.html:
    <applet code= "SiteSelector.class"
    width=500
    height=500
    codebase="D:\\DATA\\Java Programmes\\Networking\\"
    archive=""
    alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
    >
    <param name = "title0" value = "Java Home Page">
              <param name = "location0" value = "http://java.sun.com/">
    <param name = "title1" value = "Deitel">
              <param name = "location1" value = "http://www.deitel.com/">
              <param name = "title2" value = "JGuru">
    <param name = "location2" value = "http://www.jGuru.com/">
    <param name = "title3" value = "JavaWorld">
    <param name = "location3" value = "http://www.javaworld.com/">
    Your browser is ignoring the <APPLET> tag!
    </applet>
    Since html file and .class file are stored in different directories so in applet tag I specify absolute url in "codebase = ......" to indicate that the browser should look for .class file in "D:\DATA\Java Programmes\Networking\".
    But when I run the Applet in the browser, nothing happens. But when I copy the html file back to "D:\DATA\Java Programmes\Networking\" and change the codebase = "D:\\...." to codebase = "." It works well. Any one can help me to hanld this problem. I want to run the applet in the browser when the html file is stored in different directory. Thank you.
    Message was edited by:
    beckham12a18
    Message was edited by:
    beckham12a18
    Message was edited by:
    beckham12a18
    Message was edited by:
    beckham12a18

    anyone please help me!!!!

  • Problem opening html file in separate browser window

    I have an forms app where a user can download a file from the database and then open that file on the client. After the file is downloaded, I use webutil_host.nonblocking ('cmd /s start' ||filename) and it works fine for .doc, .xls etc. as these open a separate program. Problem occurs when user downloads an html file, the command opens the file in the same browser window as forms is running, thus ending the forms session.
    I've tried web.show_document('file:\\'||filename) but that fails as I assume it is looking for the file on the application server instead of on the client.
    Any ideas on how to workaround this issue?

    Well I searched around on google looking for a java servlet or jsp example and couldn't find one. I know they are out there becasue thats where I got mine about a year ago. I dont work at the same place anymore and couldnt take my code with me. Anyway, you would use this servlet for any document (xls, doc, html, txt, pdf) that is in the blob column in the db. The servlet would send a mime type first in the response and then the blob. The browser would display the blob in the associated helper application on the client (Excel, Word, IE, notpad, Adobe Acrobat Reader, etc..). The user can then save the document to their hard drive if they wish. This is faster becasue the clients hard drive isnt involved in the transfer from db to client. The user can then edit the document and reupload the document. Thats how we did it.
    Maybe somebody else can post a link to a generic blob download servlet? Thanks..

Maybe you are looking for