Could anyone explain me how the annotations are picked by tomcat server?
Recently i am started using struts2 first i worked with xml based configuration then i started using annotations, while using xml tomcat using any parsers to read the xml configurations to able to get the values, but i am unable to get how the annotations are able to read by tomcat server. i am completely loosing my mind. please any one explain me how things are going on.
Re: Could anyone explain me how the annotations are picked by tomcat server?
Why do you think Tomcat does it, and not Struts itself? What configuration are you talking about?
I don't know how Struts/Tomcat does it, I use the wonderful Google Reflections API myself to easily scan for annotations.
reflections - java runtime metadata analysis - Google Project Hosting