Hi,
I have a question concerning the way of doing a validation.
I have an action and the input and the response
jsp (view) are the same file.
Depending on the selection the jsp page shows in the same form based on a if-else statement a list and an edit mode. But I want to validate the fields in the edit mode.
Only I have a problem, I want to validate these fields if they are empty or not. But the action tries to validate these fields also when the view is in "list mode" and nothing else happens because the fields are of course empty (because they are not represented anymore)
To validate an action there are 2 methods: in a xml file or in a validate method.
I have tried with both but the effect is the same.
Can I accomplish this?
If yes, how?
Many thanks