this is my file upload page, here i am not getting tags input field value to my servlet,please suggest a solution?

Ads
 

this is my file upload page, here i am not getting tags input field value to my servlet,please suggest a solution?

<html>
<head>
    <script type="text/javascript">
    var counter =1;


    function UpdateMultiple () {
        var fileInput = document.getElementById ("fileInput");
    }
    function AddFileUpload() {

    var div = document.createElement('DIV');
    div.innerHTML =
        '<tr><td>select files to upload <input id="file' + counter + '" name = "file' + counter +
        '" type="file" /></td></tr>' 
        + '<input id="Button' + counter + '" type="button" ' + 'value="Remove" onclick = "RemoveFileUpload(this)" />'+'Tag Here<input id="tag'+ counter +'"name="tags' + counter +'"type="text"/>'+'<dfn>Enter Tags with Comma Separated</dfb>';
        document.getElementById("FileUploadContainer").appendChild(div);

        counter++;

    }
    function RemoveFileUpload(div) {
        document.getElementById("FileUploadContainer").removeChild(div.parentNode);
    }
    </script>
</head>
<body>
    <form action="MultifileServ" method="post"  enctype="multipart/form-data">
    <table>
        <tr><td>Incident Location<input type="text" name="incidentlocation"></td></tr>
        <tr><td>Incident Time<input type="time" name="incidenttime"></td></tr>
        <tr><td>Incident Date<input type="time" name="incidentdate"></td></tr>   
        <tr><td>Select files to upload: <input id="fileInput" type="file" name="file0"/>
        Tag Here <input id="tag1" type="text" name="tags0"><dfn>Enter Tags with Comma separated</dfn> </td></tr>
        <tr><td><input id="Button1" onclick="AddFileUpload()" style="height: 27px; width: 74px;" tabindex="25" type="button" value="New File"/></td></tr>
        <tr><td><div id="FileUploadContainer"></div></br></td></tr>

        <tr><td><input type="submit" value="Upload File" /></td></tr>

    </table>
    </form>
</body>
</html>
View Answers

Ads









Related Tutorials/Questions & Answers:
this is my file upload page, here i am not getting tags input field value to my servlet,please suggest a solution?
File Upload in struts2 - Invalid field value for field
Advertisements
I am not able to display the selected value of my combobox
i am unable to identify the error in my code
i am unable to identify the error in my code
I am trying to create domains for column attributes of my data dictionary?
attach file in my web page
this is my javascript code and i am not understanding the mistake in this,please help me?
autocomplete(): Spring mvc with jquery: I am not getting correct value in the text filed. Please help me
Option onclick am not getting the value ..
:( I am not getting Problem (RMI)
how i open my web page
could you suggest me that in which area i have to do a project?i want a complete guidence to complete my project.
Can not input value into text field which use sx:datetimepicker
i am getting multiple values in listbox
Can not input value into text field which use sx:datetimepicker
I need jsp code for how to write text field value into property file.
I am getting error.How can i get details
I am creating one jsp page in which I read in a text file, then display that data in tabular format. Now I need to calculate a total.
i am getting an error in adding a menu item to a menu.
How can I find my DHCP IP address on my computer?
I have problem in my Project
How can I open my Java desktop app by clicking on its file?
how can i run tomcat server and my home page come when i double click on an icon in servlets
how can i run tomcat server and my home page come when i double click on an icon in servlets
how can i run tomcat server and my home page come when i double click on an icon in servlets
how can i run tomcat server and my home page come when i double click on an icon in servlets
I GOT ERROR FOR MY PROJECT
How I Upload File and Store that file name in Database using JSP
why my downloaded file is alwayes damaged or corrupted?
regarding css file in my eclipse

Ads