Ya actually i have a requirement which is I have four questions 1.DOB? 2.DOJ? 3.mothers name? 4.Grand father occupation? My requirement is getting any of two questions randomly into jsp page? How to solve this requirement using Struts 2.x JSP Java And how to integrate java application to jsp page?