jbuilder7 如何下运行Jsp。 直接调试一个单个JSP页面看看,Jsp1.jsp可能是你调用的javabean有错误,Jsp2.jsp中不能找到你的javabean 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 先编译javabean在运行Jsp1.jsp看看 javabean编译通不过你的程序肯定 有问题 package jsp;public class Jsp1Bean { private String sample = "Start value"; //Access sample property public String getSample() { return sample; } //Access sample property public void setSample(String newValue) { if (newValue!=null) { sample = newValue; } }}这是javabean<%@ page contentType="text/html; charset=GBK" %><html><head><title>Jsp1</title></head><jsp:useBean id="Jsp1BeanId" scope="session" class="jsp.Jsp1Bean" /><jsp:setProperty name="Jsp1BeanId" property="*" /><body><h1>JBuilder Generated JSP</h1><form method="post"><br>Enter new value : <input name="sample"><br><br><br><input type="submit" name="Submit" value="Submit"><input type="reset" value="Reset"><br>Value of Bean property is :<jsp:getProperty name="Jsp1BeanId" property="sample" /></form></body></html>这是jsp,有错吗? 在线等答案求解 反射创建对象报错 4个问题 一行语句太长了怎么办 字符串 语法错误,将“enum Identifier”插入到完整 EnumHeaderName 中 什么意思啊 刚入门(看完一本入门级的书籍),看《Java与模式》合适吗? [推荐]Java的内存泄漏 一个很简单的问题 从数据库中查询出的Resultset如何在JTable中显示 有谁可以提供一个简单的class给我.要求是打开一个指定路径文本文件.把它的内容读出来.用System.out.println显示 只读类的一个问题
在运行Jsp1.jsp看看
你的程序肯定 有问题
private String sample = "Start value";
//Access sample property
public String getSample() {
return sample;
}
//Access sample property
public void setSample(String newValue) {
if (newValue!=null) {
sample = newValue;
}
}
}
这是javabean
<%@ page contentType="text/html; charset=GBK" %>
<html>
<head>
<title>
Jsp1
</title>
</head>
<jsp:useBean id="Jsp1BeanId" scope="session" class="jsp.Jsp1Bean" />
<jsp:setProperty name="Jsp1BeanId" property="*" />
<body>
<h1>
JBuilder Generated JSP
</h1>
<form method="post">
<br>Enter new value : <input name="sample"><br>
<br><br>
<input type="submit" name="Submit" value="Submit">
<input type="reset" value="Reset">
<br>
Value of Bean property is :<jsp:getProperty name="Jsp1BeanId" property="sample" />
</form>
</body>
</html>这是jsp,有错吗?