wood burning stoves 2.0*
The moose likes Spring and the fly likes a conceptual problem with security in spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "a conceptual problem with security in spring" Watch "a conceptual problem with security in spring" New topic
Author

a conceptual problem with security in spring

sina poores
Greenhorn

Joined: Jul 07, 2011
Posts: 20
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

Joined: Feb 05, 2001
Posts: 17249
    
    6

"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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
sina poores
Greenhorn

Joined: Jul 07, 2011
Posts: 20
yes.you are right.i have a mistake in deployment that cause this problem.
thanks
 
Don't get me started about those stupid light bulbs.
 
subject: a conceptual problem with security in spring
 
Similar Threads
Spring + MVC pattern in non-web application
Spring, in Spring-Struts-Hibernate application
Expert Spring MVC and Web Flow by Seth Ladd et al
struts2 Vs spring mvc
making a Spring MVC website