Java Reference
In-Depth Information
println() method
used to output
HTML
HTML code
for invalid
action Web
page
error message
to display on
Web page
HTML code
for null
action Web
page
FIGURE 12-31
2. Enter lines 226 through 277 as shown in Figure 12-30.
TextPad displays the code that outputs a simple HTML Web page when an
exception is caught (Figure 12-32).
HTML code
for WebStocks
Error Web page
HTML code
for WebStocks
Error Web page
error message
to display on
Web page
HTML code
for WebStocks
Error Web page
FIGURE 12-32
The first method called within the doPost() method is logonValidated(),
which begins on line 278. This method determines if the user already has logged
on to the Web application; if the user is not logged on, the logonValidated()
method manages the log on process. Passing the request, response, and session
objects allows the logonValidated() method to have access to the session
attributes and to forward the request to an appropriate JSP.
 
Search WWH ::




Custom Search