[ServletException in:/WEB-INF/pages/main/GarnishorSearch.jsp] null'
Hi guys..
Whenever I click on a tab in our application I am getting the following exception "[ServletException in:/WEB-INF/pages/main/GarnishorSearch.jsp] null' ".
But the same jsp is displaying the contents in another instance.
Im using Struts.Does the OC4J version also matters?
I am also getting the same exception while searching for a bulk data in same application but in a different JSP file.
The Code
Following is the code of my jsp file.
Code: java
Code:
// Any source code blocks look like this.
<%@ taglib uri="/tag/struts-html" prefix="html" %>
<%@ taglib uri="/tag/struts-logic" prefix="logic" %>
<%@ taglib uri="/tag/struts-bean" prefix="bean" %>
<%@ taglib uri="/tag/exxor" prefix="exxor" %>
<script language="javascript">
function submitSearch(id)
{
document.searchResultSubmit.cancelSearch.value="false";
document.searchResultSubmit.ID.value=id;
document.searchResultSubmit.submit();
}
function validateSearch()
{
var searchCriteria = document.searchForm.SEARCHCRITERIA.value;
if (searchCriteria == "HOLDPAYMENTS")
{
var searchValue = document.searchForm.SEARCHVALUE.value;
if (searchValue.length == 1
&& (searchValue.toLowerCase() == 'y'
|| searchValue.toLowerCase() == 'n' ))
{
// this is a valid condition if not alert error.
} else
{
alert("Valid values are 'Y' or 'N'");
document.searchForm.SEARCHVALUE.focus();
return false;
}
} else
{
if (document.searchForm.SEARCHVALUE.value.length < 2)
{
alert("Please enter atleast two characters for search");
document.searchForm.SEARCHVALUE.focus();
return false;
}
}
if (checkWildChar("searchForm", "SEARCHVALUE") == false) return false;
return true;
}
function cancelSearch()
{
document.searchResultSubmit.cancelSearch.value="true";
document.searchResultSubmit.submit();
}
</script>
<div align="center">
<html:form onsubmit="return validateSearch()" action="/garnishor/search" method="post" focus="SEARCHVALUE">
<html:hidden property="SORT_COLUMN"/>
<html:hidden property="SORT_ORDER"/>
<table>
<tr>
<td width="400" align="center">
<fieldset>
<legend style="font-weight:bolder;font-size:14px">Find Garnishor</legend>
<table>
<input type=hidden name="EFFECTIVEDATE" value="<%=session.getAttribute("effectiveDate")%>" />
<tr>
<td>
<exxor:createHTMLOptions property="SEARCHCRITERIA" name="searchForm" scope="session" propertyId="SEARCHCRITERIA" empty="false" SQLCommand="dd-garnishor-search">
</exxor:createHTMLOptions>
</td>
<td>
<html:text property="SEARCHVALUE" size="15" maxlength="50"/>
</td>
<td>
<input type="submit" value="Search"/>
</td>
<logic:equal parameter="cancelSearch" value="true">
<td>
<input type="button" value="Cancel" onClick="javascript:cancelSearch();"/>
</td>
</logic:equal>
</tr>
</table>
</fieldset>
</td>
</tr>
</table>
<input type="hidden" name="redirectURL" value="<%=request.getParameter("redirectURL")%>">
<%String resp1=(String)session.getAttribute("RESPONSIBILITY");
if("XXOR_CA_GMS".equalsIgnoreCase(resp1))
{%>
<logic:notEqual property="SEARCHVALUE" name="searchForm" scope="session" value="">
<exxor:transformer name="searchForm" scope="session" SQLCommand="sr-ca-garnishor" XSL="DBSearchList.xsl">
<exxor: param name="sort-column"><bean:write name="searchForm" property="SORT_COLUMN" scope="session"/></exxor: param>
<exxor: param name="sort-order"><bean:write name="searchForm" property="SORT_ORDER" scope="session"/></exxor: param>
</exxor:transformer>
</logic:notEqual>
<%}
else
{%>
<logic:notEqual property="SEARCHVALUE" name="searchForm" scope="session" value="">
<exxor:transformer name="searchForm" scope="session" SQLCommand="sr-garnishor" XSL="DBSearchList.xsl">
<exxor: param name="sort-column"><bean:write name="searchForm" property="SORT_COLUMN" scope="session"/></exxor: param>
<exxor: param name="sort-order"><bean:write name="searchForm" property="SORT_ORDER" scope="session"/></exxor: param>
</exxor:transformer>
</logic:notEqual>
<%}
%>
</html:form>
<!-- added for gms global enhancement on 23-sep-2009 -->
<%String resp=(String)session.getAttribute("RESPONSIBILITY");
if("XXOR_CA_GMS".equalsIgnoreCase(resp))
{%>
<form name="searchResultSubmit" action="<%=request.getContextPath()%>/do/garnishor/ca/search/submit" method="post">
<%}
else
{%>
<form name="searchResultSubmit" action="<%=request.getContextPath()%>/do/garnishor/search/submit" method="post">
<%}
%>
<!--<form name="searchResultSubmit" action="<%=request.getContextPath()%>/do/garnishor/search/submit" method="post">-->
<input type="hidden" name="ID" />
<input type="hidden" name="cancelSearch" value="<%=request.getParameter("cancelSearch")%>"/>
<input type="hidden" name="redirectURL" value="<%=request.getParameter("redirectURL")%>">
<input type="hidden" name="EFFECTIVEDATE" value="<%=session.getAttribute("effectiveDate")%>" />
</form>
</div>
Any help is appreciated..Please Reply as soon as possible.
Thank you :)
|