Using an applet as a debug-console

Hi !
I've made a simple main() which does work but i've to see some output details from an applet. For the moment, I don't know how to print the equivalent of the system.out.println (I put these outputs in a string) line by line in an applet...
All I am able to do is to write all my string in the applet at the end of the execution of my main().
Could anybody help me ?
Thx

In an applet, stuff written to output on System.out or System.err should show up on the Java console.
So it should be fine to just keep using that.
But anyway are you really using applets? Applets don't use main().

Similar Messages

  • Popup Applet: Can we used popup applet to list records from other BC

    I have created a popup applet based on contact BC and called it from one control(ex. Add button) in my newly added applet.I am not able to see any records there in popup applet.
    Can you please suggest what is the issue or can we use popup applet to show records and select it from it.

    Hi,
    This is Siebel debugging 101.
    Have you looked at your log file to see the SQL that executed?
    Robert Ponder
    [email protected]
    770.490.2767
    www.ponderproserve.com
    Ponder Pro Serve is the recognized leader in Siebel upgrades and Siebel performance on Oracle 11g
    Edited by: Robert Ponder on Oct 21, 2010 2:01 PM

  • I-Pad 2: "Debug Console: No Errors"?

    I am currently on an I-Pad 2 and I'm having issues with Safari. I am able to get online and open everything else up with free use BUT Safari. When I open Safari it's only allowing me to type in the search bar and the home bar; however it won't let me scroll up or down on the page, or touch anything on the main page that is open. The page itself is set in a gray color and no matter what I place in the home bar (example yahoo.com) it does pull up BUT it won't let me do anything else. At the top of the page it reads 'Debug Console: No Errors'. Does anyone know how to fix this issue? Or what the meaning of it is? Thanks for you help ahead of time :-)

    Try clearing Safari's cache : Settings > Safari > Clear Cookies And Data (Clear Cache on iOS 4) and also Clear History. You can also turn off debug console via Settings > Safari > Advanced > Debug Console (can't remember whether it was in exactly the same place on iOS 4, but it would be under Settings > Safari).
    If that doesn't work then try closing Safari completely and then re-open it : from the home screen (i.e. not with Safari 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Safari app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    A third option is a reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • A function can not be used in Applet.what's wrong?

    Here is a function.
    private String LoadFile() {
    String input;
    String output="sssssdsdsddf";
    try{
    FileReader f=new FileReader("shu.txt");
    BufferedReader in = new BufferedReader(f);
    while ((input = in.readLine())!= null){output=output+input;}
    in.close();
    }catch(IOException e) {
    System.err.println("Exception caught: " + e.getMessage());
    return output;
    It can be used in Java Application,and work well.but can not be used in Applet,it does not work.what's wrong?

    http://www.javaworld.com/javaworld/jw-12-2000/jw-1215-security.html#sidebar1

  • A function can not be used in Applet.what' wrong?

    Here is a function.
              private String LoadFile() {
    String input;
              String output="sssssdsdsddf";
              try{
              FileReader f=new FileReader("shu.txt");
    BufferedReader in = new BufferedReader(f);
    while ((input = in.readLine())!= null){output=output+input;}
              in.close();
              }catch(IOException e) {   
                   System.err.println("Exception caught: " + e.getMessage());
    return output;
    It can be used in Java Application,and work well.but can not be used in Applet,it does not work.what's wrong?

    Don't you think it would be a bit of a security risk if any applet you downloaded from the web (unknowingly) could read/write to your file system....
    Applets have strict security applied to them, and file i/o is one of the restrictions. There are ways around it, but for the moment I'd suggest you build a bridge and get over it.
    Cheers,
    Radish21

  • How can I display some OrdImages using a Applet in html or Jsp?

    hi
    I want to use a applet to display some images retrieved from intermedia OrdImage Object.
    Now ,I know that a applet can display some image objects or some images with their own filepaths. But we can get ordimag objects from Oracle database.And we can image data or image properties by ordimage java mathod. It is in html/Jsp environment. So how can I transform from ordimage to applet?? I appreciate someone who can help me!
    Bill

    Do you mean applet or Servlet?
    An Applet is java code that is downloaded over the web and runs in a web browser environment. Is this what you are doing?
    I suspect you are really talking about servlet/JSP environments, and the ability to include images from the database in a web page.
    In either case (applet or servlet), you want to be able to access images via a URL. For a Servlet/JSP/web page, this URL will be specified in a HTML <IMG> tag with a key as a parameter to the image you wish to view. Images are not in-line downloaded in a web page. They are access after the HTML is loaded, and are accessed with URLs, sometimes relative URLs rather than fully specified URLs.
    To deliver images to the web from the database using the PL/SQL gateway and iAS, where the procedures are generated by a wizard, see:
    http://otn.oracle.com/software/products/intermedia/htdocs/descriptions/imedia_code_wizard.html
    You can create a simple servlet (JSPs can not deliver binary data) that delivers database images using java classes. See:
    http://otn.oracle.com/software/products/intermedia/htdocs/descriptions/servlets_jsp.html
    http://otn.oracle.com/sample_code/products/intermedia/htdocs/intermedia_servlet_jsp_samples/imedia_servlet_jsp_readme.htm
    for a sample.

  • Loading a text file in a gzip or zip archive using an applet to a String

    How do I load a text file in a gzip or zip archive using an applet to a String, not a byte array? Give me both gzip and zip examples.

    This doesn't work:
              try
                   java.net.URL url = new java.net.URL(getCodeBase() + filename);
                   inputStream = new java.io.BufferedInputStream(url.openStream());
                   if (filename.toLowerCase().endsWith(".txt.gz"))
                        inputStream = (java.io.InputStream)(new java.util.zip.GZIPInputStream(inputStream));
                   else if (filename.toLowerCase().endsWith(".zip"))
                        java.util.zip.ZipInputStream zipInputStream = new java.util.zip.ZipInputStream(inputStream);
                        java.util.zip.ZipEntry zipEntry = zipInputStream.getNextEntry();
                        while (zipEntry != null && (zipEntry.isDirectory() || !zipEntry.getName().toLowerCase().endsWith(".txt")))
                             zipEntry = zipInputStream.getNextEntry();
                        if (zipEntry == null)
                             zipInputStream.close();
                             inputStream.close();
                             return "";
                        inputStream = zipInputStream;
                   else
                   byte bytes[] = new byte[10000000];
                   byte s;
                   int i = 0;
                   while (((s = inputStream.read())) != null)
                        bytes[i++] = s;
                   inputStream.close();
            catch (Exception e)
              }

  • Computerised call from PC to a mobile using java applets

    i want to know whether it is possible to make a call from PC to mobile using java applets. Please give me a correct reply with proof.

    The situation is like this.
    We are transfering the JAR file from the PC to the Mobile using Bluetooth.
    Our J2ME project is already install on Nokia's 6600 and given to the salesman's on the field. Now i have updated my software and i want to upgrade the same on their mobiles. For this i can't call all the 2000 salesman's who are all over the country (India) to my place to get the latest software installed and configure.
    If i have a GPRS like solution for transfering my file from my PC to the remote mobile. I would be better. If you know any this related to this kindly reply me.

  • How to use mousedown applet function in swing?

    hai,
    i need to use the applet mousedown function in swing..
    is there any way to use it or any other alternative is available for this?
    if can provide me a sample code.

    >
    i need to use the applet mousedown function in swing..>There is no such class as 'applet' in the JRE, Swing has an upper case 1st letter, functions in Java are generally referred to as methods, and there is no 'mousedown' method in the JRE.
    OTOH a Swing JApplet inherits the mouseDown method from Component, and it was deprecated in Java 1.1. The documentation (JavaDocs) provides instructions on what to use instead.
    >
    is there any way to use it or any other alternative is available for this?
    if can provide me a sample code.>If can provide me cash. Short of that, you might actually need to do some research/coding of your own.
    As an aside. What does any of this have to do with Java 2D?

  • How to attach files using an applet

    hi,
    i want to know how can i use an applet to upload or attach files in my application
    help me

    Hallo there,
    I am intrested on the same topic but I am not so good to modify the sound sdk demo. Is there anyone willing to share some code?
    Thanks
    Matteo

  • Using swing applet in IE

    Dear,
    Is there any way to use swing applet in IE.
    Thanks,

    If you are trying to make your code workable with Microsoft's VM, then I'd say you are looking for trouble. That VM's version is 1.1.4, if I'm not mistaken.
    Better stick to the JRE 1.4 with the plugin.

  • GDI object leak using an applet with Java Plugin 1.4.2_02

    We have an application where we use an applet to draw some graphs. The applet has an interface to update the graphical data using Javascripts. Now duing every graphical update of the graph there a leak of the GDI objects. Over time the display on the machine gets frozen due to lack of resources.
    This problem is happening with IE 6.0 using Sun Java Plug-in 1.4.2_02.
    Has anybody else seen this problem. Is there any work aorund for this issue.

    The code is not leaking. This has been verified.
    The problem has been fixed in 1.5.0 (5.0) Beta 2 version but I don't know then final release of this is going to be. Also using a beta version now is not an option.
    The 1.4.2_04 did not fix the GDI leak that I am seeing, I was hoping it would.

  • SDK 1.4.2: does the required JRE/Plugin undermine the use of applets?

    I have overcome the problems of running applets under SDK 1.4.2 by installing the required plugin. Now everything runs fine again, but I am left with one crucial question. For me it's no problem to download those 30+Mb, but how can I expect people visiting my webpages to do the same? it's more likely that this barrier will stop people visiting the page.
    I think the problem is limited tot those having Microsoft OS's, but that's quite a lot of them out there!
    I am thinking of uninstalling and downgrading to an older SDK version, but that seems a short-term solution, or is not?
    Is there a good alternative? The one Microsoft recommends (tranferring to C#,J#) clearly is not because then the situation is reversed: only Window's users can visit the page.
    I read a lot of questions in the forums regarding the plugin, but not regarding the use of applets. Do I miss a crucial reason why applets are not less attractive under SDK1.4.2 than before?
    I would be happy if you would share your ideas. Thamks, Marc

    well, what you can do is limit yourself to 1.1. The reason you would do this is because pretty much any VM can run it (including Microsoft's). The problem is there's alot of useful features missing. For example if you were working with pixels on an image, you have to use the slow PixelGrabber instead of the quick BufferedImage. A bigger kick than that is that there isn't any swing.
    and by the way, if you choose to limit yourself to 1.1, dont forget to compile with:
    javac -target 1.1 yourFile.java
    ...or it wont work.

  • How can I use a applet in a JSP file?

    hi
    I failed to use applet in a jsp file.My workspace is a BC4J type. I put the applet's source file in business component project.the jsp is in JSP project.
    The jsp file calls applet by <jsp:plugin></jsp:plugin> style.
    The error is can't find the applet class.
    why? Thank someone for give me help.

    Actually using jsp applet tags does not mean that it is taking care of that the classes are available. It simply renders the Applet tag tothe JSP page. If e.g. teh codebase is specified as /java/, then there should be a mapping to the Java class location with thename of /java/. If codebase is not provided, then the Java class must be in the classpath of the JSp servlet.
    Frank

  • Use an applet in a Jsp to display data from Oracle DB

    Hi everyone, I'm very new to java my question is:
    Is there a way to display an applet like a table within a Jsp to display data from a Oracle DB? The thing is that I would be able to show this applet only at the click of the submit button in my html form.
    Please help me any sample code are welcome
    Thank you in advance
    Fabry

    Hi,
    Why can't you use a Java Bean which takes the data from the database. Then call this bean from the JSP page using <jsp:useBean> tag.
    Ok,if you dont want a Java Bean and if you want to use an applet in a JSP file, you will have to use <jsp:plugin>tag. Here is an example
    <html><head><title> Demo Applet</title></head>
    <body bgcolor="rd">
    <% if (request.getParameter("SUBMIT") != null) {%>
    <jsp:plugin type="applet" code="DemoApplet.java" codebase="." name="Demo" height="400 with="300>
    <jsp:fallback> Plug in not supported by your browser</jsp:fallback>
    </jsp:plugin>
    </body></html>
    Hope this will help you.
    Rgds,
    Ravi Shankar

Maybe you are looking for

  • 2nd gen iPod shuffle not recognized by Yosemite or iTunes 12

    I just connected my iPod shuffle (2nd gen) into my macbook for the first time since the update to Yosemite and iTunes 12.  Right when it's plugged in the iPod only blinks orange three times, then doesn't blink or light up again.  It doesn't show up i

  • Helix: Update to Win 8.1 fails

    Hello, I tried to update my Helix to Win 8.1 for several times now. Each time the update fails. The download-process and the installation starts normally. The Helix is also booting sometimes and installing drivers. But then the process fails and I ca

  • Getting the below error in weblogic 8.1 SP4 after Webapplication deployment

    org.jdom.JDOMException: Error in building from stream: The name "null" is not legal for JDOM/XML elements: XML names cannot be null or empty.      at org.jdom.input.DOMBuilder.build(DOMBuilder.java:298)      at org.jdom.input.DOMBuilder.build(DOMBuil

  • What is Data Re-initializations ?

    What is Data Re-initializations ? and how can we do in BW system?

  • Expansion of Child table rows under each master table rows

    Hi,           I am using JDeveloper 11.1.1.5 version for developing ADF application.     I need to display a master table rows and its child table rows such that When I expand master table row,  I need to display child rows under the master row which