Article:
  Using the Validator Framework with Struts
Subject:   Can i change the return type of custom validator method to String or some other
Date:   2005-08-11 11:48:38
From:   J2ee_mine
Hi ,


The article is excellent. i have a doubt.


Can i change the return type of custom validator method to String or some other like int, double.


Or it should allways return Boolean.


please clarify


regards
Gopal

Full Threads Newest First

Showing messages 1 through 1 of 1.

  • Can i change the return type of custom validator method to String or some other
    2006-09-07 05:32:22  oreillybhupathi [View]

    u will create error objects in Validate(),then they r added to Action Errors class object which is return type of validate()...if u return string or anyother datatype u have to change code in validate() and html:errors(it will show list of error messages ) in JSP page.....suppose if u want to return integer value and that has to be done but in jsp,hw to display that error message?