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!

<c:if> + display tag

843840Aug 1 2008 — edited Aug 6 2008
Hi,

Im just trying to display search result using display tag within that i should check one character property, if it is 'N' i should display img.
<display:table defaultorder="ascending" class="subhead"
							requestURI="flowController.htm" id="searchResult"
							name="searchResult" cellpadding="0" cellspacing="0"
							style="width:100%" pagesize="5">
							<display:column style="width:5%">
								<input type="checkbox" />
								<c:out value="${searchResult.isPublished}"/> Here
								<c:if test="${searchResult.isPublished eq 'N'}">
								<img src="images/b1.gif"
								width="16" height="16" align="absmiddle" />inside if
								</c:if>
							</display:column>
but im getting this error
javax.servlet.jsp.el.ELException: An exception occured trying to convert String "N" to type "java.lang.Long"

i don't no for what reason im getting this error..

could anybody help me regarding the same..

Thanks
Ambika&#9786;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 3 2008
Added on Aug 1 2008
3 comments
384 views