主题:求助
<%@ page contentType="text/html;charset=gbk"%>
<%@ page import="java.util.*"%>
<html>
<body>
<form name ="form1" action="yishen16.jsp" method="post">
程序示例鏈接:
<select name="goaddress" onchange="javascript:form1.submit()">
<option value="novalue"></option>
<option value="1">实例13</option>
<option value="2">实例14</option>
<option value="3">实例15</option>
</select>
</form>
<%
String s=null;
s=request.getParameter("goaddress");
if(s!=null)
{switch(s.charAt(0))
{case'1':
%>
<jsp:forward page="yishen13.jsp">
</jsp:forward>
<%
break;
case '2':
%>
<jsp:forward page="yishen14.jsp">
</jsp:forward>
<%
break;
case '3':
%>
<jsp:forward page="yishen15.jsp">
</jsp:forward>
<%
break;
default:
out.println("你没有选择");
}
}
else
out.println("你没有选择.");
%>
</body>
</html>
请问各位高手帮帮手这段代碼码那里出错,本人调试了好久还调试不出来,
<%@ page import="java.util.*"%>
<html>
<body>
<form name ="form1" action="yishen16.jsp" method="post">
程序示例鏈接:
<select name="goaddress" onchange="javascript:form1.submit()">
<option value="novalue"></option>
<option value="1">实例13</option>
<option value="2">实例14</option>
<option value="3">实例15</option>
</select>
</form>
<%
String s=null;
s=request.getParameter("goaddress");
if(s!=null)
{switch(s.charAt(0))
{case'1':
%>
<jsp:forward page="yishen13.jsp">
</jsp:forward>
<%
break;
case '2':
%>
<jsp:forward page="yishen14.jsp">
</jsp:forward>
<%
break;
case '3':
%>
<jsp:forward page="yishen15.jsp">
</jsp:forward>
<%
break;
default:
out.println("你没有选择");
}
}
else
out.println("你没有选择.");
%>
</body>
</html>
请问各位高手帮帮手这段代碼码那里出错,本人调试了好久还调试不出来,