I'm relatively new to JSPs, and I'm trying to use a FormBean within one of my files. When I try to open the JSP page on a local Tomcat server, I get the following error:
org.apache.jasper.JasperException: /entryForm.jsp (line: 4, column: 21) equal symbol expected
The first five lines of my code are:
<!DOCTYPE html>
<%@ page import = "jared.simpledatabase.* %>
<jsp:useBean id="form" class="jared.simpledatabase.FormBean" scope="session"/>
<jsp:setProperty name="form" property="*"/>
Any ideas what I'm doing wrong? Thanks!
这是一个猜测 - 缺少双引号:
<%@ page import = "jared.simpledatabase.*" %>
In my case it was a missing " in the jsp:param tag eg
<jsp:param name="X" value="{$someValue}/>
Changing it to... fixed the issue
<jsp:param name="X" value="{$someValue}"/>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.