org.hdpagination.web.validate
Interface Validator
public interface Validator
Validator to verify search input.
- Since:
- 1.0
- Author:
- Liangfeng Ren
|
Method Summary |
ErrorMessages |
validate(javax.servlet.http.HttpServletRequest request,
java.lang.Object command)
Validate search input. |
validate
ErrorMessages validate(javax.servlet.http.HttpServletRequest request,
java.lang.Object command)
- Validate search input.
- Parameters:
request - http requestcommand - If the custom action extends directly or indirectly from AbstractCommandPaginationAction the command will be the javabean instance whose properties are populated with
name matched request parameters automatically, and under this circumstance, custom validate method can validate
against the command argument directly. Otherwise the command argument will be null,validating against request is the only way.
- Returns:
- If validation fails then return ErrorMessages containing ErrorMessage instances.
Copyright © 2008 HDPagination All Rights Reserved.