Web Development with Java


package shared; public enum



Download 1,94 Mb.
Pdf ko'rish
bet78/82
Sana14.07.2022
Hajmi1,94 Mb.
#797363
1   ...   74   75   76   77   78   79   80   81   82
Bog'liq
Web Development With Java

package
shared;
public enum
AttributeType { CHECKED, SELECTED }
Listing A.5
The 
AttributeType
enumeration.
A.4.4 Helper 
Base
The helper base classes have been used since Chapter Four. The subsequent helper 
base classes from each chapter extend the helper base from the previous chapter. 
Most of the details of the classes were covered in the book, but not every version 
of an overloaded method was covered. Refl ection was also used in several places 
to simplify the work of the controller helper; the details of using refl ection should 
be covered in a Java programming text.
Helper Base Chapter Four
This base class has member variables for the request, response and logger. These 
are initialised when the base class is constructed. There are also default implemen-
tations of the 
doGet
and 
doPost
methods that only display an error. The session 
is used to store data, the population of a bean is automated and refl ection is used 
to execute a method that is associated with a button. Listing A.6 is the helper base 
class from Chapter Four.
package
shared;
import
java.io.IOException;
import
java.io.PrintWriter;
import
java.lang.refl ect.InvocationTargetException;
import
java.lang.refl ect.Method;
import
javax.servlet.ServletException;
import
javax.servlet.http.HttpServletRequest;
import
javax.servlet.http.HttpServletResponse;
import
org.apache.log4j.Level;
import
org.apache.log4j.Logger;
public abstract class
HelperBaseCh4 {
protected enum
SessionData { READ, IGNORE };


Appendix 
261

Download 1,94 Mb.

Do'stlaringiz bilan baham:
1   ...   74   75   76   77   78   79   80   81   82




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish