Edited to make the code more readable. Sorry.
I have a problem with
Struts, which is almost certainly due to a misunderstanding of struts-config.xml. The situation is as follows.
I have a Forward to a page which presents a list of reports. Choosing one of these reports forwards to a form containing the parameters for the report. Submitting the report forwards to a third page which should display the generated report. "Should", because it's failing with a Cannot find bean xxx in any scope error.
The relevant parts of struts-config.xml (dgemapReportForm is defined earlier as is a ViewReports Global Foward):
The relevant parts of ViewReportAction:
The revelant bit of reportParams.jsp:
And of reportResults.jsp
As this code stands, the com.dgemap.test bean is not found (nor were the other ones before I commented them out!).
Note that the attributes are set correctly in the relevant parts of ViewReportAction.java and that this works fine for the reportParams page. It's when forwarding to reportResults that it "loses" them. I have debug statements in the log that demonstrates that the attributes are set correctly,so the problem lies within the Struts framework, but I don't see what I've done wrong. The configuration in struts-config.xml was copied from a working part of the web app (albeit a part which works a little differently) and then modified to suit this situation. I guess I might be able to simply put all of this into session scope , but I'd really rather not. It shouldn't need to be.
Thanks in advance for any help offered.
Jon