When I turn on TCP/IP monitor I can see that the browser want to get /myapp/restricted/login.css not /myapp/login.css.
And of course instead of content of css file I get login.jsp.
Please help. I don't know what am I doing wrong.
I guess there is something wrong with redirect to login.jsp. I think that after successful redirect the url in the browser should point to the login.jsp, but in my case it is still pointing to the restricted resource.
I have tested this in FF, Chrome and IE and result is the same in every browser.
I'm using jboss 5.0 GA.
Thanks in advance
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/login.css" />
Explanation: you call a page like "/restricted/mypage.jsp", which redirects you to the login page. But your browser still sees "/restricted/mypage.jsp" (see address bar) and thinks that "login.css" is a relative URL in the "restricted" area.
Hope this helps