Divert User Validation


Overview
Product Tour
Download
Installation
Registration
FAQs
Email


    

1. Validate.java

There are currently 2 versions of this program. Follow the steps here if you need to customize your own user validation.

2. Download

Download from the links in step 1 and rename the program as Validate.java.
Move Validate.java to the same directory as Validate.class.

3. Customise

basePath method of Validate.java check the userid and password supplied as parameters. If the validation is successful, the user directory is return as string.
Null is returned when validation fails.
You cannot alter basePath method signature because it is called from DivertServlet.class.

4. Compile

[root@web /classes]# javac Validate.java 

5. DivertServlet.properties

Edit DivertServlet.properties according to your changes.

5. Restart Java based Webserver

Restart is necessary to reload Validate.class.