Has anyone written a class where data can be entered into forms in a
browser and then transferred to a database? Also, files need to be
uploaded directly to the website's public_html directory.
If would be great if anyone had some sample code that I could play
around with.
I'm using Java Servlets, ODBC and weblogic.
I've only had a few months programming experience, any advice/help/code
is much appreciated. Thanks.
:)
Simon Brooke - 12 Oct 2006 10:03 GMT
> Has anyone written a class where data can be entered into forms in a
> browser and then transferred to a database? Also, files need to be
> uploaded directly to the website's public_html directory.
Yes.
http://www.weft.co.uk/library/jacquard/
Specifically
http://www.weft.co.uk/library/jacquard/documentation/uk/co/weft/maybeupload/Mayb
eUploadServlet.html
which is deliberately plug compatible with javax.servlet.http.HttpServlet.
If you only need the file upload stuff and not the rest of the toolkit,
download the source tarball from
http://www.weft.co.uk/library/jacquard/download/jacquard-1.10.14.tar.gz
unpack it, and run 'ant jar'; you'll then find a file
maybeupload-[version].jar in the build/lib subdirectory. Copy this into
the WEB-INF/lib subdirectory of your webapp and Robert's your father's
brother.
Any problems, mail me; the address is valid.

Signature
simon@jasmine.org.uk (Simon Brooke) http://www.jasmine.org.uk/~simon/
Windows 95:
You, you, you! You make a grown man cry...
M. Jagger/K. Richards
Joe Attardi - 12 Oct 2006 18:52 GMT
> Has anyone written a class where data can be entered into forms in a
> browser and then transferred to a database? Also, files need to be
> uploaded directly to the website's public_html directory.
Another very good file upload package is Jakarta Commons-FileUpload,
found at:
http://jakarta.apache.org/commons/fileupload/

Signature
Joe Attardi
jattardi@gmail.com