JSTL: JSP Standard Tag Library (by
Jeff Heaton) Chapter 3: Understanding Basic Tag Logic (return to contents) |
|
Exceptions |
|
Listing 3.1 | Division by zero is not an exception |
Listing 3.2 | An uncaught exception (page will display an error) |
Listing 3.3 | Catch division by zero |
Listing 3.4 | Catch an exception |
Conditions |
|
Listing 3.5 | If statement with a body |
Listing 3.6 | If statement with no body |
Listing 3.7 | Mutual exclusion |
Listing 3.8 | "If" statement with "else" |
Chat Application |
|
Listing 3.9 | Chat login |
Listing 3.10 | Main chat page |