• 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

xhtml files and spring-security.

 
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
samantha clarkson
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 .
 
reply
    Bookmark Topic Watch Topic
  • New Topic