You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2006/12/15 14:55:28 UTC
DO NOT REPLY [Bug 41180] New: - I have fix this by edit org.apache.jasper.compiler.Parser.java
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41180>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41180
Summary: <jsp:include> I have fix this by edit
org.apache.jasper.compiler.Parser.java
Product: Tomcat 5
Version: 5.5.12
Platform: All
OS/Version: All
Status: NEW
Severity: critical
Priority: P2
Component: Jasper
AssignedTo: tomcat-dev@jakarta.apache.org
ReportedBy: zhangzel@gmail.com
hi:
I have resolve this bug by edit org.apache.jasper.compiler.Parser, in
function parseOptionalBody,after 'reader.matches(">")' , may have a blank
character before </jsp:include>, so must skip those blank charactor.
I saw this bug has appearance in Tomcat5.0.* , but I find this bug in
tomcat5.5.9 ,5.5.12. The next is Parser.java source that I have edit and test
it in Application Server automatic test collections:
private void parseOptionalBody( Node parent, String tag, String bodyType )
throws JasperException
{
if (reader.matches("/>")) {
// EmptyBody
return;
}
if (!reader.matches(">")) {
err.jspError(reader.mark(), "jsp.error.unterminated",
"<" + tag );
}
//edit by zhangzel@gmail.com 20061215: beacause next may be a blank
character.
reader.skipSpaces();
if( reader.matchesETag( tag ) ) {
// EmptyBody
return;
}
if( !parseJspAttributeAndBody( parent, tag, bodyType ) ) {
// Must be ( '>' # Body ETag )
parseBody(parent, tag, bodyType );
}
}
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 41180] - I have fix this by edit org.apache.jasper.compiler.Parser.java
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41180>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41180
markt@apache.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |DUPLICATE
------- Additional Comments From markt@apache.org 2006-12-18 18:05 -------
*** This bug has been marked as a duplicate of 25448 ***
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
DO NOT REPLY [Bug 41180] - I have fix this by edit org.apache.jasper.compiler.Parser.java
Posted by bu...@apache.org.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=41180>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=41180
------- Additional Comments From zhangzel@gmail.com 2006-12-15 06:02 -------
In jsp file ,when write <jsp:include ...> </jsp:include>, the jasper will
throw an Exception:
description The server encountered an internal error () that prevented it from
fulfilling this request.
exception
org.apache.jasper.JasperException: /jsp1.jsp(2,1) 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:405)
org.apache.jasper.compiler.ErrorDispatcher.jspError
(ErrorDispatcher.java:86)
org.apache.jasper.compiler.Parser.parseParam(Parser.java:852)
org.apache.jasper.compiler.Parser.parseBody(Parser.java:1804)
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:1563)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)
org.apache.jasper.compiler.ParserController.doParse
(ParserController.java:211)
org.apache.jasper.compiler.ParserController.parse
(ParserController.java:100)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile
(JspCompilationContext.java:556)
org.apache.jasper.servlet.JspServletWrapper.service
(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.9 logs.
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org