关于javaBean的问题
userInfoBean.javapackage com;
public class userInfoBean{
public String name;
public String password;
public int age;
public void setName(String name){
this.name=name;
}
public String getName()
{
return this.name;
}
public void setPassword(String password){
this.password=password;
}
public String getPassword(){
return this.password;
}
public void setAge(int age){
this.age=age;
}
public int getAge(){
return this.age;
}
}
afterResiger.jsp
<%@ page language="java" pageEncoding="utf-8" contentType="text/html;charset=utf-8"%>
<%@ page import="java.util.*" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>案例程序范例</title>
</head>
<body>
<jsp:plugin code="con.pictureApplet" codebase="." type="applet" align="center"
height="143" width="170">
<jsp:params>
<jsp:param name="picture" value="img.jpg"/>
</jsp:params>
<jsp:fallback>
插入小程序时出现错误
</jsp:fallback>
</jsp:plugin>
<form name="caseRegisterForm" method="post" action="caseAfterregister.jsp">
<table>
<tr>
<td>
设置登录账号:<input name="name" type="text" id="name"/>
</td>
</tr>
<tr>
<td>
设置登录口令:<input name="password" type="text" id="password"/>
</td>
</tr>
<tr>
<td>
设置用户年龄:<input name="age" type="text" id="age"/>
</td>
</tr>
<tr>
<td>
<input type="submit" value="注册">
<input type="submit" value="重置">
</td>
</tr>
</table>
</form>
</body>
</html>
使用以上文件中的jsp文件后老是出现问题:http://localhost:8080/login/caseResiger.jsp登录后,出现错误:
执行应用程序出错
这是怎么回事?在哪里出了问题???
--------------------编程问答-------------------- <form name="caseRegisterForm" method="post" action="caseAfterregister.jsp">
你这是想跳转? --------------------编程问答-------------------- 是的,就是跳转。
补充:Java , Java EE