servlet-mapping and html questions
Hello,
I have a web application with diferents modules, which everyone have a DispatcherServlet in the web.xml:
Quote:
<servlet>
<servlet-name>clientes</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherSe rvlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet>
<servlet-name>usuarios</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherSe rvlet</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>clientes</servlet-name>
<url-pattern>/clientes/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>usuarios</servlet-name>
<url-pattern>/usuarios/*</url-pattern>
</servlet-mapping>
Directory of Application:
Quote:
/index.html
/WEB-INF/...
/clientes/indexClientes.html
/usuarios/indexUsuarios.html
i want that index.html have links to indexXXX.html of the modules of application:
Quote:
<a href="clientes/indexClientes.html">Clientes</a>
<a href="usuarios/indexUsuarios.html">Usuarios</a>
when i click link don't find page: HTTP Status 404.
another question:
i have a Controller and i want to redirect to a html page.
Code:
return new ModelAndView(xxxxxx);
have i to register the html in views.properties? how??? what View???
thanks in advance,
César.