9. Web Applications
I need new ideas for the web. People are already getting sick of reading the word “SOME PIG!”
–E. B. WHITE, CHARLOTTE’S WEB
This chapter focuses on building Web applications in Java. Writing secure Web applications is challenging in any language. We focus on Java both because it is commonly used and because Java’s class library makes it easy to give brief examples of good and bad Web-facing code. Web applications are tricky for a number of reasons:
• Users have easy access to the application, so malicious users have easy access to the application, too. There’s no way to know beforehand that a request will be benign.
• The HTTP protocol was not designed for applications—and certainly not for secure applications. HTTP creates ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access