• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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:




 
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic