You'll find a description of the topic and some other closely related examples on the "JSP - Java Server Pages" module index page.

jsp validating text box-61

For more information, refer to JSP Expression Language.

You can also use a JSP tag library available free from the Apache Jakarta Project, which provides the This sample code shows the basic structure of a JSP that uses the Web Logic JSP form validation tags.

Well House Consultants take no responsibility for the suitability of these example programs to customer's needs.

This program is copyright Well House Consultants Ltd.

(You need to use both of these validators because blank values are evaluated by the Regular Expression Field Validator as valid.) When the JSP page is re-displayed after the validator tag has found errors, it is useful to re-display the values that the user already entered, so that the user does not have to fill out the entire form again.

Use the To prevent cross-site scripting security vulnerabilities, replace any HTML special characters in user-supplied data with HTML entity references.

Past attendees on our training courses are welcome to use individual examples in the course of their programming, but must check the examples they use to ensure that they are suitable for their job.

Remember that some of our examples show you how to do things - check in your notes.

[1] Safari doesn't do validation, but instead offers a custom "email" keyboard, which is designed to make entering email addresses easier.