Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

All Questions

Filter by
Sorted by
Tagged with
6 votes
2 answers
1k views

Servlet file uploader

I think this code looks ugly, especially with the multiple try-catch blocks, but I don't know how to rewrite it: ...
gstackoverflow's user avatar
3 votes
1 answer
404 views

Servlet responses to upload/download requests

My task is to write a program to store files in object store. One of the subtasks requires to send json or xml format response to the file uploader/downloader as requested by client. The following ...
gkiko's user avatar
  • 131
4 votes
0 answers
632 views

Exception logger for servlets and JSPs

I hate using unnecessary catch blocks and I like to see my code look beautiful. In most of the cases in my project, which is a web application, I can't declare many ...
phoenix's user avatar
  • 277
1 vote
2 answers
7k views

Servlet and JSP for user registration, with CAPTCHA and error handling

I have a form that submits to a registration Servlet, which inserts a new user to the database when they sign up to the web application. Depending on the erroneous user input, the Servlet will ...
k_rollo's user avatar
  • 478
4 votes
1 answer
2k views

Error Handling in Servlets and JSPs

I have an HTML login form that is processed by a servlet, which then redirects the user to a result page. login.jsp: ...
k_rollo's user avatar
  • 478
5 votes
3 answers
5k views

User registration Servlet

I have a servlet that processes user registration to a website. It takes inputs from an HTML form like username, password, email, etc. MySQL Table: ...
k_rollo's user avatar
  • 478