html elements text/hidden along with file should be submitted?

how to submit html elements text, hidden etc., along with file element?

While using multipart for file element, the other elements are not read, like request.getParameter("") gives me null for other text/hidden elements...

please help me in this with the solution...

Thanks. Narban.

Answers


<form enctype="multipart/form-data"... definitely does what you want.


Ensure that your other elements are inside the same form as your file input, and ensure that you have set the name attribute on all input elements you want to submit.


Need Your Help

About function sp_find_sift_grid(I, grid_x, grid_y, patch_size, sigma_edge)

matlab computer-vision sift

I found some code to calculate SIFT descriptors from Githut with three functions:

Writing to a file without overwriting or appending

java file append overwrite

I am writing a program in Java where the output is written to a .txt file. Each time I run the program the file is overwritten. I do not want to use the append switch and add data to the file.