Java: Unterschied zwischen den Versionen
Aus Claudio's Wiki
(→web.xml) |
|||
Zeile 10: | Zeile 10: | ||
=== web.xml === | === web.xml === | ||
+ | Web.xml ist die Konfigurationsdatei für den Servlet-Container. | ||
+ | <br /> | ||
; Element | ; Element | ||
: load-on-startup (optional) | : load-on-startup (optional) | ||
Zeile 20: | Zeile 22: | ||
; Beispiel: | ; Beispiel: | ||
: <load-on-startup>0</load-on-startup> | : <load-on-startup>0</load-on-startup> | ||
− | |||
== JSP == | == JSP == |
Version vom 19. Mai 2009, 09:58 Uhr
Java-VM-Args (kann z.B. in eclipse benutzt werden [eclipse.ini oder beim Starten von eclipse])
Inhaltsverzeichnis
JavaDoc
Apache Config
web.xml
Web.xml ist die Konfigurationsdatei für den Servlet-Container.
- Element
- load-on-startup (optional)
- Wert
- Ganzzahl
- Beschreibung
- Definiert, dass das zugehörige Servlet beim Starten der Servers mit gestartet wird. Die Ganzzahl gibt die Reihenfolge an. Wenn 0, dann ist die Reihenfolge egal. Ab Servlet-Schema 2.4 darf load-on-startup nicht leer sein (<load-on-startup/>).
- Beispiel
- <load-on-startup>0</load-on-startup>
JSP
Interessante Links
Interfaces
Auch Konstanten und Objekte (inkl. Instanzierung) können in Interfaces geschrieben werden. Beispiel:
public interface MyConstants { /** Constant 1 */ public static final String CTX_RUNTIME = "RUNTIME"; /** Constant 2 */ public static final String INDIV_ITEM = "INDIV_ITEM"; /** Objects */ public static final Map<String, String> myMap = new HashMap<String, String>(10); // Auch neue Objekte sind möglich ... }