apparently i m having some technical problem configuring Stripes.
我使用Eclipse ganymede,当我试图从主要项目或从小段从Tomcat获得404个错误时。
这是我的项目的结构:
Web-content>Web-inf>lib>....jstl, commons.logging and 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 as 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 are loaded correctly, the packages are in the right places "the stripes tutorial i m following inserts the packages as folders under the web-inf rather then under the Java-Resources:src" I cant get why, even if i run the jsp file independently, tomcat wont find it. Any suggestions? Thank you!