Hi all,

I'm very new in this area and I'm looking for some help. What I eventually want to do is upload a file from my java application to a server, for the moment I've installed Apache on my local machine for development/testing. The way I see this working (please correct me if I'm wrong) is that the java side tries to POST to the JSP file in the server. So the URL would be something like http://localhost:8080/test/test_upload.jsp

In the test_upload.jsp file there is code that readily reads in the data that has been sent, this could for example be a String or a File.

I'm trying to get a really simple example working first. So just passing a String that gets sent to the server and printed out in the log.

What I'm looking for is the code for both sides of this (java file and JSP file). A simple example of this on a page on the web would be prefect. I've looked everywhere but keep encountering applets and servlets or form data being sent from HTML. Might be that I've been looking for the wrong thing.

Thanks for your help,


10 Years
Discussion Span
Last Post by stephen84s

I've looked everywhere but keep encountering applets and servlets

If you have encountered this scenario then you have actually already found your answer.

The code in the applets is the client side code, all you have to do is study the networking code in the Applet and implement it in your client application.

And as far as your server side code in JSPs goes ..... I think you should know that JSPs are basically extensions of servlets.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.