1) , doGet() Properties#load(), HttpServletRequest#setAttribute(), JSP RequestDispatcher#forward(). , web.xml URL-, /propertieseditor.
Properties properties = new Properties();
properties.load(Thread.currentThread().getContextClassLoader().getResourceAsStream("file.properties"));
request.setAttribute("properties", properties);
request.getRequestDispatcher("propertieseditor.jsp").forward(request, response);
2) JSP , JSTL c:forEach - , HTML input type="text".
<form action="propertieseditor" method="post">
<c:forEach items="${properties}" var="property">
${property.key} <input type="text" name="${property.key}" value="${property.value}"><br>
</c:forEach>
<input type="submit">
</form>
3) doPost() , 1), , - .
Properties properties = new Properties();
Map<String, Object> parameterMap = request.getParameterMap();
for (Entry<String, Object> entry : parameterMap.entrySet()) {
properties.setProperty(entry.getKey(), entry.getValue());
}
properties.store(new FileOutputStream(new File(
Thread.currentThread().getContextClassLoader().getResource("file.properties").toURI())));
response.sendRedirect("propertieseditor.jsp");
, thisitor http://localhost/webapp/propertyeditor. .