I have never used annotations in Struts2.
But now, while going through some hibernate annotations tutorials, I got this question in my mind.
Is it possible that in Struts2 I can use both annotations and xml for configuring my action classes? i.e. is it possible that I can configure some of my action classes in struts.xml and rest of them using annotations?
I will anyway try to code this when I’ll get a chance (right now, using a system with no IDE and slow internet). Is there anybody else who has tried this?
Yes dude I have tried and it worked pretty well. I had done it in the beginning of my struts learning assignments where i tried doing many things into single project and I did configure some of my action classes in struts.xml and rest of them using annotations.
You can try when you will get chance, It works 100%. Dont worry 🙂