Before I wrap myself around my own axle, does anyone know a straightforward
technique for substituting the maximumSize into a message property text
according to the following scenario.
<action name="singleUpload" class="FileUploadAction"
method="upload">
<interceptor-ref name="fileUpload">
<param name="maximumSize">100123</param>
<param name="allowedTypes">
image/png,image/x-png
</param>
</interceptor-ref>
<interceptor-ref name="basicStack" />
<result name="input">/jsp/SingleUpload.jsp</result>
<result>/jsp/Confirm.jsp</result>
</action>
struts.messages.error.file.too.large=File {1} is {3} bytes which exceeds the
maximum DDDDDD
I see the value 100123 in the FileUploadInterceptor inside the
ActionInvocation, but before I write stupid code, I'd like to see if there
might be a straightforward approach.
Peace,
Scott