I'm a dba and our team has recently lost both Java developers that were developing/sustaining our applications. We discovered that some of our .jsp files need to be modified and us DBAs are trying to figure it out while we try to find a developer; however, I'm having a hard time understanding where some of these variables are coming from. The file I'm working on is very short:
<%@ 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}"/>
I left a comment in the file that shows what I'm trying to do. I'd like to see if the ${system} variable will evaluate to WAF (the system that is causing our problems and requires its own outbound email thats different than the other systems). That said, I know where the variables are coming from in the database but I'm not sure where they come from in this file. I'm not sure if the format of ${system} is the same as the version in the database (i.e. abbreviated, uppercase, lowercase, etc...) I've tried looking for these values in other files but I'm not seeing where they values are set. Can anyone provide any guidance?