I was just wondering if anyone has needed to do this before. It is fairly generic, I have just a generic HTML page that submits via "multipart/form-data" to a Java Servlet. I know that there is no built-in Java classes to deal with multipart, but I am trying with the O'Reilly File Upload package: MultipartRequest and MultipartParser (available at: http://www.servlets.com/resources/com.oreilly.servlet/index.html
) If you would know a better (or alternative) tool then let me know and I will use that instead.
Anyways, I want to have my Servlet take the file that is submitted (which should be an HTML page) and verify that it has a title that isn't "", (ie. between <title></title> tags) and then save the HTML file locally. I don't imagine that this is too difficult, but any help would be much appreciated. Oh, and I want to have the title stored in a String so that it can be passed to another method that will put it in a database... thanks in advance.