<action name="create" class="createAction"
<result name="verificationRequired" type="redirect">/</result>
Hi, I am new to struts2 and unable to understand the above syntax. As per my idea i think createAction is the Action class where show is the method which returns the logic. I am unable to understand param name tag. One more thing is the result type is tiles what does it mean ? what is box.location.start and when result name="verificationRequired" "/" is the result and what does it mean ?
Show is the name of the method in action-class where you logic is written.Instead of execute which is default method you can use the other method name.
<param> is the parameter which you are passing for the action .Like we have servlet init parameters.
Interceptors are there to achieve common functionality in struts.
Result type tiles means you are using result type as tiles and for that you need to add separate configuration of tiles .
there are different Result types in struts
i think createAction is the Action class where show is the method which returns the logic
Correct. In this case, it's likely the action is being defined as a Spring bean in a Spring configuration file.
That's a guess; I'm guessing that because the class name, createAction, does not follow any Java naming conventions (classes belong in a package, and class names should start with an uppercase letter). It is, however, a typical Spring bean name.
[...] the result type is tiles what does it mean?
It means the tiles plugin is being used. (Most likely. It could mean the developer has implemented their own "tiles" result type, but that would be a little unusual.
box.location.start is the name of the tile definition that will be rendered.
when result name="verificationRequired" "/" is the result and what does it mean?
This means when the action method returns the stringverificationRequired the result rendered will be a redirect to the root of the application.