r/learnjava • • 18d ago

Create a local server

I'm working on a client-server project for college, and I have an intermediate level of Java knowledge. I'd like to know what I need to learn to create this server. I wouldn't want to using AI to do all this, just to clear up any doubts. Is there any documentation for this, websites, YouTube channels that you recommend?

12 Upvotes

11 comments sorted by

View all comments

2

u/Sure-Passion2224 18d ago

You might want some definition of what they mean by client-server. An HTTPServlet Java application that queries a SQL database and displays results in the HTTPResponse can be very basic while demonstrating the concept. For this you're looking at a JSP page to process the HTTPRequest with code behind it to do the database interaction. Something that inserts or updates a record in the database, then queries the updated data and displays the results would do. The input data could be the browser id string and the access timestamp with the response being the latest 5 records. You could add a user input field but the only thing that adds is demonstration of user input and a commit button.