Forums Register Login

problem using method="GET"

+Pie Number of slices to send: Send
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
Destroy anything that stands in your way. Except this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 699 times.
Similar Threads
Value in dropdown from servlet
Avoid duble submit on a page.
Disabling a submit button.
'POST'ing parameters to another JSP
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 13:49:47.