hai, m doing a project with jsp and postgresql. M facing a problem...my prob is that i hv a combobox with department code connecting from database.now when i select a dept name in combo, there there is a textbox where employee id is generated....emp id is generated in this way that suppose when i select "home" dept the emp id will be 'hm1' next hm'2 ....... hm3 in this way....nw when i select another dept in the combo then this will be perform for that dept.....suppose "education" dept,then emp id will be 'edu1','edu2 '.........
here hm or edu are the dept abbreviation of respective dept that also connected from database of the same table from where dept code was connected in the combo....and 1,2,3.....are the serial no that is generated automatically.....
please help.....n give me the code.....
Tags: