java mvc控制器基本传值方式

控制器-----

@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;
}

前台页面代码--------------

需要引用   <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>   这个包

 

<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'}">还款</c:if>
<c:if test="${p.batchType=='DT01'}">放款托管01</c:if>
<c:if test="${p.batchType=='DC01'}">放款存管01</c:if>
<c:if test="${p.batchType=='WC01'}">提现存管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'}">
再次报盘
</c:when>
<c:otherwise>处理</c:otherwise>
</c:choose>
</a>
</c:if></td>
</tr>
</c:forEach>

 

posted @ 2016-08-03 11:34  秋香姑娘请你不要紧张  阅读(740)  评论(0编辑  收藏  举报