| 1. |
What Is The Purpose Of Action Tag In Struts.xml? |
|
Answer» We DEFINE action tags corresponds to every URL we want to access and we define a class with execute() method which will be accessed whenever we will access CORRESPONDING URL. Results determine what gets RETURNED to the browser after an action is EXECUTED. The string returned from the action should be the name of a result. Results are configured per-action as above, or as a "global" result, available to every action in a package. Results have optional name and type attributes. The default name value is "success". We define action tags corresponds to every URL we want to access and we define a class with execute() method which will be accessed whenever we will access corresponding URL. Results determine what gets returned to the browser after an action is executed. The string returned from the action should be the name of a result. Results are configured per-action as above, or as a "global" result, available to every action in a package. Results have optional name and type attributes. The default name value is "success". |
|