Find Jobs
Hire Freelancers

java exercise

$10-30 USD

Closed
Posted almost 5 years ago

$10-30 USD

Paid on delivery
The purpose of the exercise: to build a site that allows you to enter the chat room and send messages. Topics: Servlets (ServletContext, Dispatcher), Seats and / or Cookies, Ajax / JSON The site does not use a database. A user registers his name, clicks a button and enters Chat. Total sign-in page: • Form contains text input for user name input. • A button to enter the chat room (User name). CHATROOM page includes: • Title Title: Welcome <Username> when <Username> contains the username • A form with text input and a button to send a chat message • Exit button from chat • Chat: Content of all sent messages (sender name and message to each) Avoid sending empty messages (including spaces only). This page is automatically updated every 30 seconds without loading the page again. You must use Ajax and implement a Servlet that returns the chat content in JSON format. In addition, the page will automatically switch to the login page, if the user is no longer logged in. This can happen when the user opens two pages and logs off. There are no exact instructions on the number of pages but in general the user must be allowed to browse between pages by buttons or links of the site itself and not based on the buttons of the browser (for example the error page requires a button to continue surfing). Must be exercised: • Login to chat • Exit chat • sending a massege • Receiving the client chat and updating the page (Ajax / JS + JSON servlet) • Input validation Part of the purpose of the exercise is to divide the code into servlets. There are no instructions on the servlet number, but you are required to implement at least 2 servlets, for example, for login / exit, and for the chat itself. additional requirements: Avoid writing long HTML / css / js code within Java / Servlet. It should be used in include of external html files (this is also much more convenient and readable). You can use [login to view URL] () to divide roles between servlets: for example, it is common to define a servlet whose function is to pass requests to different servlets. Of course, you can store information in session cookies, servlet context. Note that there may be problems of synchronized sections if you use the servlet context. When a user logs in to chat, check that they already have their name on the Sign In page. If the user is not recognized (or exported), they will be sent directly to the login and will not be able to see the chat page.
Project ID: 19476849

About the project

6 proposals
Remote project
Active 5 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
6 freelancers are bidding on average $122 USD for this job
User Avatar
Hi I'm an expert in java programming. I'm sure that I can easily do this project. We can have a about it. Thanks..
$120 USD in 3 days
4.9 (331 reviews)
7.4
7.4
User Avatar
Hello there, Hope you are doing good...!!! As per your requirement I am very much suitable for your job. Please invite me for a further chat and we will discuss on our project. I have 5 years of experience in web development, You will always get quality work from me. Thank you
$25 USD in 1 day
4.8 (17 reviews)
4.7
4.7
User Avatar
Hello, I have great experience with Java and Javascript. I am sure I can do this project for you. Regards, Tudor.
$77 USD in 4 days
4.5 (2 reviews)
2.3
2.3
User Avatar
I am expert in Java language and I have done several projects to companies in my county and delivered on time
$25 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of ISRAEL
Ramat Gan, Israel
5.0
1
Payment method verified
Member since Nov 28, 2018

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.