java - struts2 fileupload maximum file size -
I am using file upload interceptor for uploading file :) I have the maximum file size as an interceptor parameter Is set up:
& lt; Interceptor-ref name = "defaultStack" & gt; & Lt; Param name = "fileUpload.maximumize" & gt; 20000 & lt; / Param & gt; & Lt; / Interceptor-referee & gt;
Now, I want to get this value in my input / form jsp. For example, to get a message, "upload config file (maximum size 20kb)". How do I get this value? I can see that the frequency variable is FileUpload.maximumSize, but then how can I get instances of the installers in the stack?
tnx
One solution to read your configuration file using XML APIs And get the value you are looking for.
Comments
Post a Comment