jstl-functions

    2熱度

    2回答

    雖然我練JSTL的timeZone標籤,我試圖運行這兩個動作: <c:set var="now" value="<%= new java.util.Date() %>" /> <fmt:timeZone value="GMT+9:00"> <fmt:formatDate value="${now}" type="both" dateStyle="full" timeS

    0熱度

    1回答

    我試圖確定日期是否在60天內(與今天的日期相比)。 如果服務日期在60天內,則列將顯示「是」,另一方面,如果日期超過60天,則列將顯示「否」。 我知道,如果在Lotus Notes應用程序,我可以用這個公式來實現它 @If(@Adjust(ServiceDate; 0; ; 60; 0; 0; 0) >= @Today; "Yes"; "No") 現在,我嘗試做在jsp文件類似的東西(沒有Lo

    -1熱度

    1回答

    我想分割一個字符串使用JSTL方法,並分裂它的基礎上四個報價''''。以下是詳細內容: example = ''''THE FAMOUS DIAMONDS''''This is second string for the example''''/content/dam/rcq/mp_push_tank_style.jpg''''right'''' ${fn:split(example,\"'''

    0熱度

    1回答

    我使用JSTL,推動在HTML頁面的CSS如果 像CSS的名字是abc.css我想旁邊的CSS添加時間戳由於緩存的問題abc.css?時間= 21223233232使用JSTL <c:forEach var="css" items="${styles}"> <link type="text/css" rel="stylesheet" href="/<c:url value="${css}

    0熱度

    1回答

    我是JSTL的新手,並想出使用另一個字符串拆分字符串的方法。例如supppose我的字符串是 s= "Hello! Good Morning", 和 t = "Good ", 那麼我應該有海峽[0] =「你好! '和str [1] ='早上'。 但是,如果我把這個變成 ${fn:split(s, t)} 它刪除所有 'G', 'O', 'd' 和 ''。 感謝

    -1熱度

    1回答

    我需要迭代列表中的對象。附上包含對象如何進入調試模式的圖像。這是我的代碼。 JSP: <div class="sample"> <c:forEach items="${mapPlotMaster}" var="mapplotter"> <c:forEach items="${mapplotter}" var="customer"> <li>${customer.

    0熱度

    1回答

    如何鏈接多重長度檢查? 我嘗試這些方法沒有效果: <c:if test="${fn:length(app.applicationAdminComments) le 0 or fn:length(app.applicationChoComments) le 0 }"> 和 <c:if test="${(fn:length(app.applicationAdminComments) le 0) |

    0熱度

    2回答

    如果functions標籤庫也是JSTL的一部分,那麼爲什麼我們不能(或不要)像其他標籤一樣使用它們?例如,用core我們可以這樣說? <c:if test="1==1"> <h3>Render this if 1==1</h3> </c> 爲什麼我們不能用功能做同樣的事情呢? <fn:... 我們可以僅在$ {}內使用它們嗎?

    0熱度

    1回答

    我在JSTL下面的代碼,在J2EE站點檢索學生照片 <c:if test="${student.studentPictureId != null}"> <a href="javascript:showImage('<c:out value="${student.studentId}"/>','<c:out value="${student.studentPictureId }"/>

    0熱度

    1回答

    我在JSP代碼如下 <td class=odd style="text-align: center" height=30><c:if test="${mMap['GENERAL'].errorFac != 0 and not empty mMap['GENERAL'].errorFac}"> <c:choose> <c:when test="${mMap['GE