File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Issue of Struts 2 URI Actions

 
Khosrow Moossavi
Greenhorn
Posts: 26
  • 0
  • 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: 9495
    22
    Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
    • 0
    • 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
    • 0
    • 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!!
     
    Don't get me started about those stupid light bulbs.
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic