problem with validatin in strtuts

I have multiple submit buttons like (Add, Cancel and Delete) inside the same form. I couldn't do the struts validation as it validates for all

the flow. (i.e. Instead of validating only for Add, the form is

validating even for Delete and Cancel).So to avoid this i did the

validation inside Action Class. We are using LookUpDispatchAction.

how to do validation inside a lookupdispatchaction class

[428 byte] By [ahamad15a] at [2007-11-26 17:38:27]
# 1

Maybe I don't understand your question. But it seems simple. When it is an Add, do your validation for adds, and forward back to the page if their is a problem. Then do the same for both Cancel and Delete.

If this has something to do with a Struts question, you will find better help on a Struts forum.

zadoka at 2007-7-9 0:06:36 > top of Java-index,Java Essentials,Java Programming...
# 2

Hi,

I am using lookupdispatchactions for different actions.For example i am doing add,delete and update operations inside a lookupdispatch action.When i click add button in form it will call lookupdispatch action. and new form is opened. After entering the values inside new form i click the save button and that is forwarded to execute method which is in same lookupdispatch action and i did the validations in this execute method. Its performing all validations and not showing the message its throwing error on the server's console

Regards,

Ahamad

ahamad15a at 2007-7-9 0:06:36 > top of Java-index,Java Essentials,Java Programming...
# 3
Sounds like it has nothing to do with lookupdispatchactions. But instead to whatever error you are getting.Why didn't you mention you were getting an error in your first post? Anyway, this is starting to sound more and more like a Struts question.
zadoka at 2007-7-9 0:06:36 > top of Java-index,Java Essentials,Java Programming...