Forums | MacLife
You are not logged in.
#1 2003-01-17 1:26 pm
- agt007
- Member
- From: Canada
- Registered: 2000-10-11
- Posts: 953
JSP or Servlet
I've made a page before using perl that takes a file from a client, and uploads it onto the server.
I would like to use java technologies instead of CGI.
How would I do this in java?
Many examples I have found on the internet uses other non standard packages, and also uses beans.
I would like to code everything myself, if it's not too hard.
Has anyone made a JSP or servlet that uploads files?
Bond, James Bond
Offline
#2 2003-01-17 2:23 pm
- lostghost
- Member
- From: Chicago
- Registered: 2001-07-08
- Posts: 496
Re: JSP or Servlet
Server-side Java requires some configuration of the server. You should be sure that your server supports Java servlets and/or JSP.
If you are completely new to Java, I would suggest using JSP over servlets. Java is a robust and complex language and, in my opinion, JSP removes some of the complexity and simplifies the development process.
I have only written some basic authentication scripts in Java (and that was a couple of years ago) so I can't offer you much along the specifics of file uploads.
Out of curiosity, why are you choosing Java? Java is usually more of an enterprise class solution. Other solutions such as ASP or PHP are much easier to implement.
Offline
