I am trying get Struts 2 and Tiles to work and I am using netbeans 7.1 as my IDE. Most of the examples are built on eclipse and I can seem to find a working example , So i tried to follow a tutorial And tried to get it sorted. Now I have the proeject runningwell and I can access individual tiles by url.
ie.
http://localhost:8088/sample2/example/body.jsp
But the action to mapping doesnt seem to work.
below are the files :
struts.xml = http://pastebin.com/5uWLSXWj
example.xml = http://pastebin.com/UQh68YNE
web.xml = http://pastebin.com/ZgVXfW1E
LinkAction.Java = http://pastebin.com/8cvKdmai
Appreciate any guidance , and links to netbeans and struts 2 example code.
Problem with Struts.xml file. You are loading two
<package>s with same configuration.Thats why one package is loading(with plain JSP result), and another is silently dropped (with Tiles results.) Try combining them into one, like this :