HTTP ERROR: 500 Cannot find bean scope
Hi all i am stucked on this for 2 days... Any help will be appreciated.
I am getting this error:
HTTP ERROR: 500 Cannot find bean loprExceptionSummaryForm in any scope
I have this link here on JSP file:
<html:link name="loprExceptionSummaryForm" property="linkExcelExport" styleClass="exportLink" href= "#" onclick="creteExcelFile(document.form[0]);" title="Click here to export the results to Excel">
Excel<base target="frmMain">
</html:link>
and this function in javascript file:
function createExcelFile(form)
{
alert('hello');
form.linkExcelExport.value = "true";
form.includeNotes.value = "true";
form.submit();
}
and this lines on struts-config.xml file:
<action path="/loprexceptionsummary"
type="com.cboe.workBench.action.LOPRExceptionSummaryAction"
name="loprExceptionSummaryForm"
scope="request"
validate="false"
parameter="actionType"
input="/LOPRExceptionSummary.jsp">
<forward redirect="false" name="loprexceptionsummary" path="/LOPRExceptionSummary.jsp" />
</action>
When i press on the 'Export to excel link' i get that error... I don't even see the 'hello' alert in js file.
I have tried everything i know... any idea?
[1348 byte] By [
Daniel23a] at [2007-11-27 6:47:26]

i changed the link for:
<a name="loprExceptionSummaryForm" property="linkExcelExport" href="#" onclick="createExcelFile(this.form);" styleClass="exportLink" >Excel</a>
and the js file for:
function createExcelFile(form)
{
alert('hello');
/*form.linkExcelExport.value = "true";
form.includeNotes.value = "true";
form.submit();*/
}
i get the hello message, but after that, i get again the same:
Re: HTTP ERROR: 500 Cannot find bean scope
error even the submit is commented.
Also i am sure the action class is not reached anyway because i can't see any of the prints it should write there.
in the beggining the link was:
href="loprexceptionsummary.do?actionType=doLOPRExceptionSummary"
and it was wokring well
then i set it to "#" becauset i need to add a new parameter to the action class.
Depending on a checkbox:
<html:checkbox property="includeNotes">
Include Notes
</html:checkbox>
i should call href like:
href="loprexceptionsummary.do?actionType=doLOPRExceptionSummary&includeNotes=false"
of
href="loprexceptionsummary.do?actionType=doLOPRExceptionSummary&includeNotes=true"
if i 'hard code' the href to true or false it is working, but i don't know how to create a dynamic href to forward again to action with the value for includeNotes property in the URL so i decided to make a javascript to add it manualy and then submit form.
If you know how to modify the href dinamycly it would also help me.
Thanks.