Quantcast
Channel: web development helpdesk » servlet
Browsing all 3 articles
Browse latest View live

How to kill http session?

A session can be closed by calling the invalidate() method of the HttpSession class. session.invalidate();

View Article



How can I return an image using a servlet?

Basically you stream the image to the http response stream. Easier to explain with code so here’s a simple example. import java.io.File; import java.io.FileInputStream; import java.io.IOException;...

View Article

Access servlet request using DWR

When using DWR you sometimes need access to the servlet request or the session. When you do you can get access to them via the DWR WebContext class as shown in the following example code. WebContext...

View Article
Browsing all 3 articles
Browse latest View live




Latest Images