Sprint -- Form being submitted twice, IE only.

Up front I'll state that this probably has nothing to do with Java, but I'll throw it out here just in case.
On a particular page, when we put 19 or more items into a list in a form, when we submit that form, the onSubmit method of our subclass of org.springframework.web.servlet.mvc.SimpleFormController is getting called twice.
This happens in IE, but not in Opera or Firefox.
Because of the browser-specific nature of this problem, I'm pretty sure it's not related to Java, but if anybody has seen something like this before or has an idea where to start looking, I'd be very appreciative.
This stuff was developed before my time, and I just started looking at it, so I'm not very familiar with it. It uses javascript, freemarker, and spring, none of which I'm familiar with. The only detail I've found for sure is that onSubmit is being called twice, and I'm a bit buggered as to where to look now.
Thanks,
Jeff

Do the forms get submitted by using a javascript call to form.submit()?
And is that javascript function called from an onclick event on an input type="submit"?
That can (and does) result in a double submit in IE.
It does not in firefox.
Heres a quick jsp page that demonstrates this:
<%! int count = 0; %>
<html>
<% System.out.println("Running..." + count++ + "Browser = " + request.getHeader("user-agent")); %>
<script>
  function doStuff(button){
                 // submit via javascript
       button.form.submit();
</script>
<form>
  <input type="text" name="a1"/>
  <input type="text" name="a2"/>
  <input type="submit" onclick="doStuff(this)"/>
</form>
</html>This triggers two submits
- one for calling form.submit();
- one for pressing the submit button.
To fix - remove/cancel one of the submission events, any of the following should work:
- change the <input type="submit"> to an <input type="button">
- change the onclick event to be "doStuff(); return false": returning false from an onclick event handler cancels the event - in this case it would cancel form submission.
- remove the form.submit() javascript call
Cheers,
evanfets

Similar Messages

  • When submitting form, form elements like text box are not available in my action page. This occurs only for several times. if i resubmit the form, i can get the form elements in my action page. May be form get submitted twice in firefox 3.6.13

    I have a simple web page with two form elements say, two text box and submit button. when submitting my form, i didn't get the form data in my action page. This occurs only in Firefox 3.6.13 several times. Not always.
    May be form get submitted twice?
    Note: Remember, i am not facing this issue. However my friend is facing this issue.

    I have a simple web page with two form elements say, two text box and submit button. when submitting my form, i didn't get the form data in my action page. This occurs only in Firefox 3.6.13 several times. Not always.
    May be form get submitted twice?
    Note: Remember, i am not facing this issue. However my friend is facing this issue.

  • Form Submits twice with IE

    Hi, my problem is that my form is submitted twice when using IE 7, but only once on firefox as desired. The steps my jsp app takes are:
    1. submit details
    2. validate details
    3. submit details to database
    4. faces-config navigates to appropriate download page and starts download
    The second submit happens when the user clicks on the IE warning bar that allows the download. I'm using <h:commandButton id="submit" value="Submit" action="#{userInfoBean.submit}" />
    All help is appreciated.

    I have the smae issue!!

  • Page hangs and submits twice

    I have page which has three on-submit processes. All of the processes call stored procedures. One of the process takes over 6 to 8 minutes and causes the page to hang and then times out, i.e. instead of showing the next page, I see "page cannot be displayed" message. Moreover, it seems that page has been submitted twice. The other strange thing is that stored procedures called by the page processes finish successfully even though the user do not go to the next page to see the results of the work accomplished by these store procedures.
    I have tried this experiment with a simpler page with one submit button which invokes one long running process when pressed. It seems when page hangs it submits again. I can attest this as there is a row being inserted by the stored procedure called by the on-sumbit process. I see this row being submitted twice with a time span of approximately 5 minutes (there is column for create_date and create_user).
    I have seen suggestions for using dbms_job for long running process, but this operation has to be done synchronously and user needs to see the results of the process on the next page. If the job is done asynchronously, then how can I refresh the hanging page and take the user to the result page.
    TIA,
    Salman

    Salman,
    There is an Apache timeout directive that you can increase, which should solve both problems. It looks like after the timeout the request is being retried, which may be the result of a different Apache directive. The access and error logs should show you some useful information about these cases. Some other reader might offer what those directives are, I'm not sure.
    That you are seeing the page processes complete even though the HTTP request times out is not strange. Once the server-side code is invoked, the request timeout cannot stop it.
    Scott

  • Disable form while submitting data (via HTTPService)

    And how can I let them know once the data submission has been
    completed?
    So far, i've been using Alert.show() for both submission +
    notification of submission completion but it's a little weird b/c
    the first alert is below the second alert... so the user has to
    click twice to get back to the form. Not to mention the FIRST alert
    window is still after data has been submitted...
    Any recommendations?

    Hi,
    I think this is happening because the response from the
    server is received before the user clicks OK on the Alert showing
    that the data is being submitted.
    I think of two solutions for this,
    One is set the showBusyCursor property of the HTTPService
    component to true. So that a busy cursor will be displayed to the
    user when you call the send() method of the HTTPService, till the
    response is back from the server.
    Second is to have a custom component displaying message
    asking the user to wait, which can be popped up using PopupManager
    when the user clicks on submit and then remove it when the response
    is back from the server.
    Hope this helps.

  • Servlet doPost being called twice

    Hello all,
    I have a servlet that is being called twice. The servlet is used to direct the user to the next jsp. I have 4 JSPs that the user steps through to add a record to a database. The 1st JSP lists the records that they have and asks them to add, edit or delete. The servlet gets call to direct them to the next JSP that they enter the data (or update) on. It then calls a verification JSP so the user can verify the information before submitting it. If everything is fine they submit the data. This verification JSP calls the servlet that adds or updates the record in the database. The servlet then directs the user to a confirmation page that tells the user if the submit was successful or not.
    Here is how the flow is:
    servlet -->menu.jsp -->servlet -->add.jsp -->verification.jsp -->servlet -->confirmation.jsp
    Everything is fine until the verification.jsp submits to the servlet. That's where the doPost gets called twice.
    I have put System.outs in the servlet code to see how many times the doPost gets called. It gets called once for every JSP except the verification JSP. When the user submits the data, the servlet's doPost gets called twice therefore it tries to add the record twice.
    Has anyone had this problem before? How do I fix it?
    Any help would be greatly appreciated!!
    Tracey

    Here is the output of the JSP that when submitted, calls the doPost twice:
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <TITLE>PreaPaid Legal Banner Verification</TITLE>
    <script language="javascript">
    function new_window(url){
    link = window.open(url,"Link","toolbar=0,location=0,directories=0,status=0,menubar=1,scrollbars=1,resizable=1,width=650,height=450,left=50,top=50");
    </script>
    </HEAD>
    <BODY>
    <form name="myForm" action="/webapp/BannerTracker/BannerTrackingServlet" method="post">
    <H3><font face="Arial">Banner Tracking Verification</font></H3>
    <table BORDER=0 CELLSPACING=0 CELLPADDING=0 COLS=2 WIDTH=500><tr><td>
    <font face="Arial" size=2>Below are the choices that you made for your image, size of the image and page to direct people to
    when they click on your banner.
    <br><br>If this is not what you would like, click the "Back" button to return to the Banner Selection page.
    <br><br>You can click on the page link to view a sample of the age you have choosen.
    </font></td></tr></table>
    <P>
    <font face="Arial" size=2>
    <input type="hidden" name="cmd" value="doadd">
    <input type="hidden" name="banname" value="yahoo">
    <input type="hidden" name="banlogin" value="test">
    <input type="hidden" name="banid" value="1">
    <input type="hidden" name="bangname" value="difference">
    <input type="hidden" name="bangsize" value="468x60">
    <input type="hidden" name="banpage" value="go/test?:home">
    <input type="hidden" name="session" value="PPL2P6LcONLiT45pSszZEb1GJ4HvRc5jQMDNPM8wCJ0rCZesD38oEZ4mC3KvCp8mDp00">
    <input type="hidden" name="bangtype" value="gif">
    <input type="hidden" name="banurl" value="<A HREF="http://www.prepaidlegal.com/go/test?banid=1&Assoc=test"><img src="http://www.prepaidlegal.com/html/buttonsdifference468x60.gif" border=0></A>">
    <br><b>Banner name: </b>yahoo
    <br><br><b>Page to be directed: </b>Your PPL Home Page
    <br><br><b>Image selected: </b><img src=/html/buttons/difference468x60.gif >
    <br><br><b>Copy the URL below to the banner source code.</b>
    <br><br><img src="http://www.prepaidlegal.com/html/buttonsdifference468x60.gif " border=0>
    </font>
    <br><br>
    <a><img src="/html/buttons/track_back.gif" border=0 onClick="window.history.back();"></a>
    <input type=image src="/html/buttons/track_continue.gif" border=0 onClick="javascript:document.myForm.submit();">
    </form>
    </BODY>
    </HTML>
    Here is the doPost code from my servlet:
    public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
    System.out.println("doPost called");
    String next = "";
    try
    Command cmd = lookupCommand(req.getParameter("cmd"));
    next = cmd.execute(req);
    } catch (CommandException ce) {
    req.setAttribute("javax.servlet.jsp.jspException", ce);
    next = error;
    } catch (SQLException se) {
    req.setAttribute("javax.servlet.jsp.jspException", se);
    next = error;
    HttpSession mysession = req.getSession(true);
    String session = String.valueOf(mysession.getAttribute("storedSession"));
    if (session.equalsIgnoreCase("null"))
    session = req.getParameter("session");
    try
    checkSession(session);
    } catch (IOException ioe) {
    System.err.println("Session exception: " + ioe.getMessage() + ".");
    next = expire;
    } else {
    try
    checkSession(session);
    } catch (IOException ioe) {
    System.err.println("Session exception: " + ioe.getMessage() + ".");
    next = expire;
    if ( session != null )
    mysession.setAttribute("storedSession", session);
    RequestDispatcher rd;
    rd = getServletContext().getRequestDispatcher(jspdir + next);
    rd.forward(req, res);
    </code>
    I hope this helps.
    Tracey

  • Sharepoint 2010, InfoPath 2010 with Custom Workflow. Error Message: InfoPath cannot submit the form. An error occured while form was submitted...

    I have created an InfoPath form that submits to a Sharepoint library with custom workflow attached. The workflow is initiated when the user submits the form. An email is sent to the supervisor who clicks the "Encoded Absolute URL" and approved
    the form via the emailed form. Then, based on certain criteria the form is either emailed to the VP or the workflow is complete. The VP is sent an email and clicks the "Encoded Absolute URL" and sumbits the form via the emailed form. This is
    how I would like it to work. The reality is, the form submits and is emailed to the supervisor and the supervisor is able to approve but when the form is sumbitted I get an error. The error is "InfoPath cannot submit the form. An error occured while
    this form was being submitted. The form cannot be submitted to the following location: <URL> The file <URL> is checked out for editing by <me> The operation completed successfully." The operation did not complete successfully and it
    is not checked out. I have read in previous posts that the file is locked. Since I am in the testing faze of the project there is no one else using the form. I have waited 24 hours and the lock has not been released. Please help!!! My deadline is growing short.

    I ran into your post while having a similar issue.  I don't have a 'full' fix for you, but I noticed at least in our case if you made sure you opened the Infopath form through the browser instead of the client Infopath program (use the drop-down menu
    and open in browser) the error doesn't occur.  Hope that helps some....

  • Two forms on same page..save state of one form while submitting other.

    Hi....
    I have 2 form on same page....
    first is form on table....
    nd another is tabular form.....
    now if I make an entry in both table ,,,,and after entering data in tabular form if click on submit button of tabular for the data of tabular form get submitted,,but the data I have been enter in first form get erased.....
    now my question is how can I save state of my first form even after clicking on submit button...........
    pls,help.

    Hi Shirish,
    in your scenario you can write manual process for one form in your both forms, using this way you can achieve you functionality.
    do the above and for that manual process keep the button name as your second form button means, for two forms saving with only one button.
    i am not sure in this, but you can try something.
    Thanks
    Chandran
    Edited by: Chandran on Nov 28, 2011 2:21 AM

  • In a JSP Page, onclick of submit, it is submitting twice.

    Hello! everybody...
    Please help me.. its urgent!
    I have a jsp page, after i enter values in textboxes and click on submit, i am calling a javascript function wherein i am submitting the form.
    The problem is, it is submitting twice and inserting the record in the database twice.
    here is my code.
    anybody pls let me know where the problem is?
    Thanks in advance.
    /*Javascript Function for onsubmit*/
    function addVersion()
                             alert('hi');
                             this.VersionDynaForm.action = "./Version.do?param=add";
                             this.VersionDynaForm.submit();
    <html:form action="/Version.do" styleId="VersionDynaForm" onsubmit= "return addVersion()">
    <input type="hidden" name="actionType" value="">
         <table cellspacing=0 cellpadding=2 border=0 class="table_view" id="TABLE3" >
              <tr class="table_data">
                        <td class="smalltext" width="200px" align="left"><b>Year<span style="color:Red;">*</span></b></td>
                        <td width="150px">
                        <select id="FLP_YEAR" name="FLP_YEAR" class="mediumtext" style="width:120px; height:30px" onchange="FLP_YEARChanged()">
                        <option value="">Select</option>
                             <%
                             ArrayList year = new ArrayList<Version>();
                             year = (ArrayList)session.getAttribute("years");
                             if(year!=null)
                        for(int i=0;i<year.size();i++){                                 
                             Version temp1 = (Version)year.get(i);
                             if(temp1.getFLP_YEAR().equals(Element6)){
         %>
              <OPTION selected value='<%=temp1.getFLP_YEAR()%>'><%=temp1.getFLP_YEAR()%></OPTION>
                        <%}
                             else{%>
                             <OPTION value='<%=temp1.getFLP_YEAR()%>'><%=temp1.getFLP_YEAR()%></OPTION>
                        <%}
                        %>
                        </select>
                   </td>
                   <td width="150px"></td>
                   <td width="200px"></td>
                   <td width="200px"></td>     
                   <td width="150px"></td>
                   <td width="150px"></td>
                        <td width="200px"></td>
         </tr>
         <tr class="table_data">
                        <td class="smalltext" width="200px" align="left"><b>Business Line<span style="color:Red;">*</span></b></td>
                        <td widht="150px">
                        <select id="LPA_BUSINESS_LINES" name="LPA_BUSINESS_LINES" class="mediumtext" style="width:120px; height:30px" onchange="alert('hi');testChanged()">
                        <option value="">Select</option>
                             <%
                             ArrayList lst1 = new ArrayList<Version>();
                             lst1 = (ArrayList)session.getAttribute("mnemonic1");
                             if(lst1!=null)
                        for(int i=0;i<lst1.size();i++){                                 
                             Version temp1 = (Version)lst1.get(i);
                             if(temp1.getLPA_BUSINESS_LINES().equals(Element1)){
         %>
              <OPTION selected value='<%=temp1.getLPA_BUSINESS_LINES()%>'> <%=temp1.getLPA_BUSINESS_LINES()%></OPTION>
                        <%}
                             else{%>
                             <OPTION value='<%=temp1.getLPA_BUSINESS_LINES()%>'> <%=temp1.getLPA_BUSINESS_LINES()%></OPTION>
                        <%}
                        %>
                        </select>
                   </td>
                   <td width="150px"></td>
                   <td width="200px"></td>
                   <td width="200px"></td>     
                   <td width="150px"></td>
                   <td width="150px"></td>
                        <td width="200px"></td>
         </tr>
         <tr class="table_data" align="left">
                        <td class="smalltext" width="200px" align="left"><b>RC Number<span style="color:Red;">*</span></b></td>
                        <td width="150px">
                        <select id="LPA_RC_NUMBER" name="LPA_RC_NUMBER" class="mediumtext" style="width:120px; height:30px" onchange="LPA_RC_NUMBERChanged()">
                        <option value="">Select</option>
                             <%
                             ArrayList lst2 = new ArrayList<Version>();
                             lst2 = (ArrayList)session.getAttribute("rcmnemonic");
                             if(lst2!=null && Element2!=null)
                        for(int i=0;i<lst2.size();i++){                                 
                             Version temp2 = (Version)lst2.get(i);
                                  if(temp2.getLPA_RC_NUMBER().equals(Element2)){
         %>
              <OPTION selected value='<%=temp2.getLPA_RC_NUMBER()%>'> <%=temp2.getLPA_RC_NUMBER()%></OPTION>
                        <%}
                             else{%>
                             <OPTION value='<%=temp2.getLPA_RC_NUMBER()%>'> <%=temp2.getLPA_RC_NUMBER()%></OPTION>
                        <%}
                        %>
                        </select>
                        </td>
                        <td class="smalltext" width="200px" align="left"><b>Version<span style="color:Red;">*</span></b></td>
                        <td width="150px">
                        <select id="LPA_VERSION_ID" name="LPA_VERSION_ID" class="mediumtext" style="width:120px; height:30px" onchange="LPA_VERSION_IDChanged()">
                        <option value="">Select</option>
                             <%
                             ArrayList ver = new ArrayList<Version>();
                             ver = (ArrayList)session.getAttribute("version");
                             if(ver!=null && Element5!=null)
                        for(int i=0;i<ver.size();i++){                                 
                             Version temp3 = (Version)ver.get(i);
                                  if(temp3.getLPA_VERSION_ID().equals(Element5)){
         %>
              <OPTION selected value='<%=temp3.getLPA_VERSION_ID()%>'> <%=temp3.getLPA_VERSION_NO()%></OPTION>
                        <%}
                             else{%>
                             <OPTION value='<%=temp3.getLPA_VERSION_ID()%>'> <%=temp3.getLPA_VERSION_NO()%></OPTION>
                        <%}
                        %>
                        </select>
                        </td>
                   <td width="150px"></td>
                   <td width="200px"></td>
                   <td width="200px"></td>     
                   <td width="150px"></td>
         </tr>
         <tr class="table_data" >
                   <td class="smalltext" width="200px" align="left"><b>Project<span style="color:Red;">*</span></b></td>
                        <td width="150px">
                        <select id="LPA_PROJECT_NAME" name="LPA_PROJECT_NAME" class="mediumtext" style="width:120px; height:30px" onchange="LPA_PROJECT_NAMEChanged()">
                        <option value="">Select</option>
                             <%
                             ArrayList lst3 = new ArrayList<Version>();
                             lst3 = (ArrayList)session.getAttribute("project");
                             if(lst3!=null && Element3!=null)
                        for(int i=0;i<lst3.size();i++){                                 
                             Version temp2 = (Version)lst3.get(i);
                                  if(temp2.getLPA_PROJECT_NAME().equals(Element3)){
         %>
              <OPTION selected value='<%=temp2.getLPA_PROJECT_NAME()%>'> <%=temp2.getLPA_PROJECT_NAME()%></OPTION>
                        <%}
                             else{%>
                             <OPTION value='<%=temp2.getLPA_PROJECT_NAME()%>'> <%=temp2.getLPA_PROJECT_NAME()%></OPTION>
                        <%}
                        %>
                        </select>
                   </td>     
                   <td align="left" class="smalltext" width="150px"><b>Version Name</b><span style="color:Red;">*</span></td>
                   <td><input type="text" class="smalltext" property="LPA_VERSION_NAME" name="LPA_VERSION_NAME" value="" maxlength="30"/></td>
                   <td width="150px"></td>
                   <td width="200px"></td>
                   <td width="200px"></td>     
                   <td width="200px"></td>
         </tr>     
    </table>          
    <table cellspacing=0 cellpadding=2 border=0 class="table_input" id="TABLE2" >     
              <tr class="table_input">
                   <td height="10px" colspan="5" class="table_top_td" align = "right" >
                   <INPUT id="button" class="mediumtext" style="width:80px; height:20px;" type="submit" value="NewVersion" class="btn" >
                   <INPUT id="button" class="mediumtext" style="width:80px; height:20px;" type="button" value="Update" class="btn" name="method" onclick="javascript:return updateFunction();">
                   <INPUT id="button" class="mediumtext" style="width:80px; height:20px;" type="button" value=Cancel class="btn" name="method" onclick="history.go(-1)" >
                   </td>
              </tr>
    </table>

    hi
    change the type="button" in the following line
    <INPUT id="button" class="mediumtext" style="width:80px; height:20px;" type="submit" value="NewVersion" class="btn" >
    and call the javascript function on onClick in above line and dont call it from form(tat u hav done), remove it from form
    then it wont submit twice
    -venkat

  • My schedule report is being sent twice

    Crystal 10.0
    This has happened to two of my reports now and I can't see anything wrong. I've loaded the report in the normal way and confirmed its working, then added a schedule to send it automatically to a number of people (individual email addresses entered). The report runs at the designated time, but two copies of the report are sent.
    I'm sure the report is being generated twice as I have the time in the file extension and there is a tiny difference. However there is only one recurring items in the history and it doesn't happen to all the reports, just the last couple I've added.
    Has anybody encountered this before?

    Please post your Scheduling questions to Business Object Enterprise Forum

  • Text messages being receive twice by some recipients

    Text messages being receive twice by some recipients:
    I have had a couple of contacts tell me they are receiving text messages I send from the Z10 twice.
    Not everyone thou. I've asked. I'm sending from Rogers to a Rogers user. They both have 9700's.
    Any ideas?

    Mac GigaBytes wrote:
    Anyway, I followed the steps you provided, and changed all of the settings including <-- Settings <-- FaceTime and Settings <-- Messages <-- Use your Apple ID for messages.
    Just to be clear, while you have to use an Apple ID for iMessage and FaceTime, you should not be using that e-mail address to receive at or send from since you're using your father's ID.  Later in your post it sounds like you de-selected e-mail addresses that were not yours, which is correct, but I wanted to make sure you understand that you should not be using this ID for a contact point since it is not yours.
    If your father is still getting your text messages from your friends, I suspect that either:
    (a) after making these changes you need to turn iMessage and FaceTime off for a brief period, then turn back on, or
    (b) your friends are replying to older messages that you sent from your father's Apple ID, or
    (c) your father's iPhone somehow has your e-mail entered as one of the possible contact points for his iPhone.
    If the cause is (a) turn iMessage and FaceTime back on since you've already turned them off.
    If the cause is (b) see the last paragraph of my 1st post.  Send your friends a new iMessage and tell them to only reply to that conversation and delete prior conversations.
    If the cause is (b) have your father de-select (or remove) your e-mail address from his iMessage and FaceTime settings.

  • 6 hour to get a refund after being charged twice a...

    Has anyone had a problem being charged twice?
    I tried to renew my Unlimited Europe subscriptions.  I paid by transfer the required €57.50  by bank transfer the next day i received an Email saying "Unfortunately, your payment failed, but don't worry, we didn't deduct any money from your account."  & "Make sure you have enough money and try again."  So I immediately sent €57.50 this time in two payment of €28.75  only to find out a few days late the origin €57.50 and the 2x€28.75 had both been taken from my bank account.  
    I then got in touch with Skype the only way possible via live support.  I had to stay on Live support for 6 hour and as treated like an idiot. i had to send my bank account detail 6 times and had to deal with 4 different agents  For which I was told "Rest assured that the previous agent whom you've chatted with (Kenneth L.) will be coached accordingly"
    I thought they would compensate me and was also informed "the payment of your subscription's next recurring charge since it has already been paid for"  I thanked them but was i would have to pay for my next recurring charge "your next recurring payment date will be on March 27, 2014"

    When am i going to get a responce to this?
    Hello,
    Noted and forwarded for attention.
    SKYPE MODERATOR & BETA TESTER
    TIME ZONE - US EASTERN - PHILADELPHIA PA USA - UTC/GMT MINUS 5 HOURS
    I recommend that you always run the latest software version: Windows & Mac
    If my advice helped to fix your issue please mark it as a solution to help others.
    Please note that I don't respond to unsolicited Private Messages. Thank you.
    Edited only to change font and typeface of poster's enquiry, to differentiate from copied-and-pasted text inserted.

  • Being charged twice. I

    Help: I am being charged twice for my subscription my screen name is iceywhite and I signed up for one Premium account my email is [removed for privacy]
    I could not find a number to call. I was just charged two charges of $25 equaling $50, instead of only one charge of $25. Is this sone kind if business trick to make more money? I've looked everywhere for a number to call! Someone give me my money back !

    Here's a link to a procedure:
    http://www.ehow.com/how_5590751_refund-itunes.html

  • How can I clear a form after submitting and saving the data in the iOS Acrobat Reader App

    How can I clear a form after submitting and saving the data in the iOS Acrobat Reader App

    Darrell,
    Thanks for this response. After I posted mine, I saw that the resetForm JavaScript method is documented as being supported starting with version 10.5: http://www.adobe.com/devnet-docs/acrobatetk/tools/Mobile/js.html
    But I haven't been able to get it to work. Can you clarify if support was indeed added and if it works for you?

  • Servlet being executed twice

              Hi all,
              I'm running WLS5.1, SP8 on W2K. I've written a servlet that instantiates and persists an entity bean. The servlet is registered in web.xml and mapped appropriately. If I run the servlet through the browser, everything works as expected.
              I've written a test case that opens a HttpURLConnection to the servlet, and instead of posting the data from a form (like through the browser), I appended the parameters to the querystring. When the test case executes, the servlet is executed twice, creating two identical rows in the database. So my test case fails expecting the entity to be unique.
              I see two servlet inits happening:
              <WebAppServletContext-vivaceApp> RequestProcessor: init
              and
              <ServletContext-General> classes: init
              Any ideas why this request is submitted twice?
              -EC
              

    What you might want to do instead of sending email directly from the trigger, is create a job which sends the email. This way you make the sending of the email part of your transaction. When you issue a commit, the job gets submitted and the email is sent. When you rollback, the job is removed and no email is sent.

Maybe you are looking for

  • How to retain field formatting using this.getField

    I am pulling a phone number from a form field using this.getField("EmailAddress").value and inserting it into an email.  Once there, it loses it's formatting as a phone number and becomes a string if 10 digits again.  Is there a way to retain or recr

  • Procudure to count all the rows in a all tables in the schema

    When I run the following store procedure to count all the rows in all the tables I crash my sql Plus editor: CREATE OR REPLACE PROCEDURE TC_TABLEROWCOUNT(OWNER IN varchar2) IS row_count number; cursor get_tab is select table_name, num_rows from all_t

  • CcBPM - BPE_ADAPTER : SYSTEM_FAILURE_INTERNAL

    Hi gurus, I am facing below errorn in ccBPM    <SAP:Code area="BPE_ADAPTER">SYSTEM_FAILURE_INTERNAL</SAP:Code>   <SAP:P1 />   <SAP:P2 />   <SAP:P3 />   <SAP:P4 />   <SAP:AdditionalText />   <SAP:Stack>An internal error has occurred</SAP:Stack>   <SAP

  • Updating Mac OS 10.6.7

    When I run the update for Mac OS 10.6.7 it never finishes.  Its will show that its 99% completed but never stops.  Any advice?

  • When do i use Apple Id and when do I when do i use icloud?

    When I am asked for APPLE ID, I use that name and password. Is there anytime I should be using my icould instead. What circumstances would call for using icloud?