On 19/04/2008, Chad Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a question regarding the signup page for the Appfuse-SpringMVC web > application I just built. I have noticed that only the following URL leads > to the signup page correctly: > > http://localhost:8080/signup.html > > while anything else, such as http://localhost:8080/signup.htm or > http://localhost:8080/signup.do will lead to the "Page Not Found". On the > other hand, the dispatcher-servlet.xml has the following configuration: > > <bean > class="org.springframework.web.servlet.mvc.support.ControllerClassNameHandlerMapping"> > <property name="order" value="1"/> > </bean> > > According to the JavaDoc of the bean class, SignupController should be > able to match URLs like http://localhost:8080/signup*. > > Is there any Appfuse built-in security setting involved in this? Can > someone give some explanation on this?
It is to do with the configuration of the Spring dispatcher servlet in web.xml - in AppFuse the static filter maps incoming requests to the dispatcher servlet. Only requests ending in .html are sent to the static filter, so only those requests are sent through to Spring for processing. Mike Thanks. > > Chad > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
