Java Programming Code Examples Java > Servlets Code Examples Access an ejb from a servlet Accessing a data source from a servlet Accessing a java mail session from a servlet Accessing servlet jndi environment variables An included servlet Attachment receiver Background tasks Basic authentication web resource Buffering servlet responses Count total number of live sessions in a web application Create a servlet session Delegate filter Delegate servlet requests to a handler Destroy a servlet session Forward to a servlet by name Forward to a servlet by request Generic filter Get security information Get servlet session time info Getting information regarding the client browser using JSP Handling form content Handling invalid sessions Hello servlet Hello world Http client pull model Include a servlet JSP file response filter JSP Http servlet response wrapper JSP servlet output stream Load servlet at startup Login page in jsp Open a file using a servlet Publishing AJMS message from a servlet Reading from an abstract resource Receive servlet forward Request authorization headers Request timer filter Saaj receiving attachments servlet Sending AJMS message from a servlet Sending errors Sending redirects Server information Servlet context event notifications Servlet counter Servlet destroy callback Servlet error handler Servlet exception handler Servlet information Servlet initialisation parameters Servlet session event notifications Simple download Simple receiver Updating the client cache Using path information Working with images Write to a temporary file