I am using Stripes for a simple web application. I am facing following problems:
(1) First of all I have defined following entry in web.xml <filter> <display-name>Stripes Filter</display-name> <filter-name>StripesFilter</filter-name> <filter-class>net.sourceforge.stripes.controller.StripesFilter</filter-class> <init-param> <param-name>ActionResolver.Packages</param-name> <param-value>com.learninginnovations.biz</param-value> </init-param> <init-param> <param-name>ActionBeanContext.Class</param-name> <param-value>com.learninginnovations.biz.ApplicationActionBeanContext</param-value> </init-param> </filter>
All of my action beans are in com.learninginnovations.biz package. But at the time of deployment its not loading the action classes.
(2) Second thing is in my jsp I have defined like this
It looks and sounds to me like a development environment setup issue. For some reason Stripes thinks that Final-Project is part of your package structure. That would explain why the Resolver isn't finding your action beans in the package you've specified.
Are you using an IDE? If so, what do you have marked as your source folders? If not, how are you compiling? Can you show us the actual command?
I'm having a hard time figuring out why it would be doing that. I don't recall this ever coming up on the mailing list and I've never encountered it before. I still say it has something to do with your packaging. If you look in your WEB-INF/classes folder do you see a folder called Final-Project? Or do you just see com ?
I am not able to figure out the problem. Now I am trying by using action instead of beanclass <stripes:form action="com/learninginnovations/biz/StudentLogin.action" focus="">
but I am getting following error on tomcat window when I am trying to submit my request:
17:37:36,472 ERROR FormTag:369 - Could not locate an ActionBean that was bound to the URL [com/learninginnovations/biz/StudentLogin.action]. Without an ActionBean class Stripes cannot determine whether the ActionBean is a wizard or not. As a result wizard behaviour will be disabl ed.
But at the time of deployment I was able to see the following lines: 17:33:12,520 DEBUG AnnotatedClassActionResolver:156 - Bound: StudentLoginActionBean.login() ==> /com/learninginnovations/biz/StudentLogin.action?login
I tried putting ?login at the end in action value but it didn't work. I was going fast when I started with Stripes but now I am too slow. Please help if you can figure out the issue.