I am newbei in JSP subject and I am using Apache application server in Eclipse with no framework.In the project, there are more than one users.I want to enable one user to send information to another user as notification.User2 should see this notification.
draft.jsp
<div style=" float: right; margin-right:600px;margin-top:20px;">
ID: <%=Id%>
Type:
<select name="routine">
<option value="select">select</option>
<option value="option1">option1</option>
<option value="option2">option2</option>
<option value="option3">option3</option>
<option value="option4">option4</option>
</select>
Name:<input type="text" name="Name"/>
Period:<textarea rows=5 cols=10 name=period></textarea>
<button>Finish</button>
</div>
Here is the part of the jsp page.When User1 click button Finish, the information will be sent to the User2.
I searced on the internet, but cannot find any useful example or tutorial related my issue. I saw that Atmosphere, comet, Jetty and Websocket can be solution but I was not able to use these and I am not totally sure, whether they are suitable for my issue or not.Should I use the long polling or short polling?
I also saw the similar question but I couldn't understand the accepted answer.Can you please give me any idea to solve this problem?And any idea will be appreciated.Thanks in advance.