DOC

struts

By Robert Roberts,2014-10-09 10:24
10 views 0
struts

struts-config.xml文件中获得配置信息.

    '获得一个FormBeanConfig的对象

    <bean:struts id="loginForm" formBean="loginForm"/>

    <bean:write name="loginForm" property="type"/><br>

    '获得一个ActionConfig的对象

    <bean:struts id="loginAction" mapping="/loginAction"/>

    <bean:write name="loginAction" property="path"/><br>

    <bean:write name="loginAction" property="type"/><br>

    <bean:write name="loginAction" property="name"/><br>

    <bean:write name="loginAction" property="scope"/><br>

    <bean:write name="loginAction" property="validate"/><br>

    <bean:write name="loginAction" property="input"/><br>

    '获得一个ForwardConfig的对象

    <bean:struts id="loginResult" forward="LoginResult"/>

    <bean:write name="loginResult" property="name"/><br>

    <bean:write name="loginResult" property="path"/><br>

    Retrieve the value of the specified Struts internal configuration object, and define it as a scripting variable and as a page scope attribute accessible to the remainder of the current page. You must specify exactly

    one of the formBean, forward, and mapping attributes to

    select the configuration object to be exposed.

    If a problem occurs while retrieving the specified configuration object, a request time exception will be thrown.

    Attribute Description Name

    Specifies the name of the Struts ActionFormBean

    definition object to be exposed. formBean

    (RT EXPR)

    Specifies the name of the global Struts

    ActionForward definition object to be exposed. forward

    (RT EXPR)

    id Specifies the name of the scripting variable (and

    associated page scope attribute) that will be made available with the value of the specified Struts internal configuration object.

    (REQUIRED) (RT EXPR)

    Specifies the matching path of the Struts

    ActionMapping definition object to be exposed. mapping

    (RT EXPR)

Report this document

For any questions or suggestions please email
cust-service@docsford.com