Kendo Upload with Struts Framework

2 posts, 0 answers
  1. Cad
    Cad avatar
    1 posts
    Member since:
    Apr 2014

    Posted 21 Apr 2014 Link to this post

    Hello my name is Carlos Adrian I have trouble integrating KendoUI upload a JSP with Struts web project, I try to mapping my POST request to my Controller but it always empty.
    Can anyone help me please?
    <!--This is a part of my code on the JSP page-->
    <div class="col-sm-12">
      <input type="file" id="attachments" class="id-input-file-2"/>
    </div>
    <script type="text/javascript">
     
        $(function() {
            $("#attachments").kendoUpload({
                async: {
                    saveUrl: "\anexos",
                    removeUrl: "\anexos",
                    autoUpload: true
                }
            });
             
        }); 
     
    </script>
  2. Dimiter Madjarov
    Admin
    Dimiter Madjarov avatar
    2153 posts

    Posted 23 Apr 2014 Link to this post

    Hi Cad,


    I am not exactly sure how the requests are mapped in Struts Framework. As a general information the Kendo UI Upload widget uploads the files via a standard XMLHttpRequest with FormData in modern browsers or via a form in a hidden iframe in legacy browsers. This means that if the current issue is reproducible even without the Upload widget, but with a separate XMLHttpRequest, you could look for help on stackoverflow, where more people might be familiar with Struts.

    At the moment we can provide examples and documentation for the Spring MVC Framework.

    Regards,
    Dimiter Madjarov
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. UI for ASP.NET AJAX banner
Back to Top