[Aruniima Chakrabarti] wrote: > Hello everyone, > I have a HTML page which calls a JSP page on submit, which has a 'useBean' & > 'setProperty' tags set so that the values from the HTML is passed to the > Bean to be updated in the database. Some of the fields on HTML page & the > corresponding field in the database are optional. > Now the problem I am facing is that if the first time the user puts a value > in the text box & submits page, it gets updated without a problem. > But the next time if he leaves the text box empty & submits, then the > previous entered value for the textbox is taken instead of null value. > Refreshing of the page is not solving the problem & closing - opening of the > page again is not feasible. How should I handle this problem? > I tried changing the 'scope' but that is not solving the problem.
This should explain what's going on and how to work around it: <http://thejspbook.com/faq/details.jsp?id=1018> Hans -- Hans Bergsten [EMAIL PROTECTED] Gefion Software http://www.gefionsoftware.com JavaServer Pages http://TheJSPBook.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com