<tr> <td> Add to Album </td> <td> <input type="text" name="Album"/> </td> </tr> <tr> <td></td> <td> <input type="submit" value="addalbum" /></td> </tr> <tr> <td> Select Album </td> <td> <% String webTempPath = "C:\\Users\\Documents\\NetBeansProjects\\Registrationform\\web\\nameoffolder"+ "\\" + (session.getAttribute("uname")); String path = webTempPath.toString(); File file = new File(webTempPath); String[] names = file.list(); out.println("<select name=\"drplistalbum\">"); for(String name : names) { if (new File(webTempPath + '\\' + name).isDirectory()) { out.println("<option>"); out.println(name); out.println("</option>"); } } out.println("</select>"); %> </td> </tr>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)