jsp调用JavaBean tomcat出项问题
package tom.jiafei;
public class Student {
String name=null;
long number;
double weight,height;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Long getNumber() {
return number;
}
public void setNumber(Long number) {
this.number = number;
}
public double getWeight() {
return weight;
}
public void setWeight(double weight) {
this.weight = weight;
}
public double getHeight() {
return height;
}
public void setHeight(double height) {
this.height = height;
}
}
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%@ page import="tom.jiafei.Student" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body>
<form action="" method="post">
&
相关问答:
一个网站,之前是用ASP写的,现在用JSP添加了一些新的页面上去,请问一个网站能不能同时支持ASP和JSP?如果可以的话,需要如何设置呢?谢谢,不好意思,就剩这么一点点可用分了。。
就是环境问题
up
可以装 ......
我是用STRUTS ,做了一个JSP页面,提交后没有存入数据库。
JSP代码如下:
aa.jsp代码
<%@ page contentType="text/html;charset=gb2312" language="java"%>
<%@ taglib uri=" ......
SetGetPropertytest.jsp源代码如下,谢谢大家前来帮忙,同时祝大家中秋快乐
<%@ page c%>
<HTML>
<HEAD>
<TITLE>setProperty动作与getProperty动作范例 </TITLE> ......
<script language="javaScript">
function select()
{
document.selectpages.selectnum.value=document.selectpages.selectpage.value;
document.selectpages.submit();
}
&l ......