Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You need to define other filters for js, style and img.</p> <p>Something like this:</p> <pre><code>&lt;rule&gt; &lt;from&gt;/img/**&lt;/from&gt; &lt;to&gt;/img/$1&lt;/to&gt; &lt;/rule&gt; &lt;rule&gt; &lt;from&gt;/js/**&lt;/from&gt; &lt;to&gt;/js/$1&lt;/to&gt; &lt;/rule&gt; &lt;rule&gt; &lt;from&gt;/style/**&lt;/from&gt; &lt;to&gt;/style/$1&lt;/to&gt; &lt;/rule&gt; </code></pre> <p>These filters should be declare before the one you define for the user. These rules will match before the one that apply to the filter and your problem should be solved.</p> <p><strong>Edit</strong>.</p> <p>Regarding your comment: <em>That user which can be seen in the print screen is added somehow by the filter</em>.</p> <p>I think that is not correct, I mean, the filter is not the one that is adding "user" to the filter. I think the problem is how you are importing your resources. </p> <p>Probably, you are doing something like this:</p> <pre><code>&lt;script type="text/javascript" language="javascript" src="resources/js/lang.js"&gt;&lt;/script&gt; </code></pre> <p>In this example, see how the relative URI doesn't not content your application context and starts with no slash. When you use a URL like that the browser is going to look for the resource in a path relative to actual path. If you have in your browser <code>http://localhost:8080/roqlet/user</code> the result will be <code>http://localhost:8080/roqket/user/theResource</code> (assuming 'roqket' is your app context).</p> <p>So, you should do this:</p> <pre><code>&lt;c:set var="ctx" value="${pageContext.request.contextPath}"/&gt; &lt;script type="text/javascript" language="javascript" src="${ctx}/resources/js/lang.js"&gt;&lt;/script&gt; </code></pre> <p>Now, that you indicate the context, the URI will be built relative to it and not to the actual: <code>http://localhost:8080/roqket/theResource</code> </p> <p>Take a look to this <a href="http://www.webreference.com/html/tutorial2/3.html" rel="nofollow">doc</a>.</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.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      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