Note that there are some explanatory texts on larger screens.

plurals
  1. POSpring and the /* url pattern
    primarykey
    data
    text
    <p>We have a url-pattern of "/*" and requests get to our controller, but we always get a 404. Here is our web.xml</p> <pre><code>&lt;servlet&gt; &lt;servlet-name&gt;bro&lt;/servlet-name&gt; &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt; &lt;init-param&gt; &lt;param-name&gt;contextConfigLocation&lt;/param-name&gt; &lt;param-value&gt;classpath:mo/config/mo-spring.xml&lt;/param-value&gt; &lt;/init-param&gt; &lt;load-on-startup&gt;1&lt;/load-on-startup&gt; &lt;/servlet&gt; &lt;servlet-mapping&gt; &lt;servlet-name&gt;bro&lt;/servlet-name&gt; &lt;url-pattern&gt;/*&lt;/url-pattern&gt; &lt;/servlet-mapping&gt; </code></pre> <p>mo-spring.xml: </p> <pre><code>&lt;bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt; &lt;property name="suffix" value=".jsp"/&gt; &lt;/bean&gt; &lt;mvc:resources mapping="/css/**" location="/css/" /&gt; &lt;mvc:resources mapping="/images/**" location="/images/" /&gt; &lt;mvc:resources mapping="/js/**" location="/js/" /&gt; &lt;mvc:resources mapping="/views/" location="/views/" /&gt; </code></pre> <p>A bit of the controller:</p> <pre><code>@RequestMapping(value="/signon", method=RequestMethod.GET) public String signon(HttpServletRequest request) { ... return "/WEB-INF/index"; } </code></pre> <p>If i use /xxx/* as the url-pattern in my web.xml everything works as expected, but we have a dojo app that we really don't want to modify that wants to talk to /* and not /xxx/*</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload