Categories | Question details Back To List | ||
dhtmlxVault upload in struts2.1.6 Hi I want to use dhtmlxVault with struts2.1.6 how my code is writed in jsp page and action . if code like this: maybe it is wrong. vault = new dhtmlXVaultObject(); vault.setImagePath("<%=path%>/js/dhtmlxVault/codebase/imgs/"); vault.setServerHandlers("UploadHandlerAction", "GetInfoHandlerAction", "GetIdHandlerAction"); vault.create("vault1") then what the three actions codes are? if code like this vault.setImagePath("<%=path%>/js/dhtmlxVault/codebase/imgs/"); vault.setServerHandlers("uploadFileAction"); vault.create("vault1") then how to code the uploadFileAction? thank you so much! Answer posted by Support on Oct 29, 2009 08:57 Hi, Please look at our "UploadHandler.jsp" code. Answer posted by Yuain Li on Dec 02, 2009 19:21 First thanks for your help! I have tried my best to run dhtmlxvault in my strutrs2.1.6 environment, and in the struts.xml.I add these lines: <constant name="struts.multipart.saveDir" value="c:/uptemp"/> but the file can not upload .when I open "c:/uptemp"/,there is data ,I do not know why. Could you give me much more idea about my question?
Answer posted by Support on Dec 03, 2009 09:39 I believe Struts does not allow you to use our new upload item factory. Try to use no struts for upload, give the upload jsp (or make a servlet) a free way without Struts in between. Answer posted by Yuqian Li on Dec 03, 2009 17:09 Thanks I have maded an experiment,and the result is same as your suggest. and when in struts2.1.6 with no action form, the UploadHandler.jsp, GetInfoHandler.jsp, GetIdHandler.jsp, should not be struts' filter filtered,then the dhtmlavault is able to run again in struts2.1.6 with jsp version. |