• 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

Problem in securing the method ( Struts 2 - Spring Security 3.0.3)

 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai all,

I am trying to integrate spring security in my project
i have successfully integrated custom authentication, business function.etc

now i am trying to secure my action methods



i have added the security by



my struts action is able to work correctly before i add sec:intercept-method
after i add sec:intercept-methods i am getting the below exception



i have searched many web site and finally i am looking for your help
your experience will help me.

please do reply

thanks in advance

 
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 have traced the problem but still don't know the solution

1)

Note : The below class doesn't implement or extend and other class





my code work with cglib but look at my spring file doesn't have <aop:config proxy-target-class="true" />

I hope <aop:config proxy-target-class="true" /> configuration is not necessary

2) Note : Now the class extend ActionSupport

I get the following exception



now my problem is my class must extend ActionSupport and cglib proxy need to be created

please help me



 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Haven't done Spring Security with Struts, but I would have thought you just need to secure the URL that is mapped to that Action class. So you would be using the Spring Security <security: namespace in a Spring configuration file. It seems that would be the easiest approach

><security:intercept-url>

Good Luck

Mark
 
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
found the solution

Spring forum

thanks you Mark Spritzler
 
reply
    Bookmark Topic Watch Topic
  • New Topic