WebLogic Server 6.1 Code Examples, BEA Systems, Inc.

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:

          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. In your WebLogic Server installation, copy
    samples/examples/jsp/tagext/form_validation/FormValidation.jsp
    to
    config/examples/applications/examplesWebApp/FormValidation.jsp

  2. In your WebLogic Server installation, copy
    samples/examples/jsp/tagext/form_validation/successPage.jsp
    to
    config/examples/applications/examplesWebApp/successPage.jsp

  3. In your WebLogic Server installation, copy
    ext/weblogic-vtags.jar
    to
    config/examples/applications/examplesWebApp/WEB-INF/lib/weblogic-vtags.jar

  4. Create the following subdirectory in your WebLogic Server installation (if it does not already exist): config/examples/applications/examplesWebApp/images

  5. In your WebLogic Server installation, copy
    samples/examples/jsp/tagext/form_validation/images/warning.gif
    to
    config/examples/applications/examplesWebApp/images/warning.gif

  6. 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://localhost:7001/examplesWebApp/FormValidation.jsp

There's More...

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.


Documentation is available at
@DOCSWEBROOT

Copyright © 2001 BEA Systems, Inc. All rights reserved.