<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE validators PUBLIC 
  		"-//Apache Struts//XWork Validator 1.0.2//EN"
  		"http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">

<validators>
	<field name="upload">
		<field-validator type="fieldexpression">
			<param name="expression"><![CDATA[upload.length() > 0]]></param>
			<message>File cannot be empty</message>
		</field-validator>
	</field>
	<field name="caption">
		<field-validator type="requiredstring">
			<message>Caption cannot be empty</message>
		</field-validator>
	</field>
</validators>  		
  		