javax.servlet.jsp.JspException: Cannot find bean: "testList" in any scope
Riya Carl
Greenhorn
Joined: Feb 28, 2010
Posts: 9
posted
0
Hello,
I am new to Struts, and I am trying to create a small web application using tutorials in Struts 1.3. I get the error
javax.servlet.jsp.JspException: Cannot find bean: "testList" in any scope .
Anyidea whats causing this? Pleaase help.
Please UseCodeTags when posting code or configuration. Unformatted code and configuration is very difficult to read. You can edit your post to include them by using the button.
Any idea whats causing this?
The bean "testList" isn't in any scope. Unfortunately, you don't provide the code that actually causes the error, so it's impossible to help.
And welcome to JavaRanch!
Riya Carl
Greenhorn
Joined: Feb 28, 2010
Posts: 9
posted
0
Thanks for replying David. I can add the full source code. Please find attached rest of the java files.
I'd also recommend against using the URL mapping you're using, and instead set it to something more reasonable like "*.do", which is the canonical Struts 1 mapping.
Riya Carl
Greenhorn
Joined: Feb 28, 2010
Posts: 9
posted
0
Ok. I had mapped it to *.do earlier, however it gave the same error.
So what am I doing wrong that it does not call the action. What should I do?
Okay, This is what I have modified in struts-config.xml and index.jsp. Now I get HTTP Status 404 No matter if I write /examplejsp or examplejsp in the link.