You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Yansheng Lin <ya...@isogis.com> on 2003/08/07 17:30:55 UTC

FW: Validator

Can anyone on the dev list shed some light on the following Q?  
When could the JavaBean be a String type?

Thank you!

-----Original Message-----
From: Erez Efrati [mailto:ereze@netmedia.net.il] 
Sent: August 6, 2003 3:33 PM
To: 'Struts Users Mailing List'
Subject: Validator



I am trying to figure out the code in struts.validator.FieldsCheck.java
in order to write one of my own.
Can someone explain what the purpose of the following lines of code in
all of the validateXXX() in Struts:

	validateIntRange (...) {

		if (isString(bean)) {
			value = (String) bean;
		}
	...
	}

	Is this really necessary?

Erez



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-dev-help@jakarta.apache.org