Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JSTL and Ant issue or Anthill

843836Aug 12 2004 — edited Aug 13 2004
I have been able to compile this code on several machines except form my automated build machine and no idea why??

<body>
<form action="submit" name="reportCriteria">
<!--
Import the xml document containing the meta-data
for how the report criteria screen should be printed

The assumption is that this page was executed by selecting
a specific report as it must search the report nodes
for the right report to print.
-->
<x:parse var="pReports"><c:import url="/WEB-INF/xml/reporting.xml" /></x:parse>

<c:set var="reportToFind" scope="page" value="${param.selectedReport}"/>
<c:set var="dateField" scope="page" value="date"/>
<c:set var="selectField" scope="page" value="select"/>
<c:set var="radioField" scope="page" value="radio"/>
<c:set var="lookUpField" scope="page" value="lookup"/>

<center>
<table width="75%" border="0">
<tr>
<td>
<table width="100%">
<!-- This is the Report Title and report Description -->
<tr>
<td class="reportTitle">
<c:out value="${param.selectedReport}" default="Invalid Operation"/>
</td>
</tr>
<td class="reportDescription">
<x:out select="$pReports//Report[@NAME=$pageScope:reportToFind]/ReportDescription"/>
</td>
</table>
</td>
</tr>
<!--

if there are any search criteria associated with this report then
excute the next lines otherwise move on
need to check the type of srchCriteria the following are supported
date - provides the user with a read only text box for selecting the date
select - provides the user with a drop down that the user will select from
radio - provides the user with a radio button to choose from
string - provides the user with a text box
-->
<tr>
<td>
<table width="100%" >
<!-- This is the search criteria if any exist -->
<tr>
<td colspan="2" class="reportHeading">
Search Criteria
</td>
</tr>
<x:forEach select="$pReports//Report[@NAME=$pageScope:reportToFind]">

<x:forEach select="SearchCriteria/srhCriteria">
<tr>
<td class="clabel">
<x:out select="./fieldTitle"/>
</td>
<td>
<x:if select="./type=$pageScope:dateField">
<input type="text" class="readonly" readonly
size="8"
name="<x:out select="./fieldName"/>">
<script language="javascript">
addCalendar("<x:out select="./fieldName"/>", "<x:out select="./fieldTitle"/>", '<x:out select="./fieldName"/>', document.forms[0].name);
</script>
')"><img src="images/calendar.gif" border="0"></a>
</x:if>

<x:if select="./type=$pageScope:lookUpField">
<input type="hidden" name="<x:out select="./idFieldName"/>"/>
<input type="text" class="readOnly" readOnly name="<x:out select="./fieldName"/>"/>
<a href="javascript:lookup<x:out select="./fieldName"/>()"><img src="images/find.gif" border="0"></a>
<script language="javascript">
function lookup<x:out select="./fieldName"/>()
{
showLookup('<x:out select="./lookupName"/>',
document.forms[0].namedItem('<x:out select="./fieldName"/>'),
document.forms[0].namedItem('<x:out select="./idFieldName"/>'),
'<x:out select="./fieldTitle"/>');
}
</script>
</x:if>

</td>
</tr>
</x:forEach>
</x:forEach>

</table>
</td>
</tr>

<!--

if there are any search criteria associated with this report then
excute the next lines otherwise move on
-->
<tr>
<td>
<table width="100%">
<!-- This is the sort criteria if any exist -->
<tr>
<td colspan="2" class="reportHeading">
Sort Criteria
</td>
</tr>
<tr>
<td class="clabel">Sample to be replaced</td>
<td><input type="text" class="mandatory"></td>
</tr>
</table>
</td>
</tr>
</table>
</center>

</form>

</body>

ERROR is

BUILD FAILED

file:C:/REPOSITORY/ELVIS6ART/elvis6Build.xml:315: weblogic.utils.compiler.ToolFa
ilureException: [J2EE:160121]Errors encountered while compiling module 'C:\REPOS
ITORY\ELVIS6ART\ant\build\elvis6Ear\elvis6Client\webapp':

[Compilation errors : ]

C:\REPOSITORY\ELVIS6ART\ant\build\elvis6Ear\elvis6Client\webapp\WEB-INF\classes\
jsp_servlet\_jsps\_report\__reportcriteria.java:268: 'try' without 'catch' or 'f
inally'
try { // TryCatchFinally begin //[ /jsps/report/reportCriteria.jsp;
Line: 41]
^
C:\REPOSITORY\ELVIS6ART\ant\build\elvis6Ear\elvis6Client\webapp\WEB-INF\classes\
jsp_servlet\_jsps\_report\__reportcriteria.java:278: while expected
} finally { // _x_parse0 popBody() finally... //[ /jsps/report/reportC
riteria.jsp; Line: 41]
^
C:\REPOSITORY\ELVIS6ART\ant\build\elvis6Ear\elvis6Client\webapp\WEB-INF\classes\
jsp_servlet\_jsps\_report\__reportcriteria.java:280: '(' expected
} //[ /jsps/report/reportCriteria.jsp; Line: 41]
^
C:\REPOSITORY\ELVIS6ART\ant\build\elvis6Ear\elvis6Client\webapp\WEB-INF\classes\
jsp_servlet\_jsps\_report\__reportcriteria.java:281: illegal start of expression

} // end !SKIP_BODY //[ /jsps/report/reportCriteria.jsp; Line: 41]
^
C:\REPOSITORY\ELVIS6ART\ant\build\elvis6Ear\elvis6Client\webapp\WEB-INF\classes\
jsp_servlet\_jsps\_report\__reportcriteria.java:257: 'try' without 'catch' or 'f
inally'
try { // _x_parse0 popBody() try/finally.. //[ /jsps/report/reportCriter
ia.jsp; Line: 41]
^
C:\REPOSITORY\ELVIS6ART\ant\build\elvis6Ear\elvis6Client\webapp\WEB-INF\classes\
jsp_servlet\_jsps\_report\__reportcriteria.java:775: 'catch' without 'try'
} catch (Throwable __ee) {
^
C:\REPOSITORY\ELVIS6ART\ant\build\elvis6Ear\elvis6Client\webapp\WEB-INF\classes\
jsp_servlet\_jsps\_report\__reportcriteria.java:215: 'try' without 'catch' or 'f
inally'
try { // error page try block
^
C:\REPOSITORY\ELVIS6ART\ant\build\elvis6Ear\elvis6Client\webapp\WEB-INF\classes\
jsp_servlet\_jsps\_report\__reportcriteria.java:786: '}' expected
}
^
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 10 2004
Added on Aug 12 2004
1 comment
113 views