duplicate definition of variable type 重复 定义 of 变量 type错误信息说的很清楚了,一个叫做type的变量被重复定义了
系统提示这个文件出错: manager.jsp ********************************************** <%@ page contentType="text/html; charset=GBK" %> <%String type=request.getParameter("usertype");%> <%String id=request.getParameter("userid");%> <%String name=request.getParameter("username");%> <%String password=request.getParameter("userpassword");%> <%String score=request.getParameter("userscore");%> <html> <head> <title> manager </title> </head> <body bgcolor="#ffffc0"> <h1> JBuilder Generated JSP </h1> <form method="post" action="dbctl"> <br><br> your id is:<%=id%><br> your name is:<%=name%><br> your score is:<%=score%><br> The id of the student you want to <%=type%> is:<input typr="texe" name="userid" size="3"><br>//:<input type="text" name="userid" size="3"><br>不知道是你手勿还是copy错了!The name of the student you want to <%=type%> is:<input type="text" name="username" size="8"><br> The password of the student you want to <%=type%> is:<input type="text" name="userpassword" size="8"><br> The score of the student you want to <%=type%> is:<input type="text" name="userscore" size="3"><br><input type="hidden" name="usertype" value="<% String type;%>">//value"<% =type%>">// <input type="submit" name="Submit" value="Submit"> <input type="reset" value="Reset"> </form> </body> </html> TRY AG!
<input type="hidden" name="usertype" value="<% String type;%>">
~~~~~~~~~~~~~这里写错了吧~<%=type%>
<input type="submit" name="Submit" value="Submit">
<input type="reset" value="Reset">
</form>
</body>
</html>DbCTL
************************************
package zlkservlet;
重复 定义 of 变量 type错误信息说的很清楚了,一个叫做type的变量被重复定义了
系统提示这个文件出错:
manager.jsp
**********************************************
<%@ page contentType="text/html; charset=GBK" %>
<%String type=request.getParameter("usertype");%>
<%String id=request.getParameter("userid");%>
<%String name=request.getParameter("username");%>
<%String password=request.getParameter("userpassword");%>
<%String score=request.getParameter("userscore");%>
<html>
<head>
<title>
manager
</title>
</head>
<body bgcolor="#ffffc0">
<h1>
JBuilder Generated JSP
</h1>
<form method="post" action="dbctl">
<br><br>
your id is:<%=id%><br>
your name is:<%=name%><br>
your score is:<%=score%><br>
The id of the student you want to <%=type%> is:<input typr="texe" name="userid" size="3"><br>//:<input type="text" name="userid" size="3"><br>不知道是你手勿还是copy错了!The name of the student you want to <%=type%> is:<input type="text" name="username" size="8"><br>
The password of the student you want to <%=type%> is:<input type="text" name="userpassword" size="8"><br>
The score of the student you want to <%=type%> is:<input type="text" name="userscore" size="3"><br><input type="hidden" name="usertype" value="<% String type;%>">//value"<% =type%>">//
<input type="submit" name="Submit" value="Submit">
<input type="reset" value="Reset">
</form>
</body>
</html>
TRY AG!