In the following code, there exist items="${message}". I know it is EL. But I cannot find out where "${message}" is came from . Please help. Thanks.

<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %>
<%@ taglib prefix="spring" uri="/spring" %>
<%@ taglib prefix="z" uri="/WEB-INF/tag.tld" %>
<%@ page language="java" contentType="text/html; charset=UTF8" pageEncoding="UTF8"%>
<%@ page import="hk.com.zebra.utils.RequestUtils"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@page import="hk.com.zebra.utils.EHRUrl"%>
<%@page import="java.sql.Date"%>
<%@page import="hk.com.zebra.staticrpt.StaticReportRunModel"%>
<!-- $Id $ -->
<html>
<%
	StaticReportRunModel model = (StaticReportRunModel)request.getSession().getAttribute("staticReportRunModel");
	EHRUrl eHRUrl = (EHRUrl)request.getAttribute("eHRUrl");
	String runrptAction = RequestUtils.rewriteUrl(request,"/" + eHRUrl.getCompany() + "/report/runrpt.do");
	// set zdatefield  default selected value
	request.setAttribute("fromdt", new Date(System.currentTimeMillis()));
	request.setAttribute("todt", new Date(System.currentTimeMillis()));
	
	//Object a = request.getAttribute("message");
	
%>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<z:css cssname="general.css"/>

<script langauge='javascript' src="<%=RequestUtils.rewriteUrl(request,"/js/general.js")%>" ></script>
<script type="text/javascript">
	function generatePDFReport(){
		fr.action = "<%=runrptAction%>";
		fr.processType.value = "generatePDFReport";
		fr.event.value = "generatePDFReport";		
		fr.submit();
	}
	function generateReport(){
		fr.action = "<%=runrptAction%>";
		fr.processType.value = "executereport";
		fr.event.value = "executereport";		
		fr.submit();
	}
</script>
</head>
<body>

<br/> 
<table width="700px" cellspacing="0" cellspadding="0">
	<tr bgcolor="#FFFFFF">
		<td>
			<span class="appname">
				<spring:message code="REPORT.EXECUTE_INPUT" />
			</span>
		</td>
	</tr>
	<tr bgcolor="#000000" >
		<td>
		</td>
	</tr>
	<tr bgcolor="#FFFFFF">
		<td>		
			<span class="funcfont">
			    <spring:message code="${modulename}" var="modulename1"/>
				<spring:message code="REPORT.EXECUTE_TT" arguments="${modulename1}"/>
			</span>
		</td>
	</tr>
</table>
<br/>

<form name="fr" method="post" action="">
	<input type="hidden" name="processType" value=""/>
	<input type="hidden" name="event" value=""/>
	
	<input type="hidden" name="modid" value="<%=model.getModid()%>"/>
	<input type="hidden" name="userid" value="<%=model.getUserid()%>"/>
	<input type="hidden" name="reportid" value="<%=model.getReportid()%>"/>
	
	<spring:message code="REPORT.PARAMETER" var="caption"/>
	<z:commonTable caption="${caption}" cellpadding="5">	
		<tr class="FRAMESECTIONCONTENT"><td>
			<table width="700px">
				<tr>
					<td width="80px">
					<span class="blacklabel"><spring:message code="REPORT.REPORT_TITLE" />&nbsp;:</span>
					</td>
					<td width="450px">
						<span class="blacklabel"><%=model.getTitle()%></span>						
					</td>
				</tr>
			</table>
			<z:zstaticreportcriteria/>
			<table width="100%" border="0px" cellpadding="5px" cellspacing="0px" bgcolor="#FFFFFF">
				<tr>
					<td align="left">
						<input onclick="generatePDFReport()" name="sub2" class="FLATBTN"  type="button" value="<spring:message code="REPORT.GENERATE_PDF"/>" />
					</td>				
					<td align="right">
						<input name="_cancel" class="FLATBTN"  type="button" value="<spring:message code="GLOBAL.CANCEL"/>" onclick="window.close();"/>						
						<!-- <input onclick="generateReport()" name="sub" class="FLATBTN"  type="button" value="<spring:message code="REPORT.EXCUTE"/>" /> -->
					</td>
				</tr>
			</table>
		</td></tr>
	</z:commonTable>
</form>
<script language="javascript">
	var msg='';
	<c:forEach items="${message}" var="message" >
		msg+='<z:jsmessage code="${message}" />\n';
	</c:forEach>
	if (msg!=''){
		alert(msg);
	}
</script>
</body>
</html>

Hi...
In your source code if you are using a inner class then the compiled inner class retuns $ symbol with your class file

I maybe wrong here, but I believe it is coming from Spring framework that is referenced in previous lines (I had only brief encounter with Spring so not entirely sure..)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.