You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Grant Goodale <gr...@reactivity.com> on 2003/12/10 01:30:47 UTC
Problem with 5.0.16. struts and @include
Hello,
I'm attempting to upgrade a tomcat 3.3 instance to 5.0.16.
However, I have a page that exhibited no problems under 3.3 that now
won't compile. The jsp looks something like:
<%@ include file="top.inc" %>
<%@ include file="middle.inc" %>
<%@ include file="bottom.inc" %>
... some html and struts stuff here ...
</form:form>
</html>
top.inc contains the page directive, a number of taglib directives and
the opening struts <form:form> element. When I attempt to compile this
page, I receive the error listed below. Neither of the other two
include files contains a form:form tag, so I don't believe it's a true
mismatch. The error implies that @included files must be self-contained
- I can't split tags across include file boundaries. Is this true?
Regards,
Grant Goodale
grant@reactivity.com
===========================================
[jasper2] - ERROR-the file '/test.jsp' generated the following general
exception:
[jasper2] org.apache.jasper.JasperException: /test.jsp(25,0)
/top.inc(49,18) Unterminated <form:form tag
[jasper2] at
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHand
ler.java:83)
[jasper2] at
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java
:402)
[jasper2] at
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java
:126)
[jasper2] at
org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:38
4)
[jasper2] at
org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:417)
[jasper2] at
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:515)
[jasper2] at
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577)
[jasper2] at
org.apache.jasper.compiler.Parser.parseBody(Parser.java:1827)
[jasper2] at
org.apache.jasper.compiler.Parser.parseOptionalBody(Parser.java:1100)
[jasper2] at
org.apache.jasper.compiler.Parser.parseCustomTag(Parser.java:1405)
[jasper2] at
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1598)
[jasper2] at
org.apache.jasper.compiler.Parser.parse(Parser.java:171)
[jasper2] at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:
247)
[jasper2] at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:
149)
[jasper2] at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:
135)
[jasper2] at
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237)
[jasper2] at
org.apache.jasper.compiler.Compiler.compile(Compiler.java:456)
[jasper2] at org.apache.jasper.JspC.processFile(JspC.java:743)
[jasper2] at org.apache.jasper.JspC.execute(JspC.java:896)
[jasper2] at java.lang.reflect.Method.invoke(Native Method)
[jasper2] at
org.apache.tools.ant.TaskAdapter.execute(TaskAdapter.java:147)
[jasper2] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:166)
[jasper2] at org.apache.tools.ant.Task.perform(Task.java:317)
[jasper2] at org.apache.tools.ant.Target.execute(Target.java:309)
[jasper2] at
org.apache.tools.ant.Target.performTasks(Target.java:334)
[jasper2] at
org.apache.tools.ant.Project.executeTarget(Project.java:1306)
[jasper2] at
org.apache.tools.ant.Project.executeTargets(Project.java:1250)
[jasper2] at org.apache.tools.ant.Main.runBuild(Main.java:610)
[jasper2] at org.apache.tools.ant.Main.start(Main.java:196)
[jasper2] at org.apache.tools.ant.Main.main(Main.java:235)
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org