In struts project,before going to action class, we can restrict by using filter tag in web .xml and controller tag in struts-config.xml
.
what is the difference between these two?, and which one is better, and why?
In struts project,before going to action class, we can restrict by using filter tag in web .xml and controller tag in struts-config.xml
.
what is the difference between these two?, and which one is better, and why?
May be you are new to Struts, and by the name Controller
, you misunderstood that it controls the user access to the page, which is wrong. Controller in struts is used for action mappings, resource bundling and other things.