Thanks but yes it worked...there was something wrong with jar.
Stripes-payal wrote: > > I have a jsp which has > <%@ page contentType="text/html;charset=UTF-8" language="java" %> > <%@ taglib prefix="stripes" > uri="http://stripes.sourceforge.net/stripes.tld"%> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html> > <head> > <title>My First Stripe</title> > <style type="text/css"> > input.error { background-color: yellow; } > </style> > </head> > <body> > <h1>Stripes Calculator</h1> > > Hi, I'm the Stripes Calculator. I can only do addition. Maybe, some > day, a nice programmer > will come along and teach me how to do other things? > > <stripes:form action="com/examples/actions/TryActionBean.action" > focus=""> > <stripes:errors/> > <table> > <tr> > <td>Number 1:</td> > <td><stripes:text name="numberOne"/></td> > </tr> > <tr> > <td>Number 2:</td> > <td><stripes:text name="numberTwo"/></td> > </tr> > <tr> > <td colspan="2"> > <stripes:submit name="addition" value="Add"/> > <stripes:submit name="division" value="Divide"/> > </td> > </tr> > <tr> > <td>Result:</td> > <td>${actionBean.result}</td> > </tr> > </table> > </stripes:form> > </body> > </html> > > > And my Action Bean is located at same location as mentioned by form: > action in jsp. > > Now here is my 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.examples.actions</param-value> > </init-param> > </filter> > > <filter-mapping> > <filter-name>StripesFilter</filter-name> > <url-pattern>*.jsp</url-pattern> > <dispatcher>REQUEST</dispatcher> > </filter-mapping> > > <filter-mapping> > <filter-name>StripesFilter</filter-name> > <servlet-name>StripesDispatcher</servlet-name> > <dispatcher>REQUEST</dispatcher> > </filter-mapping> > > <servlet> > <servlet-name>StripesDispatcher</servlet-name> > > <servlet-class>net.sourceforge.stripes.controller.DispatcherServlet</servlet-class> > <load-on-startup>1</load-on-startup> > </servlet> > > <servlet-mapping> > <servlet-name>StripesDispatcher</servlet-name> > <url-pattern>*.action</url-pattern> > </servlet-mapping> > > that too points to the same folder. > when i tries to run my jsp I get the page but when I submit it gives the > exception > > net.sourceforge.stripes.exception.ActionBeanNotFoundException: Could not > locate an ActionBean that is bound to the URL > [/com/examples/actions/TryActionBean.action]. Commons reasons for this > include mis-matched URLs and forgetting to implement ActionBean in your > class. Registered ActionBeans are: {/controller/DefaultView.action=class > net.sourceforge.stripes.controller.DefaultViewActionBean} > > net.sourceforge.stripes.controller.AnnotatedClassActionResolver.getActionBean(AnnotatedClassActionResolver.java:325) > > net.sourceforge.stripes.controller.NameBasedActionResolver.getActionBean(NameBasedActionResolver.java:245) > > net.sourceforge.stripes.controller.AnnotatedClassActionResolver.getActionBean(AnnotatedClassActionResolver.java:279) > > net.sourceforge.stripes.controller.DispatcherHelper$1.intercept(DispatcherHelper.java:106) > > net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:158) > > net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java:111) > > net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java:155) > > net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java:74) > > net.sourceforge.stripes.controller.DispatcherHelper.resolveActionBean(DispatcherHelper.java:102) > > net.sourceforge.stripes.controller.DispatcherServlet.resolveActionBean(DispatcherServlet.java:245) > > net.sourceforge.stripes.controller.DispatcherServlet.doPost(DispatcherServlet.java:148) > javax.servlet.http.HttpServlet.service(HttpServlet.java:709) > javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:246) > > > note The full stack trace of the root cause is available in the Apache > Tomcat/5.5.20 logs. > > > Can any On tell me what I am missing or doing wrong. > -- View this message in context: http://www.nabble.com/problem-in-finding-the-ActionBean-class-by-jsp-tp19887791p19907019.html Sent from the stripes-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
