Thank you so much for trying to solve my problem..
I really need your help, as I have no collegues to help..
I tried the above said method(previous post) but still facing problem..
I will tell my doubt clearly.. please SPEND SOME TIME and do reply
I have a
JSP page in which I am searching for a record for the given emailid. For this,I have a search button. When user press SEARCH button by entering the emailid, It should call the javascript and do clientside validation for email.After validation, If a record exists with the given mailid, I am REGENERATING the same form again by displaying the corresponding record values in the textboxes below. otherwise I have to give a new form.(For this I am Using If,Else)
After displaying the existing record for given mailid, I have to allow user to UPDATE or DELETE the record.. here I have to call javascript for UPDATE button..
If no record with the given(searching) mailid, I have to give a new form and the user can fill the form and ADD the record. Here I have to call Javascript again for the ADD button..
The thing is I completed the same task with general Jsp,
servlet(web) application
Now I have to do it in struts..
Can u please tell me how to write the statements for SEARCH,ADD,UPDATE button by calling javascript..
and how to know the button the user chosen in ACTION class( ADD or UPDATE)
this is my doubt.I think it is clear..
Thank you again...
Regards,
GYReddy