P
P
parkito2016-09-27 14:49:29
JavaScript
parkito, 2016-09-27 14:49:29

How to hide variable in jstl?

Hello. Please help me solve the problem. In the page code

<c:forEach var="tariff" items="${allTariffs}" varStatus="loop">
                                    ${tempId.add(tariff.tariffId)}
                                    <c:if test="${contract.tariff==tariff}">

I want ${tempId.add(tariff.tariffId)} to be executed , but I don't want it to be displayed on the page. How can I hide ${tempId.add(tariff.tariffId)} for the frontend ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Victor Alenkov, 2016-09-27
@parkito

for example like this:

<c:set var="t">${tempId.add(tariff.tariffId)}</c:set>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question