File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes javax.servlet.jsp.JspException: Cannot find bean locationList in any scope Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "javax.servlet.jsp.JspException: Cannot find bean locationList in any scope" Watch "javax.servlet.jsp.JspException: Cannot find bean locationList in any scope" New topic
Author

javax.servlet.jsp.JspException: Cannot find bean locationList in any scope

John Zwick
Ranch Hand

Joined: Mar 02, 2009
Posts: 34
Hi,

I am receiving this exception on my portlet when I click on the submit button on the form. index.jsp loads fine and is able to render locationList using <bean:write name="locationList"/>. I have tried to figure this out for days with no luck, I was hoping some of you can find something that I am not seeing.

The exception:
SRVE0068E: Uncaught exception thrown in one of the service methods of the servlet: SPSInventory Portlet.
Exception thrown : javax.servlet.ServletException: javax.portlet.PortletException: javax.servlet.jsp.JspException: Cannot find bean locationList in any scope
at com.ibm.ws.portletcontainer.invoker.impl.PortletServlet.doDispatch(PortletServlet.java:361)
at com.ibm.ws.portletcontainer.invoker.impl.PortletServletCollaboratorChainImpl.doCollaborator(PortletServletCollaboratorChainImpl.java:82)
at com.ibm.isclite.container.collaborator.PortletServletCollaborator.doDispatch(PortletServletCollaborator.java:124)

Here is the main body in index.jsp:


Here is part of my struts-config file:


In my action class, I store the locationList into a RenderRequest object:




Chris Boldon
Ranch Hand

Joined: Aug 10, 2006
Posts: 190
I wasn't aware that Struts tags could grab objects off the request attribute. I was always under the impression that it had to be set on the form.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: javax.servlet.jsp.JspException: Cannot find bean locationList in any scope