I have a requirement where I need to display text field ,submit ,reset button and also "Show list" btn
If the user enters deptno in text field and presses submit ..action is deptlist.do What I need is when I click "show list" I want to open the same page but the text field must not be there instead a list box must be displayed and need the same submit and reset btns and the action element is same deptlist.do.
Is this possible Can some one give me idea
Baps Vakkalagadda
Ranch Hand
Joined: May 25, 2004
Posts: 47
posted
0
It is possible. Use a flag variable to track the status (submission type).
Anonymous
Ranch Hand
Joined: Nov 22, 2008
Posts: 18944
posted
0
****How do I pass/change the flag on button click
test.jsp "<"% int flag =0 ;%">" "<"FORM name="dept_frm" method="Post" action="dept.do"">" "<"% if(flag==1){ %">"