top-image

Tag archives for servlet

Java : Avoid Unauthorized File Downloading, Use of Token, Download File Servlet
Hello, I would like to expose a home-made solution in order to avoid the unauthorized file downloading via the generation and use of unique token (PART I). The second part (PART II) contains an example of download file servlet allowing several methods of writing file's content to client.   PART I Here, a singleton named AntiDownloadSingleton used on server side to: generate an ...more»
Java/Spring/Web: Logout servlet example
Hi, A simple mini-post concerning a servlet to invalidate the current session when the user wants to logout. This is directly supported by the servlet api by the call to appropriate method HttpSession.invalidate() in a servlet or a controller dedicated to invalidate session. I). Server Side components First, following the codes of coordinator servlet LogoutServlet: Explanations: This class LogoutServlet implements the interface HttpRequestHandler which ...more»
bottom-img
Copyright ® 2012 Huseyin Ozveren. No reproduction, even partial, can be used from this site and all its contents including text, documents, images, etc.. without the express permission of the author.