Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Servlet is a Java application programming interface (API) running on the server machine which can intercept on the requests made by the client and can generate/send a response accordingly.
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:
<strong>LOG IN</strong>
<p>Please enter your credentials.</p>
<form action="proc …
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 sendRed …
5
votes
3
answers
5k
views
User registration Servlet
My other servlets are formatted similarly as well. What is the best practice if catching NPE is not encouraged? …
0
votes
User registration Servlet
This is just to show my approach, based on Simon's answer (which I accepted). Since some of the Strings are allowed to be null (i.e. userFirstName and userLastName), I put the required details in a St …