Browsing index pages (3 articles)
↧
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 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 ArticleHow to kill http session?
A session can be closed by calling the invalidate() method of the HttpSession class. session.invalidate();
View Article
Browsing index pages (3 articles)