This content has been marked as final.
Show 2 replies
-
1. Re: Problem with css files in login.jsp page
misqu23 Jan 13, 2009 9:55 AM (in response to misqu23)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
Martin -
2. Re: Problem with css files in login.jsp page
wolfgangknauf Jan 14, 2009 9:22 AM (in response to misqu23)Hi Martin,
try this:<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
Wolfgang