Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

CSS issue in JSP with security constraint  RSS feed

 
Luis Villamarin
Greenhorn
Posts: 21
Android Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I'm having a silly problem with my css and one of my jsps. I created a restricted folder where people who are registered only can access the pages inside.

For some reason the CSS disappears when I go to any of the pages inside the secured folder, the login.jsp (located outside the secure folder) or login-error.jsp (also outside the secure folder).

I've tried using absolute and relative links to link back to the CSS but still none seems to work.

If I remove the security constraint then everything start to work again.

Any ideas on how to solve this?
 
Paul Clapham
Sheriff
Posts: 22531
43
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That suggests to me that the security constraints are preventing the CSS from being downloaded. Have you done some browser debugging to see whether that is the case?
 
Luis Villamarin
Greenhorn
Posts: 21
Android Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

That suggests to me that the security constraints are preventing the CSS from being downloaded. Have you done some browser debugging to see whether that is the case?


I debugged and found that the css is not being downloaded. I'm new to Java Web development would you be able to let me know how to enable the css to be download to the app when it accesses the pages in the secured folder?

Thanks in advance.



 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!