java - 404 Spring root and not root URLs handling -


urls http://localhost:8080/app/service/c345gf.html?serviceid=101

goes notfoundpage, sources in html wrong http://localhost:8080/app/service/css/panels/rightpanel.css

but stuff css/panels/rightpanel.css has such proper url http://localhost:8080/app/css/panels/rightpanel.css ,

project_url hardcoded. so, why have between hardcoded http://localhost:8080/app/ , /css part part: /service?

public class errorservice extends httpservlet implements projectproperties {    public void doget(httpservletrequest request, httpservletresponse response) throws servletexception,         ioexception {         //...         out.println("<html>\n" +                 "<head><title></title>\n" +                 "    <script type=\"text/javascript\" src=\"" + project_url  

mapping:

 <servlet-mapping>     <servlet-name>springmvc</servlet-name>     <url-pattern>*.do</url-pattern> </servlet-mapping> <servlet>     <servlet-name>errorservice</servlet-name>     <servlet-class>com.vse.uslugi.web.errorservice</servlet-class> </servlet> <servlet-mapping>     <servlet-name>errorservice</servlet-name>     <url-pattern>/error</url-pattern> </servlet-mapping> <error-page>     <error-code>404</error-code>     <location>/error</location> </error-page> 


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

Kivy: Swiping (Carousel & ScreenManager) -