Form Validation Sample

This page flow sample shows several ways to perform validation of data entered on input forms.

Concepts Demonstrated by this Sample

Location of Sample Files

In the SamplesApp, the validation samples start in the following location:

SamplesApp/WebApp/struts/validation/Controller.jpf

On the local file system, the samples are located at:

<BEA_HOME>\weblogic81\samples\workshop\SamplesApp\WebApp\struts\validation\Controller.jpf

To Run the Samples

  1. Start WebLogic Server in the Workshop domain.

    • On Microsoft Windows systems, run

      <BEA_HOME>/weblogic81/samples/domains/workshop/startWebLogic.cmd

    • On Linux or Solaris systems, run:

      <BEA_HOME>/weblogic81/samples/domains/workshop/startWebLogic.sh

  2. Launch the service either by opening it in WebLogic Workshop and selecting the Start operation or by entering http://localhost:7001/WebApp/struts/validation/Controller.jpf in the address bar of your browser. If WebLogic Server is running in the Workshop domain on this machine, you may click here to run the sample.

Related Topics

Validating User Input

@jpf:validation-error-forward Annotation

@jpf:message-resources Annotation

Merging Struts Artifacts Into Page Flows