I am working on a web application that allows user to update database from jsp page. In building application I've created a JavaBean that represents individual componets of the webpage (form elements). The bean has different information about the component including setValue() and getValue() methods. When updating the database I read values of components using component.getValue(), and values that come from updating jsp page (request.getParameter("componentName")). Here is a code snippet:
All of this runs in a loop for all the components and creates compare vector that has DBUpdater class with value that are different, if any.
Here is problem, when I use method="POST" compare vector is filled with correct values that are different and database updates. However, if I use method="POST" almost always change that was made to the data is not seen (vv[i] and value are the same). Especially if original and modified values are similar like 'TEST' and 'TEST2'. Is this a problem with GET method or is there something wrong with how I handle things.
thanks,
Alex
All of this runs in a loop for all the components and creates compare vector that has DBUpdater class with value that are different, if any.
Here is problem, when I use method="POST" compare vector is filled with correct values that are different and database updates. However, if I use method="POST" almost always change that was made to the data is not seen (vv[i] and value are the same). Especially if original and modified values are similar like 'TEST' and 'TEST2'. Is this a problem with GET method or is there something wrong with how I handle things.
thanks,
Alex