Controller-----
@RequestMapping (value = "Matchdetail", method = Requestmethod.get)
Public Modelandview Match_detail () {
Modelandview model = new Modelandview ("Daybusiness/matchdetails/matchdetail");
List<matchdetail> aaa=new arraylist<matchdetail> ();
map<string,object> map = new hashmap<string, object> ();
Map.put ("Investorapplyid", 123);
Model.addobject ("Investorapplyid", AAA);
return model;
}
Front page Code--------------
Need to reference <% @taglib prefix= "C" uri= "Http://java.sun.com/jsp/jstl/core"%> This package
<c:foreach var= "P" items= "${investorapplyid}" varstatus= "S" >
<tr>
<td><a
href= "/bizpage/loaning/batchlaunchinfo!queryloantrans.action?batchseq=${p.btiseq}" >${p.transNo}</a> </td>
<td>${p.btiseq}</td>
<td><fmt:formatdate value= "${p.batchdate}" type= "date"/></td>
<td><fmt:formatdate value= "${p.batchtime}" type= "Time"/></td>
<td>
<c:if test= "${p.batchtype== ' P '}" > Repayment </c:if>
<c:if test= "${p.batchtype== ' DT01 '}" > Loan escrow 01</c:if>
<c:if test= "${p.batchtype== ' DC01 '}" > Loan depository 01</c:if>
<c:if test= "${p.batchtype== ' WC01 '}" > Lift existing Tube 01</c:if>
</td>
<td>${p.batchtotalnum}</td>
<td>${p.batchsuccnum}</td>
<td>${p.batchfailnum}</td>
<td><ms:getcodename codetype= "F87" code= "${p.procsts}" ></ms:getCodeName></td>
<td><ms:getcodename codetype= "F85" code= "${p.batchsts}" ></ms:getCodeName></td>
<td><fmt:formatdate value= "${P.LASTUPDT}" type= "both"/></td>
<td><c:if test= "${p.batchsts! = ' S '}" >
<a href= "javascript:processing (' ${p.btiseq} ')" > <c:choose>
<c:when test= "${p.batchsts== ' E ' &&p.procsts== ' Be '}" >
Re-offer
</c:when>
<c:otherwise> processing </c:otherwise>
</c:choose>
</a>
</c:if></td>
</tr>
</c:forEach>
Java MVC Controller Basic method of transmitting values