0

I read this - url mapping in stackoverflow. I am new to java web, and trying to map the url in web.xml for company detail page... I have following lines in web.xml

<servlet-mapping>
    <servlet-name>CompanyController</servlet-name>
    <url-pattern>/admin/companies.html</url-pattern>
    <url-pattern>/admin/company/add</url-pattern>
    <url-pattern>/admin/company/edit</url-pattern>
    // error in this url
    <url-pattern>/admin/*/company-details.html</url-pattern>
</servlet-mapping>

Concept of this mapping is /admin/{id_of_company}/company-details.html, returns HTTP status 404 - Not Found, is there anyway to make it workable using web.xml only, or should I move to url mapping

Community
  • 1
  • 1
Veshraj Joshi
  • 3,544
  • 3
  • 27
  • 45

0 Answers0