File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes xhtml files and spring-security. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "xhtml files and spring-security." Watch "xhtml files and spring-security." New topic
Author

xhtml files and spring-security.

samantha clarkson
Ranch Hand

Joined: Sep 09, 2008
Posts: 56
Hello everybody

I have a big problem , i have a web application (using spring, hibernate, JSF, Icefaces, and spring-security), the problème is : to use IceFaces library we have to use xhtml web pages only, and it is not compatible with spring-security ( which work only with jsp files), my question is how to use jsp files with IceFaces component so i can use spring-security tags also

I'am waiting your opinions
Xiao


farm rubbit hihihihihihi, be aware !!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15958
    
  19

I haven't done that much with Spring Security, but I'm doubtful that it really has trouble with xhtml (facelets) JSF pages. Spring is too good at keeping on top of things.

One thing that JSF in general - Facelets or otherwise - does require that traditional J2EE doesn't is the use of the "redirect" navigation element to ensure that the rules are being checked properly. That's because the container security checks URLs, not resource filenames, and the redirect indicator ensures that references to secure resources (such as xhtml pages) aren't made using insecure URLs.


Customer surveys are for companies who didn't pay proper attention to begin with.
samantha clarkson
Ranch Hand

Joined: Sep 09, 2008
Posts: 56
Hello Tim,

First Thank you for your reply.
the problem is resolved, what we done is adding a new library called facelets-jsf-spring-taglib and in xhtml files we have to add the namespace xmlns:security="http://www.springframework.org/security/facelets/tags"

that is all .
 
 
subject: xhtml files and spring-security.
 
Similar Threads
security constraint with jsp forward
How to work with Icefaces
Does Spring Web Flow 2 have role based authorization to execute flow feature?
How to create a tree component in JSF
JSF 1.1 & 1.2 dilemma