Chapter 6. Sending Information
Topics in this Chapter:
Using the Response Object
HTTP Status Codes
HTTP Headers
Setting Cookies
Handling Errors
JSP can perform a lot of complex tasks on the server, ranging from managing a database to performing complex math. However, it is important to keep in mind that JSP is primarily designed to describe data being sent back to the user.
The examples in previous chapters have shown how easy it is to send simple information from a JSP page. Using the HTML or XML template, the methods of the out
object, or the expression tags (<%=...%>
), the JSP author can generate content for the resulting page. The process of sending simple data really does not involve much more than that.
Unfortunately, real-world data is often ...
Get Core JSP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.