All Questions
6 questions
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:
...
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 ...
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 ...
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 ...
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:
...
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:
...