Bug 37647 - <jsp:include
Summary: <jsp:include
Status: RESOLVED INVALID
Alias: None
Product: Tomcat 5
Classification: Unclassified
Component: Unknown (show other bugs)
Version: 5.0.28
Hardware: Sun Windows 2000
: P2 normal (vote)
Target Milestone: ---
Assignee: Tomcat Developers Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-26 11:33 UTC by tangbin
Modified: 2005-11-26 08:54 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tangbin 2005-11-26 11:33:15 UTC
In JSP files ,if it only include "<jsp:include ….><jsp:include> ",but no 
<jsp:param>;
It will error, We resolved it like this"<jsp:include ……/>"

like this:

org.apache.jasper.JasperException: /officeWork/EPubCenter/Document/DocumentList.
jsp(72,8) Expecting "jsp:param" standard action with "name" and "value" 
attributes
	org.apache.jasper.compiler.DefaultErrorHandler.jspError
(DefaultErrorHandler.java:39)
	org.apache.jasper.compiler.ErrorDispatcher.dispatch
(ErrorDispatcher.java:409)
	org.apache.jasper.compiler.ErrorDispatcher.jspError
(ErrorDispatcher.java:90)
	org.apache.jasper.compiler.Parser.parseParam(Parser.java:852)
	org.apache.jasper.compiler.Parser.parseBody(Parser.java:1800)
	org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1060)
	org.apache.jasper.compiler.Parser.parseInclude(Parser.java:888)
	org.apache.jasper.compiler.Parser.parseStandardAction(Parser.java:1211)
	org.apache.jasper.compiler.Parser.parseElements(Parser.java:1559)
	org.apache.jasper.compiler.Parser.parse(Parser.java:126)
	org.apache.jasper.compiler.ParserController.doParse
(ParserController.java:220)
	org.apache.jasper.compiler.ParserController.parse
(ParserController.java:101)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:203)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:470)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
	org.apache.jasper.JspCompilationContext.compile
(JspCompilationContext.java:511)
	org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:295)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Comment 1 Yoav Shapira 2005-11-26 17:54:58 UTC
Not a bug: this was OK in JSP Spec prior to 2.0, but changed in 2.1 (which
Tomcat 5.x implements) to require the whitespace or proper closesure.  This was
filed in the past and explained more fully by bigger JSP experts than myself:
you can search Bugzilla for this type of issue and include closed issues in your
search to find out more.