I have a view page using JSP. I have enctype="multipart/form-data" and also have dropdown field using select option.
Here my code:
    <form id="formNaikLimit" action="" enctype="multipart/form-data"
                method="post">
                              <label for="jenisKartuLimit">Jenis Kenaikan Limit Kartu
                                Kredit </label> <select class="form-control mandatory"
                                 name="jenisKartuLimit" required="required">
                                <option value="Sementara">Sementara</option>
                                <option value="Permanen">Permanen</option>
                            </select>
                                    <div class="form-group-1" style="">
                                        <input id="attachKtp" name="attachKtp" type="file" class="file"
                                            required="required" accept=".png,.jpg,.pdf">
                                    </div>
                                    <div class="alert alert-danger"
                                        style="margin-top: 10px; display: none;" id="sample"
                                        data-for="attachKtp">Attachment KTP wajib diisi</div>
                                    <br />
</form/>
And this is my servlet:
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
try {
            this.action = request.getParameter("action");
            String temp = request.getParameter("jenisKartuLimit");
}catch(Exception e){}
}
when i try to debug, i always get temp value is null, why i can't read the selected value of jenisKartuLimit?
Thanks for every response.
 
     
     
    