How to kill http session?
A session can be closed by calling the invalidate() method of the HttpSession class. session.invalidate();
View ArticleHow 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 ArticleAccess 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
More Pages to Explore .....