Hope you all are in good spirits.... I am using struts2 for the first time and have got stuck with Typeconvertors.I have made a type convertor which is working fine as of now with fewissue. 1.I am unable to do a mandatory check from the type convertors...is it not possible. 2.To use an alternative i used the struts 2 validation framework for the required check and all other checks via type convertor.But this creates a problem.Whenever the field is blank the validator displays the message ,but when the field is not blank and has a single character entry(valid entry is atleast 3 characters...his check is done in the typeconvertor)the typeconvertor message is displayed as expected ,but at the same time the validation framework mesage is also displayed because once the typeconvertor is called ,a null value is returned to the action class,which inturn is picked by the validation framework.
Always look on the bright side of life. At least this ad is really tiny: