Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
R Datla
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic