• 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
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

How to bypass spring secuirty setup for Javascript files and Struts2 ajax (DOJO) files?

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have Struts2 (2.1.8), Spring (security 2.0.4), Hibernate,Tiles etc. setup. Everything works fine except for javascript files. i am not able to bypass spring security authentication or even authentication, Javascript files. They are being blocked and I cannot use Struts2 Ajax tags or any javascript files. From what I can gather it must be something to do with either web.xml (dispatcher) setup or applicationcontext.xml setup. But unable to find any solution so far. Here are my web.xml and applicationcontext.xml. Can anyone help?

applicationcontext.xml ( took namespace tags out for this posting)
 
R Datla
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Resolved it myself. Basically what needed to change was this snippet of code :



to this :




Basically the previous xml mapping was outdated and the one used above probably new version. At least in documentation off Spring's security API, that seems to be the standard. I guess it always serves you well when you read the documentation, the lesson that I never seem to learn quick enough
 
reply
    Bookmark Topic Watch Topic
  • New Topic