HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.exception org.apache.jasper.JasperException: /index.jsp(8,31) quote symbol expected
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:200)
org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:150)
org.apache.jasper.compiler.Parser.parseUseBean(Parser.java:955)
org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1138)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1448)
org.apache.jasper.compiler.Parser.parse(Parser.java:133)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.
--------------------------------------------------------------------------------Apache Tomcat/6.0.13上面是登陆页面是显示的信息!怎么解决?
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
org.apache.jasper.compiler.Parser.parseAttribute(Parser.java:200)
org.apache.jasper.compiler.Parser.parseAttributes(Parser.java:150)
org.apache.jasper.compiler.Parser.parseUseBean(Parser.java:955)
org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1138)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1448)
org.apache.jasper.compiler.Parser.parse(Parser.java:133)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:167)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
note The full stack trace of the root cause is available in the Apache Tomcat/6.0.13 logs.
--------------------------------------------------------------------------------Apache Tomcat/6.0.13上面是登陆页面是显示的信息!怎么解决?
<%@page contentType="text/html;charset=gb2312"%><%@page import ="ch08.BooksBean"%><html>
<jsp:useBean id="BBean" class=ch08.BooksBean" scope="session"/>
<jsp:setProperty name="BBean" property="*"/><% int booksid;
String booksname;
String author;
float price;
float discount;
String publisher;
String note;
booksid=BBean.getBooksid();
BBean.setBooksid(100);
booksname=BBean.getBooksname();
BBean.setBooksname("高技术开发");
author=BBean.getAthor();
BBean.setAthor("Gate");
price=BBean.getPrice();
BBean.setPrice(50);
publisher = BBean.getPublisher();
BBean.setPublisher("火星出版社");
<!-- 表达式语言访问-->
出版社:${BBean.publisher}
<br/>
ISBN编号:${BBean.booksid} <br/>
价格:${BBean.getPrice()}
%><body>成功
</body></html>
package ch08;public class BooksBean {
public int booksid;
public String booksname;
public String author;
public float price;
public float discount;
public String publisher;
public String note;
BooksBean(){}
public String getAuthor(){
return author;
}
public void setAuthor(String author){
this.author=author;
} public int getBooksid(){
return booksid;
}
public void setBooksid(int booksid){
this.booksid=booksid;
}
public String getBooksname(){
return booksname;
}
public void setBooksname(String booksname){
this.booksname=booksname;
}
public float getDiscount(){
return discount;
}
public void setDiscount(float discount){
this.discount=discount;
}
public String getNote(){
return note;
}
public void ssetNote(String note){
this.note=note;
}
public float getPrice(){
return price;
}
public void setPrice(float price){
this.price=price;
}
public String getPublisher(){
return publisher;
}
public void setPublisher(String publisher){
this.publisher=publisher;
}
}
少个引号
但最重要的是我的javaBean中
构造函数不是public的啊!!!!!!!!!