This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.



Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Issue of Struts 2 URI Actions  RSS feed

 
Khosrow Moossavi
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Ranchers,

I've just faced something weird and couldn't find anything useful regarding to it after some googling.
I'm using Struts 2.1.6, Spring 2.5, Hibernate 3.0.

The struts.xml


Every URI works perfectly ok such as
  • http://www.mydomian.com/
  • http://www.mydomian.com/about
  • http://www.mydomian.com/advertise


  • as well as these URIs(!):
  • http://www.mydomian.com/foo/about
  • http://www.mydomian.com/bar/advertise
  • http://www.mydomian.com/foo/bar/advertise/about
  • http://www.mydomian.com/every/signle/thing/you/could/imagine/about
  • ...


  • They are all working as long as the last one is correct and being in the struts.xml file.
    My question is, Am I missing something, somewhere in my code? Or is this just a known bug of struts 2?

    I'm apologizing beforehand if the question is basic or something!

    Regards,
    Khosrow
     
    Ankit Garg
    Sheriff
    Posts: 9608
    36
    Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    There was a similar question some time ago here. Try to do what David said (and ignore what I said as its wrong )...
     
    Khosrow Moossavi
    Greenhorn
    Posts: 26
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thanks for your response Ankit. I've managed it someway, with my piece of code, but I should look up Convention Plugin as well.
    By the way, It's great, specially the words in the brackets!!
     
    With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!