requiredif validtor in struts

Hi everyone
There will be a radio button in a form, which says round trip and one way, if the user selects radio button, then only return field should be validated. can you people please let me know the code written here is write or not.?