February 25th, 2013, 08:39 PM
[Servlet/JSP] Best design for creating a user comment function
Currently, I have an ul printing out and organizing database data on my main page. I want to add a functionality to this that allows users to comment these different outputs of data. Yes, this is similar to facebook status comments.
I am stuck at a design standpoint on this. When the user clicks this "comment/reply button", I want to redirect them to a .jsp page, where they can write their reply, but also display the list item they wanted to comment on.
Do I have to come up with something where for every item in the ul list, I have to create a matching .jsp file for it? Can I create a .jsp file with a servlet?
How would you do this? I feel like I'm just completely missing something about this.