File struts-config.xml - input assignment

I am new to location. I am wondering what the input variable means here. After some searches, the only convincing information was the following:

Input: the physical page (or other ActionMapping) to which the control should be redirected when validation errors exist in the form of a bean.

Is there any other use for the input parameter, except in the case of an error?

<action roles="somerole" path="some/path" type="some.java.class" name="somename" input="someInput" scope="request" validate="false" parameter="action"> <forward name="success" path="some/path"/> <forward name="download" path="/another/path"/> </action> 
+7
source share
1 answer

Yes, although you are correct that this is primarily a redirect for a failed check.

The input has a special method for returning it: ActionMapping.getInputForward() . This can be used in a custom (Java based) check to return to the input page.

It can also be used to identify the landing page: the base action class or request processor can send GET requests to input forward and usually process POST .

+8
source

All Articles