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]
# 1
Well, "createExcelFile" is misspelled in your html:link, but I don't think that's why you're getting your bean error. It might fix your "hello" alert, though. :)
kevjavaa at 2007-7-12 18:20:16 > top of Java-index,Java Essentials,Java Programming...
# 2
wow... if that's the problem i will like to kill me...
Daniel23a at 2007-7-12 18:20:16 > top of Java-index,Java Essentials,Java Programming...
# 3
No, that was not the problem.Even the alert is not being shown
Daniel23a at 2007-7-12 18:20:16 > top of Java-index,Java Essentials,Java Programming...
# 4

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.

Daniel23a at 2007-7-12 18:20:16 > top of Java-index,Java Essentials,Java Programming...
# 5

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.

Daniel23a at 2007-7-12 18:20:16 > top of Java-index,Java Essentials,Java Programming...
# 6

I changed the 'href' to a 'forward' and it looks to be calling to action class at least now... but i don't understand why.

what's difference between href and forward

and also with forward, when i pass cursor over work 'Excel' it doesn't changes into hand-link cursor and remains as arrow...

Daniel23a at 2007-7-12 18:20:16 > top of Java-index,Java Essentials,Java Programming...