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">
&
相关问答:
包括参数
String path = request.getContextPath();
String basePath = request.getScheme() + "://"+ request.getServerName() + ":" + request.getServerPort()+ path + "/"; ......
我的开发的平台是Myeclipes6.0 + tomcat5.x + mysql
我所有的编码方式都是用的UTF-8
我只用了Strtus框架
在一个form中如下用的是post的提交方式:
<form class="form" action=&quo ......
SetGetPropertytest.jsp源代码如下,谢谢大家前来帮忙,同时祝大家中秋快乐
<%@ page c%>
<HTML>
<HEAD>
<TITLE>setProperty动作与getProperty动作范例 </TITLE> ......
如题!
目的:用pager-taglib做分页;
现在的问题:页面数据显示不出(但数据是取到的,因为控制台可以打印出数据);
比如我的jsp页面里有这么一段:
Java code:
<%
String offset = ......
我现在的需求是这样的,一张表有任务名称,完成时间等信息,我要在页面上显示这些任务的进度情况,
比如一项任务规定是三天时间完成,但是用户最终提交任务完成情况的时候输入这项任务花了多长时间 ......