Java: Unterschied zwischen den Versionen
Aus Claudio's Wiki
(→JavaDoc) |
|||
Zeile 26: | Zeile 26: | ||
=== Interessante Links === | === Interessante Links === | ||
* [http://www.jsptutorial.org/ JSP-Tutorial] | * [http://www.jsptutorial.org/ JSP-Tutorial] | ||
+ | <br /><br /> | ||
+ | |||
+ | =Interfaces= | ||
+ | Auch Konstanten und Objekte (inkl. Instanzierung) können in Interfaces geschrieben werden. Beispiel: | ||
+ | <code> | ||
+ | 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 | ||
+ | |||
+ | ... | ||
+ | } | ||
+ | </code> |
Version vom 30. März 2009, 19:03 Uhr
Java-VM-Args (kann z.B. in eclipse benutzt werden [eclipse.ini oder beim Starten von eclipse])
Inhaltsverzeichnis
JavaDoc
Apache Config
web.xml
- 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 ... }