problem creating url
I have the following code and for some reason, it can not construct the URL.. When I reference <%=Parameter.PROCEDURE_INDEX_PARAM%> it does not seem to understand it. When I hard-code the value ("procedureindex") it works.
If I reference Parameter.PROCEDURE_INDEX_PARAM in my scriptlet code, it works just fine.
What am I doing wrong?
<%@ page info="Procedure Results" import="adac.web.util.Parameter" %>
<script language=javascript>
function blankRightWindow(webServerIP, uid, contextPath, strCnt, showImages, viewerType){
if (showImages){
if(viewerType ==null || viewerType.toUpperCase() =="AMICAS"){
url ="http://" + webServerIP +"/servlet/com.amicas.servlet.integration.CernerEmbeddedWebViewer?";
url = url + uid;
}else{
alert ("cnt " + strCnt);
//url = contextPath + "image.jsp?" + "procedureindex" + "=" + strCnt
url = contextPath +"image.jsp?" + <%=Parameter.PROCEDURE_INDEX_PARAM%> +"=" + strCnt
alert ("URL: " + url);
}
}
</script>

