posted 20 years ago
****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){
%">"
"<"SELECT name="dept_code"">"
"<"OPTION value="-1"">"100"<"/OPTION">"
"<"OPTION value="-1"">"200"<"/OPTION">"
"<"/Select">"
"<"%
}else{
%">"
"<"input name = dept_code value = Enter /">"
"<"form action = test.jsp/">"
"<"input type=submit name=action value="show list"
"onClick flag = 1" /">" click
"<"/form">"
"<"%}%">"
"<"input type=submit name=action value="Login"">"
"<"/form">"
[ August 25, 2004: Message edited by: shan javan ]
[ August 25, 2004: Message edited by: shan javan ]