Hello,
I am wondering if what I am trying to do is even possible. Let's say I have a
jsp page that contains a form with a set of div as follow.
Using jquery, a click event is attached to the divs that will make an ajax call to the server to retrieve a jsp page. This jsp page contains JSTL that will run later on the client side once the page is returned.
On the server side, the ajax call triggers an update on a list to add additional objects of the same type. Once done, the server return the JSP detailed above. Hence the jsp page is used for all the same calls, the only difference is the list.
I am using SpringMVC but I assume it might be the same for
Struts, where you can attach a pojo to a controller and a jsp to the same controller.
What I am not sure about is the DOM tree and the MVC relation. I tried to surf the net and find some info, (and yes I have jquery in action
), so I think livequery might be able to update the DOM but I am not quite sure how. Anyway, I know I described high level stuff but I would certainly appreciate any pointers.
Thanks