zoukankan      html  css  js  c++  java
  • 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>

  • 相关阅读:
    markown 画图
    C++ 结构体指针
    C++指针详解
    C++ 中类对象与类指针的区别
    Java面向对象㈠ -- 封装
    path和classpath
    "System.Web" 中不存在类型或命名空间
    ASP.NET 后台不识别ASPX中的控件
    asp.net中的<%%>形式的详细用法实例讲解
    ASP.NET前台JS与后台CS函数如何互相调用
  • 原文地址:https://www.cnblogs.com/yangjinwang/p/5732172.html
Copyright © 2011-2022 走看看