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">
&
相关问答:
我的开发的平台是Myeclipes6.0 + tomcat5.x + mysql
我所有的编码方式都是用的UTF-8
我只用了Strtus框架
在一个form中如下用的是post的提交方式:
<form class="form" action=&quo ......
问题1.
如何通过RandomAccessFile类的seek()方法将指针移动到文件末尾,再用writeChars(String s)将数据写入某个文档文件
问题2.
StringTokenizer是什么东西,干嘛用的?
由于小弟初学js ......
在上一页面存储时的代码。
<%
List foodList = new ArrayList();
//这是从数据库中获取List,方法返回类型为List.
foodList = getDataBean.getAllFoodInfo();
session.setAttribute("FO ......
问题一:
Struts2的迭代标签怎样读取JSP脚本的值,代码如下
<%
int[] str={1,2,3,4,5,6,7,8,9,10};
%> <s:iterator id="techValueArray" value=" <%=str %> ......
在flex 向jsp传数据的时候我是这样解决的.
new String(str.getBytes("ISO8859-1"),"UTF-8") ;
但是从jsp向flex返回数据的时候.我怎么转都是乱码?
怎么解决呢?
数据库是 ......