Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

a conceptual problem with security in spring

 
sina poores
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i programming a spring mvc project.
i want to people who see my web only can see page throw a controller=>view for example can't access a page by type localhost/web-inf/home.jsp that no touch controller and only can see home page by a controller way to view for example localhost/home
can you give me some suggerstion??

i will be realy greatfull for any help with spring mvc or spring security capabilities.
thanks
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"localhost/web-inf/home.jsp"

JSP/Servlet spec blocks the WEB-INF directory from people being able to access it directly. So not something that Spring Security needs to do to stop that, it is already built into JSPs/Servlets spec.

Mark
 
sina poores
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
yes.you are right.i have a mistake in deployment that cause this problem.
thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic