Hi,
Sorry for the off-topic, but it does relate to my JSP site. I cant figure
this out and I dont know if there is an HTML interest group. None the less,
we have a strange problem on our site. When Netscape is used (versions we
know affected are 4.5, 4.61 and 4.7), periodically it submits the form 2
times. The main place we see this is on our Enrollment page. It used to go
to a servlet, but I have changed that to go to a JSP page and a JavaBean.
None the less, we put a bunch of "System.out.println()" calls in the JSP
pages and JavaBean and sure enough, we hit the submit button once and it
calls the JSP page 2 times. Now, originally I was submitting the form BACK
to the JSP page (using Model 1 approach) and having a scriplet look for a
hidden form field..if it existed, it enrolled by calling the bean's enroll
method. I changed it to use a "second" page to submit the form to, and in
that page it calls the javabeans enroll method there. That didnt work
either. So then I changed it to put the scriplet at the TOP of the page
before any content is written to the response buffer, and I <jsp:forward
page=...> to forward to the "enrollment sent" page on the server. Originally
I have been using response.sendRedirect(). I figured maybe the roundtrip was
causing this problem. The odd thing is, it doesn't happen all the time. I
have 4.7 on my machine, and it works most of the time for me. A qa engineer
has 4.7 and he consistently submits two forms. Another qa engineer has 4.61
and it didnt work for her for quite some time, then started doing it
periodically.
So, does anyone have any ideas about this problem? Is it a Netscape bug that
nobody has seen yet? Or is there something wrong in the way I may be doing
the JSP pages. I figured forwarding would eliminate the problem because it
doesnt do the roundtrip, and that is what the Model 2 approach would do as
well.
Any help would be appreciated.
Thanks.
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets