Whenever I try to compile the following code in JBoss, it gives Nullpointer Exception:
<jsp:include page = '<%=WSSUtils.JSP_COMMON_PATH+"SLA.jsp"%>'>
<jsp:param name="FORM_NAME" value="document.frmSubmitServiceRequests" />
<jsp:param name="SELECTED_SERVICE" value='<%=eCRMRequest!=null?eCRMRequest.getParameter("setService"):null%>' />
<jsp:param name="SELECTED_PRODUCT" value='<%=eCRMRequest!=null?eCRMRequest.getParameter("setProduct"):null%>' />
</jsp:include>
If the same code is written in the below mentioned way, the compilation goes fine:
<jsp:include page = '<%=WSSUtils.JSP_COMMON_PATH+"SLA.jsp?FORM_NAME=document.frmSubmitServiceRequests&SELECTED_SERVICE=eCRMRequest!=null?eCRMRequest.getParameter("setService"):null&SELECTED_PRODUCT=eCRMRequest!=null?eCRMRequest.getParameter("setProduct"):null"%>'>
Can anybody throw some light on this.
-Vinay