And id you didn't do so, use beanclass="path.to.your.action.bean.YourActionBean" in stripes:form tag instead of action. This may help you solve your problem since it will generate a good URL unless it doesn't find the action bean.
Btw, you seem to use an old example because <stripes:form beanclass=""> is used in the current quickstart. See it at http://www.stripesframework.org/display/stripes/Quick+Start+Guide Christian -----Original Message----- From: Poitras Christian [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2008 4:39 PM To: 'Stripes Users List' Subject: Re: [Stripes-users] problem in finding the ActionBean class by jsp Did you create the net.sourceforge.stripes.examples.quickstart.CalculatorActionBean class (it's not included with Stripes)? If so, did you include <init-param> <param-name>ActionResolver.Packages</param-name> <param-value>net.sourceforge.stripes.examples</param-value> </init-param> in the StripesFilter declaration? Christian -----Original Message----- From: Stripes-payal [mailto:[EMAIL PROTECTED] Sent: Thursday, October 09, 2008 4:19 PM To: [email protected] Subject: Re: [Stripes-users] problem in finding the ActionBean class by jsp I am just trying to run the first example of Stripes:CalculatorActionBean Though I have just copy -pasted every thing as mentioned in documentation still its giving the exception org.apache.jasper.JasperException: Could not determine action from 'beanclass' supplied. The value supplied was 'net.sourceforge.stripes.examples.quickstart.CalculatorActionBean'. Please ensure that this bean type exists and is in the classpath. If you are developing a page and the ActionBean does not yet exist, consider using the 'action' attribute instead for now. at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java:246) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) at java.lang.Thread.run(Unknown Source) 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.getAct > ionBean(AnnotatedClassActionResolver.java:325) > > net.sourceforge.stripes.controller.NameBasedActionResolver.getActionBe > an(NameBasedActionResolver.java:245) > > net.sourceforge.stripes.controller.AnnotatedClassActionResolver.getAct > ionBean(AnnotatedClassActionResolver.java:279) > > net.sourceforge.stripes.controller.DispatcherHelper$1.intercept(Dispat > cherHelper.java:106) > > net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionC > ontext.java:158) > > net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.interc > ept(BeforeAfterMethodInterceptor.java:111) > > net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionC > ontext.java:155) > > net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionCont > ext.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(StripesFilte > r.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-tp19887791p19906511.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 ------------------------------------------------------------------------- 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 ------------------------------------------------------------------------- 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
