This week's book giveaway is in the Java in General forum. We're giving away four copies of Helidon Revealed: A Practical Guide to Oracle’s Microservices Framework and have Michael Redlich on-line! See this thread for details.
Hello Everyone
I am trying to implement a basic Struts2 application but i am unable to get through. Following is the error console :
The directory structure & jars in my application is given as an attachment.
Thanks for your reply. No i am not trying to use Tiles framework in my application. I am just making a simple application with implementation of interceptors.
I have tried using different combinations of jar files but nothing seems to be working. Currently i am getting this error in my console :
I have one more doubt. The tutorials available on the internet gives different directory structure. Some says that the struts.xml file should be in the source folder . Some says it should be in the classes folder ( classes folder is in the WEB-INF folder) . Which one is the right practice ? What is the difference between the two ?
Tarun Oohri wrote:
I have tried using different combinations of jar files but nothing seems to be working.
There's so many variables in the dependencies, getting them right by trial and error is nearly impossible. Your best bet is copying the dependencies from the example application called "struts2-blank".
Tarun Oohri wrote:
I have one more doubt. The tutorials available on the internet gives different directory structure. Some says that the struts.xml file should be in the source folder .
It doesn't matter so long as your build puts the file in the right place (WEB-INF/classes). That said, the current convention is to put the struts.xml file in the source folder.
Thanks i have tried making whole new application with your given jar files and it is working very fine. Thanks a ton, was trying to get through from past 2 days .