程序代码:
<%@page contentType="text/html;charset=utf-8"%>
<html>
<body>
<form action="people.jsp" method=get name=form>
请输入姓名<input type="text" name="name"><br>
<input type="submit" value="submit" name="submit">
</form>
</body>
</html>
<html>
<body>
<form action="people.jsp" method=get name=form>
请输入姓名<input type="text" name="name"><br>
<input type="submit" value="submit" name="submit">
</form>
</body>
</html>
程序代码:
<%@page contentType="text/html;charset=utf-8"%>
<html>
<body>
<%!
int count;
String person;
public void judge()
{
if(count==0)
{
person=new String();
}
}
public void addPerson(String p)
{
if(count==0)
person.append(p);
else
person.append(","+p);
count++;
}
%>
<%
String name=request.getParameter("name");
byte bb[]=name.getByte("iso-8859-1");
name=new String(bb);
if(name.length()==0||name.length()>10)
%>
<jsp:forward page="inputName.jsp"/>
<%
judge();
addPerson(name);
%>
<br>
目前共有<%=count%>个人浏览了该页面,分别是
<br><%=person%>
</body>
</html>
<html>
<body>
<%!
int count;
String person;
public void judge()
{
if(count==0)
{
person=new String();
}
}
public void addPerson(String p)
{
if(count==0)
person.append(p);
else
person.append(","+p);
count++;
}
%>
<%
String name=request.getParameter("name");
byte bb[]=name.getByte("iso-8859-1");
name=new String(bb);
if(name.length()==0||name.length()>10)
%>
<jsp:forward page="inputName.jsp"/>
<%
judge();
addPerson(name);
%>
<br>
目前共有<%=count%>个人浏览了该页面,分别是
<br><%=person%>
</body>
</html>
连接不了????
网页上提示的内容是jsp:param 的 name 和 value有点问题
初学者
按照书上的来敲的找不到问题在哪