• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Problem in integrated spring security with struts 2

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to integrated spring security with struts 2.



when user access onLoad or onUpdate method i am getting error page 500
org.springframework.security.access.AccessDeniedException: Access is denied

instead it has to redirect to login page to get user credentials and back

I don't know what i configuration i have missed out
please help me

 
Jayaraj Jaganathan
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
after comparing this two log file i came to know that
my exception is not handled by ExceptionTranslationFilter

Spring security with spring mvc
the exception is catched by DispatcherServlet and redirected to login page

but in struts 2 we don't need DispatcherServlet
please some one tell me how to integrate spring security with struts 2

log file spring security with struts

log file spring security with spring mvc
 
Jayaraj Jaganathan
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was using StrutsPrepareAndExecuteFilter for struts2 which catches my exception

I changed to latest version FilterDispatcher filter for struts2 which performs exactly same as i expected

reply
    Bookmark Topic Watch Topic
  • New Topic