Forums Register Login
Struts Type Convertors
Hi All

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.
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards

This thread has been viewed 565 times.

All times above are in ranch (not your local) time.
The current ranch time is
Mar 17, 2018 14:41:52.