Is it possible to reference a Struts constant from within the same file?
In other words, I would like to define a constant inside my struts.xml file
and then reference that constant further down in the file.

For example:

[struts.xml]
<struts>

    <!-- My Constants -->
    <constant name="afs.maxFileSize" value="20971520"/>     <!-- Max size
for individual files (20 MB) -->

    <package>
        <action name="XactionActivityGeneric_update"
class="com.afs.web.struts.action.xaction.XactionActivityGenericAction"
method="update">
            <interceptor-ref name="myParamsPrepareParamsStack">
                <!-- REFERENCE MY CONSTANT HERE -->
                <param
name="fileUpload.maximumSize">${afs.maxFileSize}</param>
            </interceptor-ref>

<result>/struts/xaction/xactionActivityGenericEdit_modal.jsp</result>
        </action>
    </package>

</struts>

Reply via email to