You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Juan Espinosa <pc...@adinet.com.uy> on 2006/11/30 13:30:38 UTC

VALIDATION

hi to all, im having some problems with validation i have an action named
RegisterCustomer with three methods and an object

RegisterCustomer implements ModelDriven
	Customer customer = null;

	getModel
	showCustomerRegistrationView
	registerCustomer


I want to know if could use validation in this way, telling validation to be
used only in the medthod registercustomer and the results for this method

validationOk - result  registrationView
validationFail - result registrationEnd

I dont want to use the methods input and success, also in this action im
using the interceptor Modeldriven the get the customer The customer is
created upon a session parameter, if parameter is personal i create a
Personal customer, if the parameter is enterprise i create a
EnterpriseCustomer, both extends Customer class.

This parameter class is loaded by another action SelectCustomer, that based
in a pair of radio buttons load the parameter in the session.

I had all working but i cant do the validation work

Please help me !!!!!

Regards
		Juan


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