Apple WebObjects 3.5 Uživatelský manuál Strana 43

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 218
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 42
43
The methods that you write for your WebObjects application provide the
behavior that makes your application unique. Because you are writing
subclasses of WOApplication, WOSession, and WOComponent (in Java,
WebApplication, WebSession, and Component), you inherit the methods
provided by those classes. These inherited methods take care of the details
of receiving HTTP requests and generating responses. However, you’ll
sometimes find that you need to override some of the inherited methods to
perform certain tasks.
This chapter describes the types of methods that you generally write in a
WebObjects application. These types are:
Action methods
Initialization and deallocation methods
Request-handling methods
In cases where you override existing methods, those methods are invoked
at standard, predictable times during the application’s request-response
loop (the main loop for a WebObjects application). For background on the
request-response loop, see the chapter “WebObjects Viewed Through Its
Classes” (page 63).
As you’re writing methods, refer to the class specifications for
WOApplication, WOSession, and WOComponent to learn which messages
you can send to these objects. The class specifications are in the online
book WebObjects Class Reference.
Action Methods
An action method is a method you associate with a user action—for instance,
clicking a submit button, an active image, or a hyperlink. To associate your
method to a user action, you map it to a dynamic element that has an
attribute named
action. (In the examples just given, the dynamic elements
associated with the user actions are WOSubmitButton, WOActiveImage, or
WOHyperlink.) When the user performs the associated action, your
method is invoked.
For example, in the HelloWorld example application (in
<DocRoot>
/WebObjects/Examples/WebScript/HelloWorld, where
<DocRoot>
is your web
server’s document root), the submit button is mapped to a method named
sayHello in the Main component. When users see this page, they type in a
Zobrazit stránku 42
1 2 ... 38 39 40 41 42 43 44 45 46 47 48 ... 217 218

Komentáře k této Příručce

Žádné komentáře

LG 42LB550A manuali

Manuali dei proprietari e guide per l'utente per TV a cristalli liquidi LG 42LB550A.
We fornisce 3 manuali pdf LG 42LB550A per scaricare gratuitamente in base al tipo di documento: Manuale Utente






Più prodotti e manuali per TV a cristalli liquidi LG

Modelli Tipo di Documento
79UX340C Manuale Utente   LG 79UX340C Owner’s Manual [el] , 56 pagine
49UB8500 Manuale Utente   LG 49UB8500,105UC9 用戶指南 [el] , 56 pagine
RZ-37LZ30 Manuale Utente   LG RZ-37LZ30 Owner’s Manual, 44 pagine
49UF6300 Manuale Utente   LG 43UF6300-CD,43UF6300,49UF6300,49UF6300-CD 产品说明书, 63 pagine
55UH770T Manuale Utente   LG 55UH770T Owner's manual [en] , 41 pagine
32LJ514D Manuale Utente   LG 32LJ514D Owner’s Manual [en] , 49 pagine
55UH61700GI Manuale Utente   LG 55UH617T Owner's manual, 44 pagine
24MT49S-PZ Manuale Utente   LG 24MT49S-PZ Інструкція користувача, 34 pagine
29FU1RLD Manuale Utente   LG 29FU1RLD manuel du propriétaire, 18 pagine
49LX761H Manuale Utente   LG 49LX761H دليل المالك, 22 pagine
CT-25Q25VE Manuale Utente   LG CT-25Q25VE Owner’s Manual, 32 pagine
20LC1RB Manuale Utente    LG 20LC1RB دليل المالك, 32 pagine
29FU6RLD Manuale Utente   LG 29FU6RLD Owner's manual [en] , 8 pagine
32LB1R Manuale Utente LG 32LB1R Brukermanual, 64 pagine
L3020T Manuale Utente   LG L3020T Owner’s Manual, 41 pagine
39LN5420-TC Manuale Utente   LG 39LN5420-TC manuel du propriétaire, 41 pagine
20CD1RGE Manuale Utente   LG 20CD1RGE Owner’s Manual, 28 pagine
RT-21FD70V Manuale Utente   LG RT-21FD70V Owner’s Manual, 32 pagine
60PA6500 Manuale Utente   LG 50PA6500 Owner's manual [en] , 72 pagine
70UF7700 Manuale Utente   LG 70UF7700 Owner’s Manual [en] , 24 pagine