![]() |
![]() |
![]() |
![]() |
Servlet Operations
- Set the MIME output type
- Get data from a Servlet Request
- Get data from an HttpServlet Request
- Prepare the Servlet to write binary data
- Prepare the Servlet to write text
- Send text to the output...
- Close the output stream...
Set the MIME output type A servlet may provide its output as plain text, or as text formatted in HTML, or in a number of different output types. Any MIME type may be entered in this field; a number of the most common types are already included in the list.
Get data from a Servlet Request Servlet Requests contain information. Some common values in a Servlet Request are on this page. The ServletRequest Viewer is another good way to get the code associated with Servlet Requests.
Get data from an HttpServlet Request HttpServlet Requests contain a large amount of information. Some common values in an HttpServlet Request are on this page. The ServletRequeset Viewer is another good way to get the code associated with HttpServlet Requests.
Prepare the Servlet to write binary data Before a servlet can write binary data, it must set up the proper outputstream. Note that a servlet can output either binary data or text data; trying to set both will cause an error.
Prepare the Servlet to write text Before a servlet can write text data, it must set up the proper output stream. Note that a servlet can output either binary data or text data; trying to set both will cause an error.
Send text to the output... This will prompt the user for the source of text to be sent to the servlet's output stream, which must have been set up previously.
Close the output stream... When a servlet is finished outputting, closing the output stream can free resources.
Data Representations, Inc. http://www.datarepresentations.com support@datarepresentations.com sales@datarepresentations.com |
![]() |
![]() |
![]() |
![]() |