Wednesday, 15 January 2014

java - What does the scope attribute from the action tag of the struts-config file mean? -



java - What does the scope attribute from the action tag of the struts-config file mean? -

i'm working on struts application. in order edit struts-config.xml file, think have add together attribute - scope, in action tag. i'm not sure meaning, or usage. can explain me if have set attribute?

<action path="/wetsvpnswaptraffic" type="com.kpn.bop.web.action.vpn.wets.wetsvpnswaptraffic" scope="request" name="wetsvpnswaptrafficform" roles="bop_wetsvpn_migrate" validate="false"> <forward name="success" path="/wetsvpnswaptrafficvalidate.do"/> <forward name="failure" path="/wetsvpnlist.do"/> </action>

the attribute scope used define scope (life of object, form) of object action form used in action configuration.

there's different scopes, page, request, session, application. that's servlet specs. if specify scope of request want form object available during servlet http request.

you can check reference determine how utilize scopes.

there's link action mapping configuration.

java scope struts struts-1 struts-config

No comments:

Post a Comment