On Fri, 6 Feb 2009, AK wrote:

:I'm having trouble getting the code-set in 'email_29' in Freddy's book working.
:I'm playing around w/ sec. 3.2 of the book, but finding that though the app
:loads, after logging in as the mock user, I get the following:
:
:SEVERE: Servlet.service() for servlet jsp threw exception
:net.sourceforge.stripes.exception.ActionBeanNotFoundException: Could not locate
:an ActionBean that is bound to the URL
:[/stripesbook/view/FoldersViewHelper.action]. Commons reasons for this include
:mis-matched URLs and forgetting to implement ActionBean in your class.
:Registered ActionBeans are: {/MessageDetails.action=class
:stripesbook.action.MessageDetailsActionBean, /MockDataLoader.action=class
:stripesbook.action.MockDataLoaderActionBean, /Register.action=class
:stripesbook.action.RegisterActionBean, /ContactForm.action=class
:stripesbook.action.ContactFormActionBean, /MessageCompose.action=class
:stripesbook.action.MessageComposeActionBean, /Login.action=class
:stripesbook.action.LoginActionBean, /controller/DefaultView.action=class
:net.sourceforge.stripes.controller.DefaultViewActionBean,
:/ViewSource.action=class stripesbook.action.ViewSourceActionBean,
:/MenuViewHelper.action=class stripesbook.action.MenuViewHelper,
:/MessageList.action=class stripesbook.action.MessageListActionBean,
:/ContactList.action=class stripesbook.action.ContactListActionBean}
:       at
:net.sourceforge.stripes.controller.AnnotatedClassActionResolver.getActionBean(AnnotatedClassActionResolver.java:325)
:...
:
:I /do/ have stripesbook.view.FoldersViewHelper in my src dir and have copied
:over everything else from email_29: JSP's, web.xml, etc...
:
:layout_folders.jsp also has the following in it:
:
:<s:useActionBean id="folders" beanclass="stripesbook.view.FoldersViewHelper"/>
:
:Any idea what I'm missing.  Also, another question re the book--Is each code
:set in each email_x folder supposed to run independently, or should I have been
:incrementally copying over the contents of each successive folder over the
:other?
:
:Thanks in advance.

Got it.  I *hadn't* been loading the web.xml, and on closer inspection, 
found I'd not been including the stripesbook.view in the 
ActionResolver.Packages section:

      <param-name>ActionResolver.Packages</param-name>
      <param-value>stripesbook.action,stripesbook.view</param-value>

Why is it that one finds these things only *after* having posted to the 
mail list?



------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to