Web.xml servlet displaying an infinite loop

I am using appengine and it seems to have some problems with url routing

My web.xml

<servlet>
    <servlet-name>ViewServlet</servlet-name>
    <jsp-file>viewdata.jsp</jsp-file>
</servlet>

<servlet-mapping>       
    <servlet-name>ViewServlet</servlet-name>
    <url-pattern>/view/*</url-pattern>
</servlet-mapping>


<welcome-file-list>
    <welcome-file>default.html</welcome-file>
</welcome-file-list>

Redirection works very well when I test on a local computer. When loading into the application, when I try to go to http: // myurl / view / , it redirects endlessly to

http: //myurl/view/default.html/default.html ...

This is the correct way to redirect to web.xml. I missed something. It works fine on the local machine. It just goes into an endless loop when loading on gae. Any help would be appreciated ...

+3
source share
1 answer

, <jsp-file> (/), JSP .

+5

Source: https://habr.com/ru/post/1795584/


All Articles