AdvancedSearchForm
This is the search action form to use when you want to create a advanced search page.
Struts config
<form-bean name="advancedSearchForm" type="com.escenic.search.AdvancedSearchForm"/>
Action Error
This are the errors returned by the validate method found on this action form.
errors.required
-
(On the
searchExpression
property.) when a value is missing for this property errors.required
-
(On the
startDay
property.) when a value is missing for this property errors.integer
-
(On the
startDay
property.) when the value of this property can't be converted to a integer errors.range
-
(On the
startDay
property.) when the value of this property is not between '1' and '31' errors.required
-
(On the
startMonth
property.) when a value is missing for this property errors.integer
-
(On the
startMonth
property.) when the value of this property can't be converted to a integer errors.range
-
(On the
startMonth
property.) when the value of this property is not between '0' and '11' errors.required
-
(On the
startYear
property.) when a value is missing for this property errors.integer
-
(On the
startYear
property.) when the value of this property can't be converted to a integer errors.range
-
(On the
startYear
property.) when the value of this property is not between '0' and '{@link Integer#MAX_VALUE}' errors.date
-
(On the
fromDate
property.) when we are not able to produce a date. errors.required
-
(On the
toDay
property.) when a value is missing for this property errors.integer
-
(On the
toDay
property.) when the value of this property can't be converted to a integer errors.range
-
(On the
toDay
property.) when the value of this property is not between '1' and '31' errors.required
-
(On the
toMonth
property.) when a value is missing for this property errors.integer
-
(On the
toMonth
property.) when the value of this property can't be converted to a integer errors.range
-
(On the
toMonth
property.) when the value of this property is not between '0' and '11' errors.required
-
(On the
toYear
property.) when a value is missing for this property errors.integer
-
(On the
toYear
property.) when the value of this property can't be converted to a integer errors.range
-
(On the
toYear
property.) when the value of this property is not between '0' and '11' errors.date
-
(On the
toDate
property.) when we are not able to produce a date.
AdvancedSearchForm
inherits properties from:
-
com.escenic.search.ArticleSearchForm
It also has the following properties of its own:
all
(read/write)- String
-
All the words written here must be present in the article to get a hit.
exactPhrase
(read/write)- String
-
All words written here will be searched for as a phrase.
atLeastOne
(read/write)- String
-
At least one of these words must be present.
without
(read/write)- String
-
These words must NOT be present.
startDay
(read/write)- String
-
The day on which to start searching; default value=1
startMonth
(read/write)- String
-
The month on which to start searching; default value=0
startYear
(read/write)- String
-
The year on which to start searching; default value=current year
toDay
(read/write)- String
-
The day on which to stop searching; default value=1
toMonth
(read/write)- String
-
The month on which to stop searching; default value=0
toYear
(read/write)- String
-
The year on which to stop searching; default value=0
days
(read-only)- List
-
A list used to prepopulate the startDay and toDay properties. The list contains all values in the range from '1' to '31'. Both 'label' and 'value' is the number representation of the day of the month.
months
(read-only)- List
-
A list used to prepopulate the startMonth and toMonth properties. The list contains all values in the range from '0' to '11'. Both 'label' and 'value' is the number representation of the month of the year.
years
(read-only)- List
-
A list used to prepopulate the startYear and toYear properties. The list contains all values in the range from '1990' to 'currentYear'. Both 'label' and 'value' is the number representation of the year.