Announcement Announcement Module
Collapse
No announcement yet.
servlet-mapping and html questions Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • servlet-mapping and html questions

    Hello,

    I have a web application with diferents modules, which everyone have a DispatcherServlet in the web.xml:

    <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:

    /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:

    <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&#40;xxxxxx&#41;;
    have i to register the html in views.properties? how??? what View???

    thanks in advance,
    CÚsar.
Working...
X