Problem (See the initial and previous version.) This time, I have incorporated all the good points made by mtj. See […]
Tag: servlets
A Java Web App with Servlets, JSP and Session: shopping cart example
Problem This is the only Servlet I have: package com.tugay.shopping; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; […]
any better way than using old servlet api for downloads
Problem I am wondering if the following code can be modified to be used with latest version of spring APIs? […]
Servlet for querying database on some high-loaded system
Problem What should the code do: Process client HTML requests, query database and return the answer in XML. Working with […]
Filter to block duplicate POST submission on server side
Problem I am working on a JSF 1.1 webapp. Lots of POST request take some time and users have the […]
Open source Pastebin tool made in JSP and servlet
Problem I’m a student and still studying. I just made my own Pastebin tool to generate source code. I’ve also […]
Correct synchronization of reads and writes to ConcurrentHashMap and ConcurrentLinkedQueue
Problem I am writing a web application (Servlets, JDBC, no Spring – for learning purposes) that accepts orders from customers, […]
Handling optional parameters in a servlet
Problem I have a form that submits to a servlet that has optional parameters. If they are empty they are […]
Web application for recording blog comments
Problem I am working on some coursework for a simple Java EE web application that records blog comments. On the […]
Servlet to let a user download a file
Problem Is the code below an efficient way to get the zip file from the server? The code works fine […]
- 1
- 2