java - Problem configuring my first Stripes project -


apparently i'm having technical problem configuring stripes.

i use eclipse ganymede , when try run project main project or jsp 404 error tomcat.

this structure of project:

web-content>web-inf>lib>....jstl, commons.logging , stripes jars web-content>web-inf>classes>stripesresources.properties web-content>web-inf>classes>stripesbook>action>stripestime.java                                                (extends actionbean) web-content>web-inf>jsp>stripestime.jsp web-content>web-inf>lib>web.xml....which looks follows: 

web.xml: stripes

  <filter>     <filter-name>stripes filter</filter-name>     <filter-class>net.sourceforge.stripes.controller.stripesfilter</filter-class>     <init-param>       <param-name>actionresolver.packages</param-name>       <param-value>stripesbook.action</param-value>     </init-param>   </filter>    <servlet>     <servlet-name>dispatcherservlet</servlet-name>     <servlet-class>net.sourceforge.stripes.controller.dispatcherservlet</servlet-class>     <load-on-startup>1</load-on-startup>   </servlet>    <filter-mapping>     <filter-name>stripesfilter</filter-name>     <servlet-name>dispatcherservlet</servlet-name>     <dispatcher>request</dispatcher>     <dispatcher>forward</dispatcher>   </filter-mapping>    <servlet-mapping>     <servlet-name>dispatcherservlet</servlet-name>     <url-pattern>*.action</url-pattern>   </servlet-mapping>    <welcome-file-list>     <welcome-file>stripestime.jsp</welcome-file>   </welcome-file-list> </web-app> 

apparently, jars loaded correctly, packages in right places "the stripes tutorial i'm following inserts packages folders under web-inf rather under java-resources:src" cant why, if run jsp file independently, tomcat wont find it. suggestions? thank you!

the stripes framework expects names of action bean classes end on either action or bean. other class names ignored, unless configure stripes recognize them (see: namebasedactionresolver).

thus if change name of stripestime class stripestimeaction recognized stripes , mapped url: "/stripestime.action".

please see also: stripes url bindings , event names


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -