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 |
JSP (Java Server Pages) is a server side technology used for presentation layer for the web applications. JSP are available on the server machine which allows you to write template text in (the client side languages like HTML, CSS, JavaScript and so on) and interact with backend Java code.
4
votes
1
answer
2k
views
Error Handling in Servlets and JSPs
</td></tr>
</table>
<br/>
<input type="submit" value="Try Again"/>
</form>
<% } else {
// redirect on illegal access of jsp
response.sendRedirect("index.jsp");
}
%>
(Kindly forgive the …
1
vote
2
answers
7k
views
Servlet and JSP for user registration, with CAPTCHA and error handling
(user);
response.sendRedirect("register-result.jsp");
}
// wrong captcha answer
} else {
response.sendRedirect("register-result.jsp");
}
}
JSP … The error messages are also hardcoded in JSP as seen above.
Is there an elegant way to handle user input errors and error messages, where they do not have to be hardcoded in the JSP itself? …