I need your suggestins on this. I ahev a
JSP whcih actually looks like this
---------------------Employee||||Search-----------------------------
Enter Department:............||||.......Enter employee last name:
Enter location:..............|OR|.......
SearchButton2 SearchButton1.........||||
-----------------------------||||-------------------------------------
So it looks like the above one.. The user should either enter Dept and location anfd click Seachbutton1 or enter emp lastname and click on Searh button. Basically it will display search results in both the cases..
And I need to implement
validation framework also ..
When the user clicks on
SearchButton1, i need to make sure that he entered teh Dept and location and i need not bother abt the lastname firld.
OR
when the user clicks
SearchButton2, , teh user should enter the lastname and obvously I need not bother whetehr he enterd sometuhing in dept and location..
I tried somthimng like this..
I made SearchButton1 as a submit button and SearchButton2 as ordinary button and am using a javascript to submit this form
So,When I click on SearchButton1 , it is validating all teh three fields Dept, location and lastname ( lastname should be validated only if SearchButton2 is clicked)..
PLease help me in solving this.. Do I need to use Multiform stuff or something like that. please hlp me in understanding this....
[ November 22, 2003: Message edited by: manasa teja ]