struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Sherman <>
Subject Form Field Unset Condition
Date Sat, 29 Mar 2003 16:45:27 GMT
I asked a similar question last week and am still having trouble with this 
simple idea.

I have a form:

<form-bean	name="senderEditForm"
	<form-property	name="id"
			type="java.lang.String" />

With validation:

<form	name="senderEditForm">
	<field property="id" depends="integer" />

This Action code:

DynaValidatorForm  dynaForm  = (DynaValidatorForm) form;
if ( CONDITION ) {
	// Do Work If "id" is set

Two questions:

1. Am I correct is using String as the form-property type?

2. What should be used as CONDITION so that CONDITION is true if the 
parameter "id" has been set? (I assume that my validation should make sure 
"id" is an integer if it is set.)

Thank you very much for your assistance,


Adam Sherman
Tritus CG Inc.
+1 (613) 797-6819

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message