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

NetBeans Java Discussion :

création war application web


Sujet :

NetBeans Java

  1. #1
    Membre régulier Avatar de psycho_xn
    Inscrit en
    Mars 2007
    Messages
    250
    Détails du profil
    Informations forums :
    Inscription : Mars 2007
    Messages : 250
    Points : 96
    Points
    96
    Par défaut création war application web
    bonjour, je voudrais savoir comment on fait pour créer le fichier war d'une application web sous Netbeans

    merci bcp
    il n'y a pas de réussite facile, ni d'échec définitif

  2. #2
    Invité
    Invité(e)
    Par défaut
    Salut,

    Menu "help" de netbeans:

    onglet: index

    mot-clé: war

    Packaging a Resource in a WAR File
    See Also
    When you package a web application as a WAR file, the default package includes only those files that are part of the web application. To add a file that is external to the web application to the WAR package, use the Project Properties dialog box. Extra files might include applets, image files, text files, or other resources that reside outside the web application. When adding extra files, the default target folder is the web application's document base (root folder).

    If you use the instructions below to package a resource in the web application, you will not add it to the classpath. For example, tag libraries need to be added to the classpath for code completion to work. To add a resource to the classpath, see Managing the Classpath.
    To package a resource in a WAR file:
    In the Projects window, right-click the project's node and choose Properties.
    In the Project Properties dialog box, click the Packaging node in the left pane.
    Add the necessary resources to the web application by clicking the appropriate button. You can add any of the following:
    Project. The JAR file or WAR file produced by another project.
    Library. A collection of JAR files or folders with compiled classes. If the library is not available, click Add Library, then click Manage Libraries, and create a new library entry for your library. Alternatively, you can access the Library Manager by choosing Tools > Library Manager in the main menubar.
    JAR/Folder. A JAR file or folder somewhere on your system.
    Click Add and repeat as needed. To remove an added file, select the file in the list and click Remove.
    (Optional) Type a location for the resource in the table's Path in WAR column. By default, the resource will be copied to the web application's document root, which is the build/web folder (the highest level of the web application's file structure).
    Click OK to close the Project Properties dialog box. When you build the project, the IDE packages your resource in the project's WAR file and includes it in the build/web folder.
    After adding a resource to a WAR file, you may need to do some post-processing. For example, when you add a servlet you must manually register it in the web application's web.xml file (the web application's deployment descriptor). You can use the web.xml Visual Editor to do so. Note that when you create a servlet using the New File wizard, the IDE handles this task for you.
    Test the availability of the added resource. For example, if you have added an applet to the WAR file, define it in a JSP file.
    See Also
    About Building Web Applications

  3. #3
    Membre régulier Avatar de psycho_xn
    Inscrit en
    Mars 2007
    Messages
    250
    Détails du profil
    Informations forums :
    Inscription : Mars 2007
    Messages : 250
    Points : 96
    Points
    96
    Par défaut
    merci bcp
    il n'y a pas de réussite facile, ni d'échec définitif

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

Discussions similaires

  1. pourquoi faire un war de mon application web?
    Par rvfranck dans le forum Tomcat et TomEE
    Réponses: 1
    Dernier message: 04/10/2006, 18h49
  2. [Débutant] Séparation d'une application Web en WARS
    Par Xavier78000 dans le forum Eclipse Java
    Réponses: 1
    Dernier message: 12/12/2005, 22h46
  3. [tomcat] Création d'une application WEB
    Par bob33 dans le forum Tomcat et TomEE
    Réponses: 2
    Dernier message: 25/10/2004, 19h35

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