*First at all, be familiar with good design, and learn the MVC model
pattern (have a look to another
thread, I'he put some links somewhere in a post)
1*In the controler , U will have to populate a model
java bean with all the text fields contents.
2* You have 2 choices : simply make some
System.out.println("<field num='1'>"+request.getParameter("HTMLfield")+"</field>");
* Or use DOM or lightier JDOM to create an Object graph and dump it into XML
the best solutions will be using Java API for XML/Java Binding (JAXB) but it will be available in JDK1.4.
have a look to
http://java.sun.com/xml