I am trying to create something like online shop with products and a shopping basket. User can see an html form and edit it. The form is represented by bean. After editing it, he should be able to create new, or submit all products he edited (add actual bean to a some sort of collection or do something with collection of previously created beans).
The form page looks like this:
<html>.... <form action="addBean.jsp"> ... some input elements, names matches with getters and setters of form bean </form>
<jsp:useBean id="form" class="formBean" scope="session"/> <jsp:setProperty name="form" property="*"/> //... now i want be able to do something like this: //"take this bean with values from form and add it to some sort of array or collection"
Does anybody have an idea?