All:
        Yesterday I sent a message out about a servlet that was not
receiving data from a post method.  To recap quickly, If you filled out a
form and hit the submit button the servlet would process your request.  If
you then hit the back button, changed some submission, and reposted the
servlet with the submit button, the changes would not take affect.

        I appreciate everyone help in this matter yesterday.  The porblem
was the scope of my doPost() method.  Outside of the method I declare

private Hashtable table = new Hashtable();

        Inside the doPost() method I do the following 

for(Enumeration enum = req.getParameterNames(); enum.hasMoreElements();){
      String element = (String) enum.nextElement();
      table.put(element, element);
    }

        This puts all the elements that were checked into a hash table.
The problem was that the hashtable did not get re-initialized when the
doPost method was called again.

        Again, I apporeciate everyones help with my problem.  I hope to
repay some of you in the future for your help.


Christopher T. Beers               Systems Analyst Administrator I
Office of Information Technology - Boston University
111 Cummington Street              (617)353-8248      
Boston, MA 02215                   (617)353-6260 fax




--
--------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
READ THE FAQ!!!!     <http://java.apache.org/faq/>
Archives and Other:  <http://java.apache.org/main/mail.html/>
Problems?:           [EMAIL PROTECTED]

Reply via email to