Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

CSS issue in JSP with security constraint

 
Greenhorn
Posts: 21
Android Chrome Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Marshal
Posts: 28271
95
Eclipse IDE Firefox Browser MySQL Database
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.



 
It's a pleasure to see superheros taking such an interest in science. And this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic