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
getting null value in my class when using t:inputFileUpload
getting null value in my class when using t:inputFileUpload
this is my javascript code and i am not understanding the mistake in this,please help me?
could you suggest me that in which area i have to do a project?i want a complete guidence to complete my project.
how i open my web page
i am getting the problem when i am downloading the pdf file from oracle 10g database - Struts
I am getting this exception
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 can I to my database to my application
Can not input value into text field which use sx:datetimepicker
how do i use sql like query in my jsp page
Can not input value into text field which use sx:datetimepicker
display an image on my page
i am Getting Some errors in Struts - Struts
file uploads to my web site
i am getting multiple values in listbox
I am getting Undefined in Text Box Very Urgent - JSP-Servlet
How can I find my DHCP IP address on my computer?
I GOT ERROR FOR MY PROJECT
I have problem in my Project
I need jsp code for how to write text field value into property file.
How can i modify my account in roseindia

Ads