Applet as file browser in intranet

Hi,
I am trying to create an applet as a file browser in intranet.
The problem is I can not get the list of files. Is there any way to retrieve
the list on particular url?
Thanks.
hbt

Please be more specific as to what your applet is actually doing - in Java terms.
Are you trying to read a URL as if it were a directory? Do you have some server-side program (servlet/CGI/PHP/whatever) that can/should create a file that is a list of files? Do you want to use a database connection to store filelists?

Similar Messages

  • Gnome-menu-file-browser-applet

    http://code.google.com/p/gnome-menu-fil … er-applet/
    Remeber winXP? And that little pop-up menu that could be used to browse trought directories (folders). I used it to browse my music folder.
    This plugin is about the same. And it is cool, nice addon for gnome panel.
    I dont have a clue about pkgbuilds...
    Tried to do this one but wiki page confused me... that part with cmake and stuff...
    So please help me! This is what i made so far...
    pkgname=file-browser-applet
    pkgver=0.6.4
    pkgrel=1
    pkgdesc="Browse, open and manage files in your computer directly from the GNOME panel."
    arch=(i686 x86_64)
    license=('GPL')
    depends=('gnome-panel>=2.26.0' 'libpanel-applet>=2.0' 'libgio>=2.0')
    makedepends=('pkgconfig' 'cmake>=2.4.7 ')
    optdepends=( 'libgtkhotkey-1.0' 'brasero' 'file-roller' 'rubber')
    url="http://code.google.com/p/gnome-menu-file-browser-applet/"
    options=(!emptydirs)
    install=file-browser.install
    source=(http://gnome-menu-${pkgname}.googlecode.com/files/${pkgname}-${pkgver}.tar.gz
    md5sums=('3874795cf8c02b0749a0b09c7466f677')

    All those files seem to have is application names. What specific file did you use to edit the menus?

  • Could not load applet in a browser using jre 1.6.0_06

    Hi,
    I am facing problem with loading applets when the browser uses jre 1.6.0_06.
    Not able to understand what actually the problem is, I tried to check with a small applet that would simply print Hello World on the java console. Even this applet also could not be loaded on the browser. I could load this applet in the test environment of eclipse, but not able to load it on the browser when the applet is deployed on Tomcat.
    We have no problems in loading applet if the browser is using an earlier version of the jre.
    One more thing we have found out that, if we change the SSL cipher suite of the ssl.conf file such that it can support weaker protocols, my applet works with jre 1.6.0_06 also.
    But one thing we could not understand is that why changes in SSL cipher suite of the ssl.conf file creates problem in loading the applet, only in case the browser is using jre 1.6.0_06. I mean to say that changes in the SSL cipher suite does not create any problem in loading the applet if my browser is using an earlier version of jre 1.6.0_06.
    Please help me out as I don't have any clue regarding this problem.
    Thanks in advance.

    Hi,
    We have found a wor around for this problem.
    The following option has been unchecked and the applet could be loaded.
    Go to java control panel
    Under the Advanced Tab
    Under the Security section
    Uncheck the last option "Use TLSv1.0".
    This makes the applet work.
    But could not understand as why this is creating a problem.
    We have tried to include TLSv1.0 in the cipher suite of our apache server, while keeping the above option in java plugin control panel checked, but even that did not solve the problem.
    Please help me of how should I proceed for this problem, as I am totally stuck.
    Thank you.

  • File browse: Only specific extensions

    Is there a way I can specify that only files of certain extensions should be loaded using the File Browse item? So the File Select box that Windows pops up would show only files with those extensions?
    Thanks

    Nope, simply not possible without building a Java Applet (not JavaScript). It's just the way web browsers (all of them) work and has nothing to do with HTML DB.
    Tyler

  • Problem in loading applet in HotJava browser

    I am having a problem in loading a simple applet in HotJava
    browser
    The code of the applet is shown below
    import java.awt.*;
    import java.applet.*;
    public class HelloJava extends Applet
    public void paint(Graphics g)
    g.drawString("Hello Java", 10, 100);
    The code of the HTML file HelloJava.html is shown below :
    <HTML>
    <! This page includes a welcome title in the title bar and also
    displays a welcome message. Then it specifies the applet to
    be loaded and executed.
    >
    <HEAD>
    <TITLE>
    Welcome to Java Applets
    </TITLE>
    </HEAD>
    <BODY>
    <CENTER>
    <H1> Welcome to the World of Applets </H1>
    </CENTER>
    <BR>
    <CENTER>
    <APPLET
    CODE = HelloJava.class
    WIDTH = 400
    HEIGHT = 200 >
    </APPLET>
    </CENTER>
    </BODY>
    </HTML>
    ON opening the HTML file in HotJava Browser, the following error comes up :
    HelloJava: class not loaded: file:/D:/Poonam/Java/Src1/HelloJava.class:
    java.lang.ClassNotFoundException: HelloJava: class not loaded: file:/D:/Poonam/Java/Src1/HelloJava.class

    Well the obvious question is what is utilities.PropertyManager up to at line 23? It appears to be trying to get the system classloader which applets aren't allowed to do.
    You should probably be using the ClassLoader from the class in question.

  • Question about Java Applet Jar file signing.

    These questions pertain to Java 6 Standard Edition 1.6.0_22-b04 and later.
    I have gone through the Oracle Java Tutorial for generate public and private key information
    to sign a jar file, and how to sign the jar itself, all at
    [http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html|http://java.sun.com/developer/onlineTraining/Programming/JDCBook/signed.html]
    , and seek some clarification on the following related questions:
    -In order to "escape" the java applet sandbox that exists around the client's
    copy of the applet running in their web browser, ie.
    (something forbidden by default), is verification of the signed applet enough, or is a policy file required
    to stipulate these details?
    -using the policytool policy file generator, what do I need to add under "Principals"
    (if anything) when dealing with a Java applet? Are Codebase and SignedBy simply author information?
    -If I choose to use a java.security.Permission subclass object set up in equivalent fashion within the Applet,
    which class within the Applet jar do I instantiate that object in? Does it need to be mentioned
    in the applet's jar Manifest.MF file?
    -Is the "keystore database" a java language service/process which runs in
    the Server's memory and is simply accessed and started by default
    by the client verifier program (appletview/web browser)?
    -The public key certificate file (*.cer) is put in the webserver directory holding
    the Applet jar file (ie. Apache Tomcat, for example).
    -Presumably, the web browser detects the signed jar
    and certificate file, and provides the browser pop up menu asking the user
    about a new, non recognised certificate (initially).
    Is this so?
    -With this being the case, can the applet now escape
    the sandbox, be it with or without the stipulated
    policy permissions?

    848439 wrote:
    -In order to "escape" the java applet sandbox that exists around the client's
    copy of the applet running in their web browser, ie.
    (something forbidden by default), is verification of the signed applet enough, or is a policy file required
    to stipulate these details?Just sign the applet, the policy file is not necessary.
    -Is the "keystore database" a java language service/process which runs in
    the Server's memory and is simply accessed and started by default
    by the client verifier program (appletview/web browser)?No.
    -The public key certificate file (*.cer) is put in the webserver directory holding
    the Applet jar file (ie. Apache Tomcat, for example).No. For a signed Jar, all the information is contained inside the Jar.
    -Presumably, the web browser detects the signed jar
    and certificate file, and provides the browser pop up menu asking the user
    about a new, non recognised certificate (initially).
    Is this so?No. It is the JVM that determines when to pop the confirmation dialog.
    -With this being the case, can the applet now escape
    the sandbox, ..Assuming the end-user OK's the trust prompt, yes.
    ..be it with or without the stipulated
    policy permissions?Huh?

  • File browsing bug?

    Hi
    Today a bunch of nice Chinese hackers were trying to get remote access to my tomcat server (6.0.24).
    I booted them out after a few minute they were in trying to load their root kit package. The interesting part is, after I cleaned everything, I took a quick look at their software (their rootkit webapp) and it's pretty interesting.
    The root kit gives the user total access to the system and allowing the user to traverse outside of the tomcat container. What is bothering me, even though Tomcat is running on top of JVM, why didn't Tomcat developers protect against access outside of its own container?? From that webapp i could access the drive root like it's just a regular file browser, and execute commands as SYSTEM (equivalent to root user in linux based systems), doesn't make any sense in my mind.
    is this an expected behavior or did I miss something in the security configurations?
    The root kit is a modified JFilder class. I cannot attach a file here but I can send it by email if anybody wants to install it on their system to play around with it offline.
    best!

    Tomcat runs on a JVM and the JVM generally has full system access, except the parts you protect on the OS level of course.
    However, it is possible to install security policies in the JVM itself - a good example of that is the sandbox in which Java Applets run which is severely limited. So with some work you can protect your system in any way you want.
    [http://java.sun.com/javase/technologies/security/|http://java.sun.com/javase/technologies/security/]
    (what will interest you is what is written under "authentication and access control").

  • Problem viewing applet in a browser

    Hi guys,
    i'm facing a basic problem in viewing an applet in a browser say
    IE or netscape. beside adding the applet tag to the html file that i want to browse ;is there any other operation to perform on browsers or the Applet in order to view it ?
    i would be very grateful if you help me fix this!
    thanks indeed
    othman

    - Is there a plugin installed on the client machine
    - Is the browser java enabled
    - What tags are you using .. show your html code
    - Are you aware of the security restrictions of the applet and its sandbox
    - Are you able to view the console. What exceptions do you see if any.. show your exceptions
    - What version of IE or Netscape are you testing with
    - What OS are you using, what jvm version..
    - Is the plugin set to be used with IE and Netscape in the Plugin control panel
    - Is your applet code in the same directory as your html file. Does your codebase attribute reflect this.

  • Where is the Applet JAR file?

    When an Applet (the JAR) is downloaded to the local PC, exactly where (the directory) we can locate the Applet JAR file? Is the file managed by the Internet browser?

    This has got to be browser-specific.
    You shouldn't write code that depends on this kind of information anyway.

  • File Browser Control

    Hi
    I have added some file browser controls to a form which file fields in a table.
    When i save the form the information in the table alters the path of the file to a string beingiing with F
    F10031\file.xls
    for example.
    How do i save the full path does anyone know?
    Thanks in advance

    erics44 wrote:
    Hi
    I have added some file browser controls to a form which file fields in a table.
    When i save the form the information in the table alters the path of the file to a string beingiing with F
    F10031\file.xls
    for example.This is done to produce a unique file identifier in the <tt>apex_application_files</tt> view, and is the session state value of the file browse control that uploaded the file. The actual filename is available in the <tt>filename</tt> column.
    How do i save the full path does anyone know?Generally, you can't.
    For security/privacy reasons recent versions of browsers by default do not send local file path information from File Browse items to the server, nor expose the file path in the control's JavaScript methods. Firefox, Safari and Chrome only provide the filename. IE6 & IE7 still yield the path in Windows format. IE8/9 and Opera have adopted an irritating approach of replacing the path with a wholly imaginary "C:\fakepath\".
    Changes to IE's security config setting “Include local directory path when uploading files” enables the path to be exposed in IE8/9, but unless you're working in an intranet environment where: IE is the only browser used; it's possible to make remote changes to this setting on every desktop; and this won't break/expose anything else, then you'd be strongly advised to rethink this requirement.
    For more information see:
    http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018980.html
    http://blogs.msdn.com/ie/archive/2009/03/20/rtm-platform-changes.aspx
    (This topic comes up regularly: a forum search for path AND "file browser" returns multiple hits; path AND "file browse" even more. Did you search before posting this question?)

  • UNABLE TO RUN APPLETS ON A BROWSER

    I am unable to run applets on a browser which run well on an appletviewer.
    I kept the class file in the same directory as the web page,but it's only showing the applet window, and not showing it's contents.
    console shows...
    java.lang.NoClassDefFoundError: NewApplet (wrong name: applet/NewApplet)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    java.lang.NoClassDefFoundError: NewApplet (wrong name: applet/NewApplet)
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(Unknown Source)
         at java.security.SecureClassLoader.defineClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    as i am a newbee can anybody plz help..........

    what browser r u using? if ever is the java plug-in in your browser is set.

  • Multiple repeat downloads of applet jar file

    We have an applet that is downloaded from a Weblogic server. The applet is packaged as a jar file. Some of the testers have been complaining that the applet is extremely slow to start up.
    The applet start-up involves three phases. In a first phase, it fetches data from the server. This phase seems to execute in pretty much constant time. During the second and third phases, it constructs a UI using Swing objects. The UI includes some JPEG files, which are extracted from the applet's own jar file.
    Testers report that the slow part of start-up is actually the UI setup. This should theoretically not be network-bound at all. But packet tracing reveals that during this phase, there's a large amount of network traffic going on. It turns out that there are multiple GET requests for the applet jar file being issued. Typically, 29 requests are issued in all; just for reference, the applet is required to extract 28 images from its jar file, so it looks as if the additional requests correspond to image requests.
    One further detail: this does not occur where there is a fast connection to the server. In these cases, the applet is downloaded once. It looks as if the problem only occurs on slower network connections, and the speculation here is that the applet jar is somehow being downloaded only partially, so that requests for images somehow trigger a re-request of the jar file.
    Has anyone seen anything similar and, more to the point, is there a fix or workaround?
    Technical details: Internet Explorer 5.5 or 6.0, JRE version 1.4.2_01 Java HotSpot(TM) Client VM (on the client), WebLogic 8.1 (on the server)
    Thanks in advance for any help.

    Ok.
    I have been trying hard and found the solution. One of the ablove posting says that it works under java 1.4.1 plug-in. That's infact absolutely true. It also says that how to run client using JRE 1.4.2 or higher. That can be solved two. This is definitely a bug with the 1.4.2 plug-in.
    Follow this procedure that will solve the mystry.
    ----------------------start ---------------------------------
    Problem
    Download of applet is very slow
    Why?
    This was happening because of the repeated download of the applet jars by the applet plug in controller. It is quite clear that the Java 1.4.2 plug in controller has a bug that causes the plug in to download same jar files multiple times irrespective of Jar cache in the client side (configurable from client side using the Java plug in control panel) is enabled or disabled. Therefore, we have moved from 1.4.2 plug in to 1.4.1 (controlled from our client (JSP) code) that works fine.
    What the client (applet client) should do?
    You must do the following in the client side in order to avoid the long download time for applet when running from a browser. We have also found that the browser actually do not matter in slow applet downloads. It is only the plug in that does control the applet download.
    Irrespective of what JVM you have already installed (or not yet installed) please do the following:
    1. Download the JRE 1.4.2 from http://java.sun.com/products/archive/index.html
    -At the time of its installation if it shows that the "JRE is already installed do you uninstall it?" Go ahead and uninstall the JRE 1.4.2. After the un-installation again install the JRE 1.4.2
    -If it does not have the JRE 1.4.2 already installed, then you will see any warning window and you will be able to install the 1.4.2 JRE successfully.
    2. Now, go to the same link and install JRE 1.4.1.
    -If this JRE already installed, uninstall first like the step 1 above. then reinstall it.
    3. Now, after successful installation of the JRE 1.4.1, open the Plug-In control panel.
    -You will find the list of control panel(s) in the Start->Control Panel window. Use the control panel that shows the version number 1.4.1. If no version number shown then use the one that do not show any version number at its end.
    4. Do the following on the Plug-In control panel.
    -Verify if this is the 1.4.1 plug in control panel? Go to the "About" tab to see if it shows 1.4.1.
    If it does not show the 1.4.1 (or 1.4.1_x) then plug in was not installed correctly. Reinstall the 1.4.1 JRE following the step in no-2
    -Go to "Basic" tab and select "Show console" radio button.
    -Go to "Advanced" tab and from the drop down select "JRE ...1.4.2" from the "Java Runtime Environment" drop down box.
    -Go to "Browser" tab and select all that in the "Settings" box applicable for browsers.
    -Go to "Cache" select "Enable Caching" if it is not selected currently. Select "Unlimited" from "Size" options.
    Now hit "Apply" button at the bottom and close the control panel using the 'X'.
    5. Restart your Windows machine.
    6. You are ready to run the applet from any of the browser (IE, NS, etc.)
    --------------------------end------------------------------

  • How to run a Applet in a browser. No one REPLIED. Plz help

    I had created a applet.
    When I run it in ECLIPSE, the applet program runs well.
    But when I try to open the applet program in browser
    by storing the html file in the director in which I had the class file ,
    my applet is not running.
    In the browser's bottom status bar , it says "notinited".
    I dont know what is the mistake.
    Please tell me what I should do. I am pasting my html file here.
    <HTML><applet code="MortgagecalculationApplet.class" width=421 height=481></applet>
    </HTML>

    Hi..
    Well I tried doing somthing which worked.. would like to share with you...
    actually in the jar file created , if the class file is kept in the root directory of the jar file... it works...
    eg. while crating the jar, if we go to the directory of the class file and then create it , it ould work..
    if u r in som other directory while creating the jar, it wont work..
    for the jar created, open it with winzip and if in the path column of the required class file if it shows a path, then it wont work..
    else it will..
    dats wat I ve found out....

  • Winows xp x64 JRE 6u1 - no applets in Mozilla browser

    Hi,
    i tried to find similar posts but didnt find any. Im using Windows XP (pro) SP2 x64 on a AMD64 processor, and im having problems running applets in my browser (Mozilla 2.0.0.4). I've downloaded the newest JRE 6u1 available on the homepage, and also tried to download applet "plugins" thru Mozilla, but everytime i open a site with a java applet i get this error:
    java.lang.NullPointerException
         at com.sun.deploy.net.proxy.DynamicProxyManager.getProxyInfo(Unknown Source)
         at com.sun.deploy.net.proxy.DeployProxySelector.select(Unknown Source)
         at java.net.SocksSocketImpl.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.connect(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at java.net.Socket.<init>(Unknown Source)
         at com.sun.deploy.si.SingleInstanceManager.connectToServer(Unknown Source)
         at com.sun.deploy.ui.AboutDialog.shouldStartNewInstance(Unknown Source)
         at com.sun.deploy.ui.UIFactory.internalShowAboutJavaDialog(Unknown Source)
         at com.sun.deploy.ui.UIFactory.access$100(Unknown Source)
         at com.sun.deploy.ui.UIFactory$11.run(Unknown Source)
         at java.awt.event.InvocationEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Since im not familiar to Java compailing and programming i dont know what this means.
    Im thankfull for any suggestion fixin this error.

    I think this is because of sandbox for web applications - see http://download.oracle.com/javafx/2.0/deployment/deploy_overview.htm#CEGJGHDA to understand the restrictions.
    You need to sign your application and make sure JNLP requests all permissions.
    Good news it is easy in Netbeans - just open project properties and select that application need elevated permissions.
    Bad news is that official beta of 7.0.1 used experimental signing support that had bug for jars loaded from file protocol.
    You may want to download latest NB 7.0.1 build (and recreate your project) or customize build.xml to sing jar file explicitly using standard ant signjar task.
    Or you can always run your tests using http protocol to access the application.

  • Error: Unable to locate an image file browser...

    I get the error below when I insert an image element and try to associate a picture to it by either double clicking it or using the browse button in the Draw palette.
    I have looked in my install directory and the "FileSystemBrowser.dll" file is present as well as the "ImageFileBrowserIDL.dll" file, so what gives?
    Running LiveCycle ES2 9.0.0.2.20120627.2.874785

    Hi,
    you should be able to fix that problem by re-registering Designer file browser DLL.
    http://thelivecycle.blogspot.de/2014/02/diy-bugfix-image-file-browser.html

Maybe you are looking for

  • After trying a software update it froze midway and is now not responding and not being recognised by itunes. Help!!

    Hi My 3rd Gen Ipod Touch was undergoing a software update when it stopped and itunes threw up a message saying "Update cannot be completed due to an unknown error". I disconnected and reconnected the ipod, and itunes suggested I restore the ipod. I s

  • How to transfer photos from portable hard drive to DVD-R disk

    I have over 7000 photos on my Western Digital portable hard drive "My passport for Mac" and want to transfer them onto a Verbatim DVD-R disk. My reason being I want to reset the hard drive as I errored by partitioning it where as I shouldent have.

  • TS3623 Apple TV movie streaming problem

    Hi Folks When playing movies from my computer to Television via apple tv they play for 2-4 minutes the disappear leaving me to have to switch itunes off then back on again but after another 2-4 minutes the same thing happens. Any Ideas?? I've reboote

  • Problem in receipt stock & Issue stock

    Dear All, I have some problem in inventory cube 0IC_C03. when we execute query for total stock ,total Receipt stock &Total issue stock, we found that total stock is matching with MB5B but issue stock & receipt stock is not matching. Then I added mate

  • Preview option in LifecycleES 8.2.1

    Up until about a week ago, when I was designing a form in Lifecycle, I could click from the design tab to the Preview PDF tab, see the PDF preview of my form, then click right back over to Design view.  Now when I click on Preview PDF, first I get a