IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Applets Java Discussion :

"Enregistrer sous" sur navigateur


Sujet :

Applets Java

  1. #1
    Membre du Club
    Profil pro
    Inscrit en
    Mars 2007
    Messages
    113
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 113
    Points : 44
    Points
    44
    Par défaut "Enregistrer sous" sur navigateur
    Bonjour,

    Lorsque j'éxecute mon applet sur eclipse ça marche sans problème, mais lorsque je le fais à partir du navigateur il me met ceci en erreur :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    Exception in thread "AWT-EventQueue-2" java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
    	at java.security.AccessControlContext.checkPermission(Unknown Source)
    	at java.security.AccessController.checkPermission(Unknown Source)
    	at java.lang.SecurityManager.checkPermission(Unknown Source)
    	at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
    	at java.lang.System.getProperty(Unknown Source)
    	at java.io.Win32FileSystem.getUserPath(Unknown Source)
    	at java.io.Win32FileSystem.resolve(Unknown Source)
    	at java.io.File.getAbsolutePath(Unknown Source)
    	at javax.swing.filechooser.WindowsFileSystemView.isFloppyDrive(Unknown Source)
    	at javax.swing.plaf.basic.BasicFileChooserUI$BasicFileView.getIcon(Unknown Source)
    	at javax.swing.JFileChooser.getIcon(Unknown Source)
    	at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxRenderer.getListCellRendererComponent(Unknown Source)
    	at javax.swing.plaf.basic.BasicListUI.updateLayoutState(Unknown Source)
    	at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(Unknown Source)
    	at javax.swing.plaf.basic.BasicListUI$Handler.valueChanged(Unknown Source)
    	at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
    	at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
    	at javax.swing.DefaultListSelectionModel.fireValueChanged(Unknown Source)
    	at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
    	at javax.swing.DefaultListSelectionModel.changeSelection(Unknown Source)
    	at javax.swing.DefaultListSelectionModel.setSelectionInterval(Unknown Source)
    	at javax.swing.JList.setSelectedIndex(Unknown Source)
    	at javax.swing.plaf.basic.BasicComboPopup.setListSelection(Unknown Source)
    	at javax.swing.plaf.basic.BasicComboPopup.access$300(Unknown Source)
    	at javax.swing.plaf.basic.BasicComboPopup$Handler.itemStateChanged(Unknown Source)
    	at javax.swing.JComboBox.fireItemStateChanged(Unknown Source)
    	at javax.swing.JComboBox.selectedItemChanged(Unknown Source)
    	at javax.swing.JComboBox.contentsChanged(Unknown Source)
    	at javax.swing.AbstractListModel.fireContentsChanged(Unknown Source)
    	at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.setSelectedItem(Unknown Source)
    	at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.addItem(Unknown Source)
    	at javax.swing.plaf.metal.MetalFileChooserUI$DirectoryComboBoxModel.access$900(Unknown Source)
    	at javax.swing.plaf.metal.MetalFileChooserUI.doDirectoryChanged(Unknown Source)
    	at javax.swing.plaf.metal.MetalFileChooserUI.access$1200(Unknown Source)
    	at javax.swing.plaf.metal.MetalFileChooserUI$5.propertyChange(Unknown Source)
    	at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
    	at java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
    	at java.awt.Component.firePropertyChange(Unknown Source)
    	at javax.swing.JFileChooser.setCurrentDirectory(Unknown Source)
    	at javax.swing.JFileChooser.<init>(Unknown Source)
    	at javax.swing.JFileChooser.<init>(Unknown Source)
    	at com.actemium.syclopp.analyser.TabCsvFrame.source(TabCsvFrame.java:132)
    	at com.actemium.syclopp.analyser.TabCsvFrame.<init>(TabCsvFrame.java:39)
    	at com.actemium.syclopp.analyser.RequestManager.exportInCSV(RequestManager.java:174)
    	at com.actemium.syclopp.analyser.AnalyserPanel$1.actionPerformed(AnalyserPanel.java:121)
    	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
    	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
    	at java.awt.Component.processMouseEvent(Unknown Source)
    	at javax.swing.JComponent.processMouseEvent(Unknown Source)
    	at java.awt.Component.processEvent(Unknown Source)
    	at java.awt.Container.processEvent(Unknown Source)
    	at java.awt.Component.dispatchEventImpl(Unknown Source)
    	at java.awt.Container.dispatchEventImpl(Unknown Source)
    	at java.awt.Component.dispatchEvent(Unknown Source)
    	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    	at java.awt.Container.dispatchEventImpl(Unknown Source)
    	at java.awt.Component.dispatchEvent(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)
    network: Entrée de cache introuvable [URL*: http://localhost/docs/History/20100414/Temp/0000846A10001000_$F.zip, version*: null]
    network: Connexion de http://localhost/docs/History/20100414/Temp/0000846A10001000_$F.zip avec proxy=DIRECT
    network: Connexion de http://localhost:80/ avec proxy=DIRECT
    network: Entrée de cache introuvable [URL*: http://localhost/docs/History/20100414/Temp/000056F510001000_$10.zip, version*: null]
    network: Connexion de http://localhost/docs/History/20100414/Temp/000056F510001000_$10.zip avec proxy=DIRECT
    C'est à propos d'une fonction qui permet de faire "enregistrer sous"
    Avez vous une idée des modifications à apporter ?
    Merci

  2. #2
    Membre éprouvé
    Profil pro
    Inscrit en
    Février 2010
    Messages
    765
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Février 2010
    Messages : 765
    Points : 1 036
    Points
    1 036
    Par défaut
    Le grand classique de sécurité des applets, il te faut signer ton applet, pour lire ou écrire un fichier en local à partir d'un browser internet.

    Cela fonctionne avec Eclipse car tu dois utiliser le viewer interne.

    Voir ici : http://www.developpez.net/forums/d13...iliser-applet/

  3. #3
    Membre du Club
    Profil pro
    Inscrit en
    Mars 2007
    Messages
    113
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mars 2007
    Messages : 113
    Points : 44
    Points
    44
    Par défaut
    Merci je vais chercher sur le net comment signer une applet

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 1
    Dernier message: 25/12/2013, 09h54
  2. [XL-2003] Enregistrer sous : question sur la méthode
    Par toutoune95800 dans le forum Macros et VBA Excel
    Réponses: 5
    Dernier message: 06/04/2012, 14h07
  3. Applet, ouvrir la fenetre "Enregistrer sous" sur u
    Par HopeLeaves dans le forum Applets
    Réponses: 4
    Dernier message: 26/04/2011, 11h38
  4. [VBA] Renseignements sur boite de dialogue "enregistrer sous"
    Par p'tite Sandrine dans le forum Access
    Réponses: 40
    Dernier message: 22/02/2007, 10h53

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo