will try in 1 hr and let u know.....thanx for the prompt answer
Main Topics
Browse All TopicsI am using JSTL on Weblogic 6.1 sp4.
The jsp works fine on Tomcat 4.1.127...but throws the following error in Weblogic.
**************************
unreported exception java.lang.Throwable; must be caught or declared to be thrown
_c_forEach0.doCatch(_t); //[ /jsp/deals/listdealsresult
^
1 error
**************************
Here is the jsp code that causes problem:
**************************
<c:forEach var="dealBean" items="${dealresult}" varStatus="status">
<h1>Yahoo</h1>
</c:forEach>
**************************
Again....the same code works fine in Tomcat 4.1.27.I dont change anything for weblogic.....i use same war file.
I have put the correct jar files in the WEB-INF/lib , that is standard.jar and jstl.jar
Please help , since i have been trying to make this work for a long time.
Thanx
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I am posting two pieces.....one is that i was using before (that workd with Tomcat 4.1.27) and the second one is which i got from ur ideas :
I am using templates.....so the code u will see doesnt have body and html, head etc tags.
**************************
<%@ taglib uri='struts/bean-el' prefix='bean' %>
<%@ taglib uri='struts/html-el' prefix='html' %>
<%@ taglib uri='struts/logic-el' prefix='logic' %>
<%@ taglib uri='jstl/c' prefix='c' %>
<c:set var="count" scope="page" value="0"/>
<div align="left"> <b><font color="#003366"> </font></b></div>
<!-- ========== CONTENT (start) ========== -->
<span class="redbold">Search Deals</span>
<a href="#" onClick="showHide('tbl2','
<br>
<br>
<table id="tbl2" style= "display: none; border: 0px;position:relative; width="70%" border="0" width="730">
<tr>
<td>
<html:form action="/searchdeal" >
<table width="309" class="tabTable">
<tr>
<td colspan="2" class="tabtitle">Search Deal By:</td>
</tr>
<tr>
<td width="33%" class="right">Client MNC : </td>
<td width="67%">
<html:text styleClass="inputtextmediu
</td>
</tr>
<tr>
<td width="33%" class="right"> Deal MNC: </td>
<td width="67%">
<html:text styleClass="inputtextmediu
</td>
</tr>
<tr>
<td width="33%" height="46"> </td>
<td width="67%" height="46">
<!-- <input type="button" class="submitsmall" name="Submit43" value="Search" onClick="window.location='
<input type="button" class="submitsmall" name="Button" value="Cancel" onClick="window.location='
<html:submit styleClass="submitsmall" value="Search" property="button"/>
<html:button styleClass="submitsmall" value="Cancel" property="button" onclick="window.location='
<!-- ========== CONTENT (end) ========== -->
</td>
</tr>
</table>
</html:form>
</td>
</tr>
</table>
<hr width="665" align="left">
<span class="bio_listMedium">Dea
<!-- ========== CONTENT (start) ========== -->
<br>
<logic:messagesPresent>
<hr>
<span id="errorsHeader"><bean:me
<html:messages id="error">
<span id="errorsHeader"><li><c:o
</html:messages>
<hr>
</logic:messagesPresent>
<br>
<table width="36%" height="25" id="vtable">
<tr>
<th width="47%" nowrap height="24">
<div align="center"><b>Client MNC</b></div>
</th>
<th width="53%" nowrap height="24">
<div align="center"><b>Deal MNC</b></div>
</th>
<th width="53%" nowrap height="24">
<div align="center"><b>Deal Name</b></div>
</th>
<th width="53%" nowrap height="24">
<div align="center"><b>Deal Type</b></div>
</th>
</tr>
<form name="Form1" action="#" method=POST>
<c:forEach var="dealBean" items="${dealresult}" varStatus="status">
<c:choose>
<c:when test="${client != dealBean.ccMNC}" >
<tr class="view">
<td nowrap ><c:out value="${dealBean.ccMNC}"/
<td nowrap ><a href="#" onClick="submitForm(this.i
<td nowrap ><c:out value="${dealBean.dealName
<td nowrap ><c:out value="${dealBean.dealType
</tr>
<c:set var="count" scope="page" value="${0}"/>
</c:when>
<c:otherwise >
<c:set var="count" scope="page" value="${count + 1}"/>
<c:set var="cellClass">
<c:choose>
<c:when test="${count % 2 == 1}">alt</c:when>
<c:otherwise>alt1</c:other
</c:choose>
</c:set>
<tr class="<c:out value="${cellClass}"/>">
<td nowrap ></td>
<td nowrap ><a href="#" onClick="submitForm(this.i
<td nowrap ><c:out value="${dealBean.dealName
<td nowrap ><c:out value="${dealBean.dealType
</tr>
</c:otherwise>
</c:choose>
<c:set var="client" value="${dealBean.ccMNC}"/
</c:forEach>
</form>
</table>
**************************
<%@ taglib uri='struts/bean-el' prefix='bean' %>
<%@ taglib uri='struts/html-el' prefix='html' %>
<%@ taglib uri='struts/logic-el' prefix='logic' %>
<%@ taglib uri='jstl/c' prefix='c' %>
<c:set var="count" scope="page" value="0"/>
<div align="left"> <b><font color="#003366"> </font></b></div>
<!-- ========== CONTENT (start) ========== -->
<span class="redbold">Search Deals</span>
<a href="#" onClick="showHide('tbl2','
<br>
<br>
<table id="tbl2" style= "display: none; border: 0px;position:relative; width="70%" border="0" width="730">
<tr>
<td>
<html:form action="/searchdeal" >
<table width="309" class="tabTable">
<tr>
<td colspan="2" class="tabtitle">Search Deal By:</td>
</tr>
<tr>
<td width="33%" class="right">Client MNC : </td>
<td width="67%">
<html:text styleClass="inputtextmediu
</td>
</tr>
<tr>
<td width="33%" class="right"> Deal MNC: </td>
<td width="67%">
<html:text styleClass="inputtextmediu
</td>
</tr>
<tr>
<td width="33%" height="46"> </td>
<td width="67%" height="46">
<!-- <input type="button" class="submitsmall" name="Submit43" value="Search" onClick="window.location='
<input type="button" class="submitsmall" name="Button" value="Cancel" onClick="window.location='
<html:submit styleClass="submitsmall" value="Search" property="button"/>
<html:button styleClass="submitsmall" value="Cancel" property="button" onclick="window.location='
<!-- ========== CONTENT (end) ========== -->
</td>
</tr>
</table>
</html:form>
</td>
</tr>
</table>
<hr width="665" align="left">
<span class="bio_listMedium">Dea
<!-- ========== CONTENT (start) ========== -->
<br>
<logic:messagesPresent>
<hr>
<span id="errorsHeader"><bean:me
<html:messages id="error">
<span id="errorsHeader"><li><c:o
</html:messages>
<hr>
</logic:messagesPresent>
<br>
<table width="36%" height="25" id="vtable">
<tr>
<th width="47%" nowrap height="24">
<div align="center"><b>Client MNC</b></div>
</th>
<th width="53%" nowrap height="24">
<div align="center"><b>Deal MNC</b></div>
</th>
<th width="53%" nowrap height="24">
<div align="center"><b>Deal Name</b></div>
</th>
<th width="53%" nowrap height="24">
<div align="center"><b>Deal Type</b></div>
</th>
</tr>
<form name="Form1" action="#" method=POST>
<%
try
{
%>
<c:forEach var="dealBean" items="${dealresult}" varStatus="status">
<h1>Yahoo</h1>
</c:forEach>
<%
}
catch( Exception ex )
{
ex.printStackTrace();
}
%>
</form>
</table>
**************************
Thanx in advance.....let me know if something isnt clear
The first paragraph of this page:
http://www.gideonfamily.or
Also says that Weblogic 6.1 is a bit bug ridden...there also seems to be SP5 out...
Can you apply this pack? It (hopefully) might fix this bug...
-- hehe.. "hopefully" and "might" in one sentence... do I fill you with confidence? ;-)
Tim
Business Accounts
Answer for Membership
by: TimYatesPosted on 2003-11-20 at 00:46:20ID: 9785556
Hmmmm...odd...
does:
<%
try
{
%>
<c:forEach var="dealBean" items="${dealresult}" varStatus="status">
<h1>Yahoo</h1>
</c:forEach>
<%
}
catch( Exception ex )
{
ex.printStackTrace( out ) ;
}
%>
work?
}