Question: how to retain dropdown selected value in struts2?
Answer: just make sure your listKey and value filed match property name you have give to it. Like here it is listKey="categoryId" and for select give it to value categoryId . that will make your select box value selected.