Advertisement

07.02.2008 at 08:01AM PDT, ID: 23533801
[x]
Attachment Details

Can we display a link if some table's  column value is there on displayed value  and not if value is not there in a table no link but value should be there in jstl.

Asked by Shakil_Akhtar in Java Standard Tag Library (JSTL) & Server Tags, Java Server Pages (JSP)

Hi Expert!
I am having a table with 5 columns . In fist column i am displaying data with link on checking data in 4th column. If any value is present on fourth column i am displaying first column data with link to open as another pop up. If  4th column is blank(no data is coming from DB) I am displaying first column data with out link but value should be displayed . Inside TD i am displaying data using JSTL.

Please see my code when i am displaying it saying "Illegal text inside "c:choose" tag: on weblogic 9.2
Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
<c:if test="${wire.fedId ne null}" >
      <c:choose>
       <c:when test="${wire.fedId ne null}">
            
      <a href="javascript:doSelectedAgency('<c:out value="${wire.agencyNumber}"/>','<c:out value="${wire.wireControlNumber.wireCntrlTar}"/>','<c:out value="${wire.wireControlNumber.wireCntrlStateCd}"/>','<c:out value="${wire.wireControlNumber.wireSeqNbr}"/>')" >
      <c:out value="${wire.agencyNumber}"/> </a>
      </c:when>
      </c:otherwise> <c:out value="${wire.agencyNumber}"/> </c:otherwise>
      </c:choose>
     </c:if>
 
where wire is a variable to iterate over list.
 
Loading Advertisement...
 
[+][-]07.04.2008 at 11:16AM PDT, ID: 21934280

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Java Standard Tag Library (JSTL) & Server Tags, Java Server Pages (JSP)
Sign Up Now!
Solution Provided By: rrz@871311
Participating Experts: 1
Solution Grade: B
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906