【发布时间】:2018-03-01 23:04:25
【问题描述】:
我是一名 dba,我们的团队最近失去了两位开发/维护我们应用程序的 Java 开发人员。我们发现我们的一些 .jsp 文件需要修改,我们 DBA 正在努力解决这个问题,同时我们试图寻找开发人员;但是,我很难理解其中一些变量的来源。我正在处理的文件很短:
<%@ include file="../../include/header-text-email.html" %>
Your ZEDIAN account for ${system} will be terminated in ${daysLeft} days based on inactivity
or based on an established expiration date.
<%--%>
check if ${system} evaluates to WAF, if so display different message
Found on Stack Overflow (https://stackoverflow.com/questions/26930216/using-if-else-in-jsp):
<c:choose>
<c:when test="${empty user}">
I see! You don't have a name.. well.. Hello no name
</c:when>
<c:otherwise>
<%@ include file="response.jsp" %>
</c:otherwise>
</c:choose>
Also, unless you plan on using response.jsp somewhere else in your code, it might be easier to just include the html in your otherwise statement:
<c:otherwise>
<h1>Hello</h1>
${user}
</c:otherwise>
<%--%>
To avoid termination for inactivity, please visit <c:out value="${url}"/>.
Terminating your account requires no action.
If you have any questions, please email the ZEDIAN mailbox at:
<c:out value="${mailbox}"/>
我在文件中留下了一条评论,说明我正在尝试做什么。我想看看 ${system} 变量是否会评估为 WAF(导致我们的问题的系统并且需要它自己的出站电子邮件,这与其他系统不同)。也就是说,我知道变量在数据库中的来源,但我不确定它们在这个文件中的来源。我不确定 ${system} 的格式是否与数据库中的版本相同(即缩写、大写、小写等...)我尝试在其他文件中查找这些值,但我看不到它们的值在哪里设置。任何人都可以提供任何指导吗?
【问题讨论】: