Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

struts - cannot find bean in any scope

 
Madhvi Desai
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi

when i access http://localhost:8084/struts_try/try.jsp i get cannot find bean "nameList" in any scope exception...

but when i access http://localhost:8084/struts_try/try.do , it works fine.

can any one explain me what is the reason...

thanks in advance.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Because the action is what puts the bean into scope.
 
Madhvi Desai
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey David thnks for the reply...

But now link http://localhost:8084/struts_try/try.do is also not working... it is giving error like "The requested resource (/struts_try/try) is not available."

earlier it was running perfectly fine.
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Restart? I have no way of knowing what you did, if you changed code that requires a restart, etc.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic