Package examples.jsp.tagext.form_validation

This example demonstrates how to use WebLogic JSP Form Validation Tags. Form validation tags are used to verify the made using html forms. The tags can:
  • Verify that a required field has been filled in
  • Verify that two fields contain identical values
  • Verify the input using a regular expression
  • Verify the input using a user-written validation Jav class.

          Instructions for Building and Running the Example

  Additional Resources for examples.jsp.tagext.counter

FormValidation.jsp This is the JSP page that runs this example.
successPage.jsp This page is displayed when all form fields validate correctly.
weblogic-vtags.jar The tag library containing the WebLogic JSP Form Validation Tags.
input.jar The tag library containing the Apache Jakarta Input tag.
images\warning.gif Image files used to display the warning icon.
 

Instructions for Package examples.jsp.form_validation

 

Build the Example

  1. Open a new command shell.

  2. Set up this development shell as described in Setting up Your Environment for Building and Running the Examples.

  3. In this development shell, switch to the SAMPLES_HOME\server\examples\src\examples\jsp\tagext\session directory of your WebLogic Server distribution.

  4. Build the example using the following command line: (this will copy the jsps and resources to the correct locations)
      prompt> ant

  5. Start WebLogic Server with the examples configuration.

 

Configure the Server

Make sure that the examplesWebApp is deployed on your server.

 

Run the Example

Use a web browser to load the following URL:
http://www.setgetweb.com:7001/examplesWebApp/FormValidation.jsp

 

For more information on WebLogic JSP Form Validation Tags, see Using WebLogic JSP Form Validation Tags.

For more information on WebLogic JSP Tag Libraries, see Programming WebLogic JSP Tag Libraries.

For more information on WebLogic JSP, see Programming WebLogic JSP.