- This topic has 4 replies, 4 voices, and was last updated 18 years, 8 months ago by
Riyad Kalla.
-
AuthorPosts
-
spanlinkMemberI have 2 files.
– MyJsp.jsp
– MyJspFragment.jspfMyJsp.jsp includes the fragment file. The syntax checker (MyEclipse 5.0 GA/Eclipse 3.2) gave me the
following error in the <%@ include file=”MyJspFragment.jspf”%> statement:Multiple annotations found at this line:
– Syntax error on token “}”, { expected
– Syntax error, insert “Finally” to complete TryStatementHere is my code:
FileName: MyJsp.jsp<%@ page language="java" pageEncoding="ISO-8859-1"%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> <% String path = request.getContextPath(); String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <base href="<%=basePath%>"> <title>My JSF 'MyJsp.jsp' starting page</title> </head> <body> <f:view> <f:subview> <%@ include file="MyJspFragment.jspf"%> </f:subview> </f:view> </body> </html>
FileName: MyJspFragment.jspf
<%@ page language="java" pageEncoding="ISO-8859-1"%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <h:panelGrid width="100%"> <h:dataTable value="#{baseUserDto.alternateExtensions}" var="alternateExtension"> <h:column> <f:facet name="header"> <h:outputText value="#{screen.number}" /> </f:facet> <h:outputText value="#{alternateExtension.index}" /> <f:facet name="footer"> <h:panelGrid width="100%" cellspacing="1"> <h:outputText value=""></h:outputText> </h:panelGrid> </f:facet> </h:column> </h:dataTable> </h:panelGrid>
August 14, 2006 at 10:50 am #256695
Riyad KallaMemberThis is a known bug that is occuring on some setups, we are investigating it.
October 29, 2006 at 9:25 am #261049
ghamphyMemberHas there been any breakthru in this regard? I am getting this error now, How do I get around It? ❓
October 30, 2006 at 1:59 am #261055
HeinzSueessMemberHi
Is there a workaround or fix for the problem?
October 30, 2006 at 8:22 am #261064
Riyad KallaMemberNo workaround but this will be fixed in the 5.0.3 release, we are entering the testing stage today and it should be out the 1st or 2nd week of Nov depending on how our testing and last minute tightening up of the code goes.
-
AuthorPosts