I need to generate HTML forms in Java. I don't know in advance what fields are needed, those will probably be delivered in XML (i have some say over this). I could use the same input file to handle the form submission.
Are there libs, techniques that deal with this problem? I can't imagine that there aren't, but i can't find a suitable solution. I looked at XForms, but it seems that there's not enough adoption from browsers.
Any ideas? Much obliged.
( Context: JSR-286 compliant portlet (using Liferay atm) )